TC_SMMRx

TC Stepper Motor Mode Register

This register can only be written if the WPEN bit is cleared in the TC Write Protection Mode Register.

  0x08 + x*0x40 [x=0..2] 32 R/W 0x00000000   3 64 -1

TC Stepper Motor Mode Register

Bit  31 30 29 28 27 26 25 24  
                   
Access                   
Reset                   
Bit  23 22 21 20 19 18 17 16  
                   
Access                   
Reset                   
Bit  15 14 13 12 11 10 9 8  
                   
Access                   
Reset                   
Bit  7 6 5 4 3 2 1 0  
              DOWN GCEN  
Access              R/W R/W  
Reset              0 0  

Bit 0 – GCEN: Gray Count Enable

Gray Count Enable

ValueDescription
0 TIOAx [x=0..2] and TIOBx [x=0..2] are driven by internal counter of channel x.
1 TIOAx [x=0..2] and TIOBx [x=0..2] are driven by a 2-bit Gray counter.

Bit 1 – DOWN: Down Count

Down Count

ValueDescription
0 Up counter.
1 Down counter.