Datasheet
140
XMEGA B [DATASHEET]
8291B–AVR–01/2013
12.12.14REMAP – Pin Remap register
The pin remap functionality is available for PORTC - PORTF only.
Bit 7:6 – Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always write these bits to zero
when this register is written.
Bit 5 – SPI: SPI Remap
Setting this bit to one will swap the pin locations of the SCK and MOSI pins to have pin compatibility between SPI and
USART when the USART is operating as a SPI master.
Bit 4 – USART0: USART0 Remap
Setting this bit to one will move the pin location of USART0 from Px[3:0] to Px[7:4].
Bit 3 – TC0D: Timer/Counter 0 Output Compare D
Setting this bit will move the location of OC0D from Px3 to Px7.
Bit 2 – TC0C: Timer/Counter 0 Output Compare C
Setting this bit will move the location of OC0C from Px2 to Px6.
Bit 1 – TC0B: Timer/Counter 0 Output Compare B
Setting this bit will move the location of OC0B from Px1 to Px5. If this bit is set and PWM from both timer/counter 0 and
timer/counter 1 is enabled, the resulting PWM will be an OR-modulation between the two PWM outputs.
Bit 0 – TC0A: Timer/Counter 0 Output Compare A
Setting this bit will move the location of OC0A from Px0 to Px4. If this bit is set and PWM from both timer/counter 0 and
timer/counter 1 is enabled, the resulting PWM will be an OR-modulation between the two PWM outputs. See Figure 12-
11.
Figure 12-11.I/O timer/counter.
Bit 76543210
+0x0E
– – SPI USART0 TC0D TC0C TC0B TC0A
Read/Write R R R/W R/W R/W R/W R/W R/W
Initial Value 0 0000000
OC0A
OC1A
OCA