3.2 I/O Expansion Headers

The Atmel AVR XMEGA-E5 Xplained headers J1, J2, J3, and J4 offer access to the I/Os of the microcontroller in order to expand the board, for example by mounting a top module onto the board.

The header J1 offers digital communication interfaces like UART, TWI, and SPI. The table below shows how the Atmel AVR XMEGA is connected to the header.

Note that when using TWI no pull-ups are mounted on the board from the factory, so it is required to enable the internal pull-ups of the device.

Table 3-2. Expansion Header J1
Pin on J1Name on J1XMEGA pinShared with on-board functionality
1SDAPC0Connected to the Board Controller 1
2SCLPC1Connected to the Board Controller 1
3RXDPC2-
4TXDPC3-
5SSPC4Connected to the Board Controller 2
6MOSIPC7Connected to the Board Controller 2
7MISOPC6Connected to the Board Controller 2
8SCKPC5Connected to the Board Controller 2
9GND--
10VCC_P3V3--

Header J2 is connected to analog ports of the XMEGA as shown in the table below.

Table 3-3. Expansion Header J2
Pin on J2Name on J2XMEGA pinShared with on-board functionality
1ADC0PA0-
2ADC1PA1-
3ADC2PA2-
4ADC3PA3-
5ADC4PA4-
6ADC5PA5Quadrature Encoder Button 3
7ADC6PA6Quadrature Encoder Output 4
8ADC7PA7Quadrature Encoder Output 4
9GND--
10VCC_P3V3--

Header J3 is connected to digital ports of XMEGA. The table below shows the mapping of the XMEGA I/O to J3.

Table 3-4. Expansion Header J3
Pin on J3Name on J3XMEGA pinShared with on-board functionality
1GPIO0PR0Shared with OLED display: data/cmd function
2GPIO1PR1Shared with OLED display: CS function
3GPIO2QENC_AQuadrature Encoder Output 5
4GPIO3QENC_BQuadrature Encoder Output 5
5GPIO4PC4/ SS
6GPIO5PC7/MOSI
7GPIO6PC6/MISO
8GPIO7PC5/SCK
9GND--
10VCC_P5V0--

Header J4 offers digital communication interfaces such as UART and TWI, but care must be taken because some pins are also connected to on-board peripherals.

Table 3-5. Expansion Header J4
Pin on J4Name on J4XMEGA pinShared with on-board functionality
1SDAPD0Shared with button SW100 (silkscreen SW0)
2SCLPD1Shared with Light sensor 6
3RXDPD2Shared with button SW101(silkscreen SW1)
4TXDPD3Shared with OLED display: reset function
5SSPD4Shared with LED D100 (silkscreen LED0)
6MOSIPD7Connected to the Board Controller 7
7MISOPD6Connected to the Board Controller 7
8SCKPD5Shared with LED D101 (silkscreen LED1)
9GND--
10VCC_P3V3--
1

Need to mount R408/R409 to connect TWI lines to Board Controller.

2

Need to mount R410/R411/R412/R413 to connect SPI lines to Board Controller.

3

Can be disconnected from on-board functionality by cut-straps.

4

Can be disconnected using SW103 mechanical switch.

5

Quadrature encoder outputs can be accessible on this header when SW103 mechanical switch is pushed up.

6

Can be disconnected from on-board functionality by cut-strap J100.

7

RXD and TXD lines swapped from PD3 and PD4 and used for communication with board controller.