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