
54
8210C–AVR–09/11
Atmel AVR XMEGA D
Notes:
1.
The description of how the ports generate events is described in
.
5.8.2
CHnCTRL – Event Channel n Control register
• Bit 7 – Reserved
This bit is reserved and will always be read as zero. For compatibility with future devices, always
write this bit to zero when this register is written.
• Bit 6:5 – QDIRM[1:0]: Quadrature Decode Index Recognition Mode
These bits determine the quadrature state for the QDPH0 and QDPH90 signals, where a valid
index signal is recognized and the counter index data event is given according to
. These bits should only be set when a quadrature encoder with a connected index sig-
nal is used.These bits are available only for CH0CTRL, CH2CTRL, and CH4CTRL.
0100
X
X
X
X
(Reserved)
0101
0
n
PORTA_PINn
PORTA pin n (n= 0, 1, 2 ... or 7)
0101
1
n
PORTB_PINn
PORTB pin n (n= 0, 1, 2 ... or 7)
0110
0
n
PORTC_PINn
PORTC pin n (n= 0, 1, 2 ... or 7)
0110
1
n
PORTD_PINn
PORTD pin n (n= 0, 1, 2 ... or 7)
0111
0
n
PORTE_PINn
PORTE pin n (n= 0, 1, 2 ... or 7)
0111
1
n
PORTF_PINn
PORTF pin n (n= 0, 1, 2 ... or 7)
1000
M
PRESCALER_M
Clk
PER
divide by 2
M
(M=0 to 15)
1001
X
X
X
X
(Reserved)
1010
X
X
X
X
(Reserved)
1011
X
X
X
X
(Reserved)
1100
0
E
See
Timer/counter C0 event type E
1100
1
E
See
Timer/counter C1 event type E
1101
0
E
See
Timer/counter D0 event type E
1101
1
X
X
X
(Reserved)
1110
0
E
See
Timer/counter E0 event type E
1110
1
X
X
X
(Reserved)
1111
0
E
See
Timer/counter F0 event type E
1111
1
X
X
X
(Reserved)
Table 5-3.
CHnMUX[7:0] bit settings.
CHnMUX[7:4]
CHnMUX[3:0]
Group Configuration
Event Source
Bit
7
6
5
4
3
2
1
0
–
QDIRM[1:0]
QDIEN
QDEN
DIGFILT[2:0]
CHnCTRL
Read/Write
R
R/W
R/W
R/W
R/W
R/W
R/W
R
Initial Value
0
0
0
0
0
0
0
0