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