Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/Atmel/ATSAM3X4E/PWM/SMMR#0x0
PWM Stepper Motor Mode Register
Gray Count ENable
DOWN Count
https://github.com/cmsis-svd/cmsis-svd-data