4. Hardware User Guide
4.1. Connectors
This chapter describes the implementation of the relevant connectors and headers on SAMDA1 Xplained
Pro and their connection to the SAMDA1J16A. The tables of connections in this chapter also describes which signals are shared between the headers and on-board functionality.
4.1.1. I/O Extension Headers
The SAMDA1 Xplained Pro headers EXT1, EXT2 and EXT3 offer access to the I/O of the microcontroller in order to expand the board e.g. by connecting extensions to the board. These headers all comply with
the standard extension header specified in section Xplained Pro Standard Extension Header on page 9 .
All headers have a pitch of 2.54 mm.
Table 4-1 Extension Header EXT1
Pin on EXT1
1. [ID]
2. [GND]
3. [ADC(+)]
4. [ADC(-)]
5. [GPIO1]
6. [GPIO2]
7. [PWM(+)]
8. [PWM(-)]
9. [IRQ/GPIO]
10. [SPI_SS_B/GPIO]
11. [TWI_SDA]
12. [TWI_SCL]
13. [USART_RX]
14. [USART_TX]
15. [SPI_SS_A]
-
PB00
PB01
PB06
PB07
PB02
PB03
PB04
PB05
PA08
SAMDA1 Pin
-
PA09
PB09
PB08
PA05
Function Shared Functionality
ID signal from extension board
GND
AIN[8]
AIN[9]
GPIO
GPIO
TC6/WO[0]
TC5/WO[1]
EXTINT[4]
GPIO
SERCOM2 PAD[0] I²C
SDA
SERCOM2 PAD[1] I²C
SCL
SERCOM4 PAD[1] UART
RX
1
SERCOM4 PAD[0] UART
TX
2
SERCOM0 PAD[1] SPI SS
EXT2, EXT3 and EDBG
EXT2, EXT3 and EDBG
1
2
The SERCOM4 module is shared between EXT1, 2 and 3 UART's, but uses different pins on EXT1 and EXT2/3.
The SERCOM4 module is shared between EXT1, 2 and 3 UART's, but uses different pins on EXT1 and EXT2/3.
Atmel SAMDA1 Xplained Pro [USER GUIDE]
Atmel-doc9400A-SAMDA1 Xplained Pro_User Guide-09/2015
12
Pin on EXT1
16. [SPI_MOSI]
17. [SPI_MISO]
18. [SPI_SCK]
19. [GND]
20. [VCC]
SAMDA1 Pin Function
PA06
PA04
PA07
-
-
SERCOM0 PAD[2] SPI
MOSI
SERCOM0 PAD[0] SPI
MISO
-
-
SERCOM0 PAD[3] SPI
SCK
Table 4-2 Extension Header EXT2
Pin on EXT1
1. [ID] -
Device pin
2. [GND]
3. [ADC(+)]
4. [ADC(-)]
5. [GPIO1]
6. [GPIO2]
7. [PWM(+)]
8. [PWM(-)]
9. [IRQ/GPIO]
10. [SPI_SS_B/GPIO]
11. [TWI_SDA]
12. [TWI_SCL]
13. [USART_RX]
14. [USART_TX]
15. [SPI_SS_A]
17. [SPI_MOSI]
-
PA10
PA11
PA20
PA21
PB12
PB13
PB14
PB15
PA08
PA09
PB11
PB10
PA17
PA18
Shared Functionality
GND
VCC
Function Shared Functionality
ID signal from extension board
GND
AIN[18]
AIN[19]
GPIO
GPIO
TC4/WO[0]
TC4/WO[1]
EXTINT[14]
GPIO
SERCOM2 PAD[0] I²C
SDA
SERCOM2 PAD[1] I²C
SCL
SERCOM4 PAD[1] UART
RX
3
SERCOM4 PAD[0] UART
TX
4
SERCOM1 PAD[1] SPI SS
SERCOM1 PAD[2] SPI
MOSI
EXT1, EXT3, and EDBG
EXT1, EXT3, and EDBG
EXT3
EXT3
3
4
The SERCOM4 module is shared between EXT1, 2 and 3 UART's, but uses different pins on EXT1 and EXT2/3
The SERCOM4 module is shared between EXT1, 2 and 3 UART's, but uses different pins on EXT1 and EXT2/3
Atmel SAMDA1 Xplained Pro [USER GUIDE]
Atmel-doc9400A-SAMDA1 Xplained Pro_User Guide-09/2015
13
Pin on EXT1
18. [SPI_MISO]
19. [SPI_SCK]
Device pin
PA16
PA19
20. [GND]
21. [VCC]
Table 4-3 Extension Header EXT3
Pin on EXT1
1. [ID] -
Device pin
2. [GND]
3. [ADC(+)]
4. [ADC(-)]
5. [GPIO1]
6. [GPIO2]
7. [PWM(+)]
8. [PWM(-)]
9. [IRQ/GPIO]
PA13
PA28
10. [SPI_SS_B/GPIO] PA27
11. [TWI_SDA] PA08
-
PA02
PA03
PB30
PA15
PA12
12. [TWI_SCL]
13. [USART_RX]
14. [USART_TX]
15. [SPI_SS_A]
16. [SPI_MOSI]
PA09
PB11
PB10
PB17
PB22
Function
SERCOM1 PAD[0] SPI
MISO
SERCOM1 PAD[3] SPI
SCK
Shared Functionality
GND
VCC
Function Shared Functionality
Communication line to ID chip on extension board
GND
AIN[8]
AIN[9]
5
GPIO
GPIO
TC2/WO[0]
TC2/WO[1]
EXTINT[8]
GPIO
SERCOM2 PAD[0] I²C
SDA
SERCOM2 PAD[1] I²C
SCL
SERCOM4 PAD[1] UART
RX
6
SERCOM4 PAD[0] UART
TX
7
SERCOM5 PAD[1] SPI SS
SERCOM5 PAD[2] SPI
MOSI
USB_ID
Onboard LED0
Onboard SW0
EXT1, EXT2, and EDBG
EXT1, EXT2, and EDBG
LIN TRX: ATA663231-RXD pin
LIN TRX: ATA663231-TXD pin
EDBG
5
6
7
PA03 can be used by USB ID or EXT3 PIN4 by changing the position of the jumper JS300 on J307.
The SERCOM4 module is shared between EXT1, 2 and 3 UART's, but uses different pins on EXT1 and EXT2/3.
The SERCOM4 module is shared between EXT1, 2 and 3 UART's, but uses different pins on EXT1 and EXT2/3.
Atmel SAMDA1 Xplained Pro [USER GUIDE]
Atmel-doc9400A-SAMDA1 Xplained Pro_User Guide-09/2015
14
Pin on EXT1
17. [SPI_MISO]
18. [SPI_SCK]
19. [GND]
20. [VCC] -
-
Device pin
PB16
PB23
Function
-
-
SERCOM5 PAD[0] SPI
MISO
SERCOM5 PAD[3] SPI
SCK
NC
NC
NC
NC
NC
[VS_LIN]
NC
[GND]
NC
NC
NC
[GND]
[VCC]
Table 4-4 High Voltage (HV) Header
Pin on HV
NC
[GND]
NC
NC
[LIN_GND]
NC
[LIN]
Function
GND
LIN GND pin
LIN signal to/from ATA663231 LIN
TRX
LIN voltage supply (e.g. 12VDC)
GND
GND
VCC
-
-
-
-
-
-
-
-
-
-
-
-
-
Shared Functionality
EDBG and LIN TRX:
ATA663231-EN pin
EDBG
GND
VCC
-
-
-
-
-
-
-
Shared Functionality
4.2. Peripherals
4.2.1. Crystal
The SAMDA1 Xplained Pro kit contains one crystal that can be used as clock source for the SAMDA1 device. The crystal has a cut-strap next to it that can be used to measure the oscillator safety factor. This
Atmel SAMDA1 Xplained Pro [USER GUIDE]
Atmel-doc9400A-SAMDA1 Xplained Pro_User Guide-09/2015
15
is done by cutting the strap and adding a resistor across the strap. More information about oscillator allowance and safety factor can be found in appnote AVR4100 .
Table 4-5 External 32.768kHz Crystals
PA00
Pin on SAMDA1
PA01
Function
XIN32
XOUT32
4.2.2. Mechanical Buttons
SAMDA1 Xplained Pro contains two mechanical buttons. One button is the RESET button connected to the SAMDA1 reset line and the other is a generic user configurable button. When a button is pressed it will drive the I/O line to GND.
Table 4-6 Mechanical Buttons
Pin on SAMDA1
RESETN
PA15
Function
RESET
SW0
4.2.3. LED
There is one yellow LED available on the SAMDA1 Xplained Pro board that can be turned on and off. The
LEDcan be activated by driving the connected I/O line to GND.
Table 4-7 External 32.768kHz Crystals
Pin on SAMDA1
PB30
Function
Yellow LED0
4.2.4. USB
The SAMDA1 Xplained Pro has a micro USB receptacle for use with the SAMDA1 USB module. To be able to detect when a USB cable is connected, a GPIO is used to detect the VBUS voltage on the connector. The USB ID line is used to detect if a host mode cable is connected and will automatically switch on the power to the USB connector. The I/O connected to USB ID can be used to read the status of the line or manually override the voltage output. For other modes on the USB ID lines, refer to the USB organization specifications.
Table 4-8 USB Connections
Pin on SAMDA1
PA14
PA03
PA24
PA25
Function
VBUS Detection
USB ID
USB D-
USB D+
4.2.5. LIN Transceiver
SAMDA1 Xplained Pro includes an on-board LIN transceiver device (ATA663231FAQW). This device serves as a system-base chip (SBC) in the sense that it consists of a LIN TRX and a built-in voltage regulator which can regulate supply input voltage VS_LIN from 12V to 3.3V and can support up to 85mA
Atmel SAMDA1 Xplained Pro [USER GUIDE]
Atmel-doc9400A-SAMDA1 Xplained Pro_User Guide-09/2015
16
load current. VREG output can also be used to supply VCC to SAMDA1 MCU and extention boards provided that the total current consumption does not exceed the maximum ATA663231FAQW current output limit (85mA). To support a larger current demand, provided on-board independent VREG
(Imax=0.7A) is available.
LIN TRX section is integrated with SAMDA1 MCU such that SAMDA1 Xplained Pro kit can be configured as either a LIN slave or a LIN master node.
Transceiver’s LIN IOs: LIN, VS_LIN, LIN_GND, are connected directly to HV Header (J203) for in-system connection with external LIN nodes.
4.3. Embedded Debugger Implementation
SAMDA1 Xplained Pro contains an Embedded Debugger (EDBG) that can be used to program and debug the SAMDA1J16A using Serial Wire Debug (SWD). The Embedded Debugger also include a
Virtual Com port interface over UART, an Atmel Data Gateway Interface over SPI and TWI and it monitors four of the SAMDA1 GPIOs. Atmel Studio can be used as a front-end for the Embedded Debugger.
4.3.1. Serial Wire Debug
The Serial Wire Debug (SWD) uses two pins and a reset line to communicate with the target. For further information on how to use the programming and debugging capabilities of the EDBG, see section
Embedded Debugger
on page 6.
Table 4-9 SWD Connections
Pin on SAMDA1
PA30
PA31
RESETN
Function
SWD clock
SWD data
Target Reset
4.3.2. Virtual COM Port
The Embedded Debugger acts as a Virtual Com Port gateway by using one of the SAMDA1J16A UARTs.
For further information on how to use the Virtual COM port see section Embedded Debugger on page 6.
Table 4-10 Virtual COM Port Connections
Pin on SAMDA1
PA22
PA23
Function
SERCOM3 PAD[0] UART TXD (SAMDA1 TX line)
SERCOM3 PAD[1] UART RXD (SAMDA1 RX line)
4.3.3. Atmel Data Gateway Interface
The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either a SPI or I²C port. The DGI can be used to send a variety of data from the SAMDA1 to the host PC. For further
information on how to use the DGI interface see section Embedded Debugger on page 6.
Table 4-11 DGI Interface Connections when using SPI
Pin on SAMDA1
PB31
PB16
Function
SERCOM5 PAD[1] SPI SS (Slave select) (SAMDA1 is Master)
SERCOM5 PAD[0] SPI MISO (Master In, Slave Out)
Atmel SAMDA1 Xplained Pro [USER GUIDE]
Atmel-doc9400A-SAMDA1 Xplained Pro_User Guide-09/2015
17
Pin on SAMDA1
PB22
PB23
Function
SERCOM5 PAD[2] SPI MOSI (Master Out, Slave in)
SERCOM5 PAD[3] SPI SCK (Clock Out)
Table 4-12 DGI Interface Connections when using I²C
Pin on SAMDA1
PA08
PA09
Function
SERCOM2 PAD[0] SDA (Data line)
SERCOM2 PAD[1] SCL (Clock line)
Atmel SAMDA1 Xplained Pro [USER GUIDE]
Atmel-doc9400A-SAMDA1 Xplained Pro_User Guide-09/2015
18