Datasheet
827
42023E–SAM–07/2013
ATSAM4L8/L4/L2
30.9.4 Stepper Motor Mode Register
Name:
SMCR
Access Type: Read/Write
Offset: 0x08 + n * 0x40
Reset Value: 0x00000000
This register can only be written if write protect is disabled (WPMR.WPEN is zero).
• DOWN: Down Count
0: Up counter.
1: Down counter.
• GCEN: Gray Count Enable
0: TIOAx and TIOBx are driven by internal counter of channel x.
1: TIOAx and TIOBx are driven by a 2-bit gray counter.
31 30 29 28 27 26 25 24
--------
23 22 21 20 19 18 17 16
--------
15 14 13 12 11 10 9 8
--------
76543210
------DOWNGCEN