Datasheet

1085
42023E–SAM–07/2013
ATSAM4L8/L4/L2
40.7.1 Configuration Register
Name:
CFG
Access Type: Read/Write
Offset: 0x00
Reset Value: 0x00000000
To avoid unexpected behavior CFG must be written when PARC is disabled.
ODD: Odd Capture
0: only bytes with even index are captured.
1: only bytes with odd index are captured.
HALF: Half Capture
0: all bytes are captured.
1: one out of two bytes are captured.
EDGE: Sampling Edge Select
0: rising edge.
1: falling edge.
EMODE: Events Mode
0: Events mode disabled.
1: Events mode enabled. Peripheral events start/stop data capture.
SMODE: Sampling Mode
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
ODD HALF EDGE EMODE SMODE DSIZE
SMODE Mode
0 0 Capture data if PCEN1 is high
0 1 Capture data if PCEN1 and PCEN2 are high
1 0 Capture data if PCEN1 or PCEN2 is high
1 1 Always capture data