42060A–ATARM–12/2012
Atmel SAM4S-WPIR-RD....................................................................................................................
User Guide
iSAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Section 11.1 Scope................................................................................................................................. 1-11.2 References and Applicable Documents ............................................................................. 1-2
Section 22.1 Deliverables ....................................................................................................................... 2-32.2 Board Specifications .......................................................................................................... 2-32.3 Electrostatic Warning ......................................................................................................... 2-4
Section 33.1 Power Up the Board........................................................................................................... 3-53.2 Sample Code and Technical Support ................................................................................ 3-5
Section 44.1 Introduction ........................................................................................................................ 4-64.2 Function Blocks.................................................................................................................. 4-6
4.2.1 Processor............................................................................................................. 4-64.2.2 Clock Circuitry...................................................................................................... 4-74.2.3 Reset Circuitry ..................................................................................................... 4-74.2.4 Push Button Switches.......................................................................................... 4-74.2.5 Power Supplies.................................................................................................... 4-74.2.6 Memory................................................................................................................ 4-84.2.7 JTAG/ICE............................................................................................................. 4-94.2.8 Image Sensor ...................................................................................................... 4-94.2.9 PIR sensor ........................................................................................................... 4-94.2.10 ZigBee ............................................................................................................... 4-114.2.11 LED Indicators ................................................................................................... 4-114.2.12 LCD.................................................................................................................... 4-114.2.13 Backlight Control................................................................................................ 4-12
4.3 Connectors....................................................................................................................... 4-134.3.1 JTAG/ICE Connector ......................................................................................... 4-134.3.2 USB Micro AB.................................................................................................... 4-144.3.3 ZigBee Socket J5............................................................................................... 4-154.3.4 LCD/TSC Socket J4........................................................................................... 4-15
4.4 Schematics....................................................................................................................... 4-17
Section 55.1 Revision History ............................................................................................................... 5-20
Section 1Introduction
1.1 Scope
The SAM4S-WPIR-RD Reference Design Kit is based on SAM4S16C device. It introduces the application of Pas-sive InfraRed Motion Detector Camera.
This User Guide gives design details on the Reference Design Kit and is made up of 4 sections:
Section 1 includes a photo of the board, references and applicable documents. Section 2 describes the contents and the main features of the Reference Design Kit. Section 3 provides instructions to power up the board and describes how to use it. Section 4 describes the hardware resources, function blocks, connectors and schematics.
Figure 1-1. Board Photo
1SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
1.2 References and Applicable DocumentsTable 1-1. References and Applicable Documents
Title Comment
SAM4S datasheet http://www.atmel.com/products/microcontrollers/arm/sam4s.aspx?tab=documents
2SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Section 2Kit Contents
2.1 Deliverables
The Atmel® SAM4S-WPIR-RD Reference Design Kit includes:
Board– One SAM4S-WPIR-RD board
Power supply– USB supply
Cables – One USB cable, type A to type Micro-B
Unpack and inspect the kit carefully. Contact your local Atmel distributor, should there be issues concerning the contents of the kit.
2.2 Board Specifications
Table 2-1. SAM4S-WPIR-RD Board Specifications
Characteristics Specifications
Clock speed 48 MHz MCK
Ports USB, JTAG
Board supply voltage 5V DC from USB or 3 x AAA Alkaline cells
Temperature- operating- storage
-10° to +50° C-40° to +85° C
Relative humidity 0 to 90% (non condensing)
Dimensions 136 mm x 90mm
RoHS status Compliant
3SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
2.3 Electrostatic Warning
The SAM4S-WPIR-RD board is shipped in a protective anti-static package. The board system must not be sub-jected to high electrostatic potentials. A grounding strap or similar ESD protective device should be worn when handling the board in hostile ESD environments (offices with synthetic carpet, for example). Avoid touching the component pins or any other metallic element on the board.
4SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
5SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Section 3Power Up
3.1 Power Up the Board
Unpack the board taking care to avoid electrostatic discharge. Connect the board to PC with the USB cable, or insert 3 x AAA Alkaline cells on U4 Battery Holder, and then the board should be powered on.
Note: Jumpers JP1, JP4, JP7, JP8, JP9, JP10 must be closed and JP2, JP3 must be open for start-up.
3.2 Sample Code and Technical Support
Users can download sample code and get technical support from the Atmel web site:
http://www.atmel.com/products/microcontrollers/arm/sam4s.aspx?tab=tools
Figure 3-1. Atmel Web Site for SAM4S Products
Section 4Hardware
4.1 Introduction
The SAM4S-WPIR-RD block diagram includes battery holder, LDO, image sensor, 1M byte SRAM, PIR sensor, JTAG connector, LCD, ZigBee connector, as shown in Figure 4-1.
Figure 4-1. SAM4S-WPIR-RD Block Diagram
4.2 Function Blocks
4.2.1 Processor
The board is equipped with a SAM4S16 device in a LQFP100 package.
6SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
4.2.2 Clock Circuitry
The board includes 2 clock sources:
One 12 MHz Crystal for Internal Clock (Y2) One 32.768 kHz Crystal for RTC Clock (Y1)
4.2.3 Reset Circuitry
The reset sources for the board are:
Power on reset JTAG reset from an in-circuit emulator (JTAG interface is equipped on the board)
4.2.4 Push Button Switches User interface (BP1)
4.2.5 Power Supplies
The Board is driven by 5V input power rail from USB cable or 3 x AAA battery.
The Board embeds all the necessary power rails required for the microcontroller
Table 4-1 summarizes the power specifications.
Table 4-1. Power Rails Associated with the Systems
Nominal Name Powers Component
3.0V VDDIO Partial Peripheral I/O lines on board
3.0V +3V_PERIPH SRAM and image sensor on board
3.0V +3V_LCD LCD and backlight driver on board
1.2V VDDPLL the PLL cell From SAM4S internal LDO
1.2V VDDCORE the core, including the processor, the embedded memories and the peripherals From SAM4S internal LDO
3.0V ADVREF analog on board
7SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Figure 4-2. Power Supply
4.2.6 Memory
The SAM4S features an External Bus Interface (EBI) that permits interfacing to a broad range of external memo-ries and virtually to any parallel peripheral. The SAM4S-WPIR-RD board is equipped with a memory device connected to the SAM4 EBI:
One SRAM IS62WV10248DBLL
Figure 4-3. Memory
JP8
RV2V5.5MLA0603
D4
NSR0320MW2T1G
U4
JY-3AAA
VCC1
GND2
FGND
DGND
FGNDDGND
DGND
DGND
VIN_SYSTEM
3 cell AAA battery holder
JP9
U6
TPS78230DDCR
IN1
GND12
EN3
GND24
OUT5
C58
100nF
U5
TPS78230DDCR
IN1
GND12
EN3
GND24
OUT5
+3VVIN_SYSTEM
DGND
DGND
DGND
+3V_LCD
+3V_PERIPH
+3V_MCU
VIN_SYSTEM
DGND
JP10
JP7
C70
100nF
C571uF
C591uF
R41 100K
C601uF
C291uF
R43 100K
PC17
VB
US
PB
11
PB
10
VBAT
L6 220ohm at 100MHz1 2
C6
16V33 uF
5V D- D+ ID G
J1USB Micro B
1 2 3 4
7
5
689
C310pF
RV1
V5.5MLA0603
R2 68K
R4
27R
C51
100nF
R1 47K R3
27R
D3
NSR0320MW2T1G
PC18
PC8PC11
PC4PC3
PC1
PC25
PC20
PC31
PC21
PC27
PC23
PA18
PC19
PC22
PC26
PC30
PC24
PA19
PC29
PA20PA0PA1
PC28
PC14
PC9
PC5
PC2
PC0
PC16
PC7PC6
PC8_WE PC8
C2
83
3p
F
R2247K
R20DNP
R21470K
C271uF
R25DNP
MN3
IS62WV10248DBLL
A05
A14
A23
A32
A41
A544
A643
A742
A839
A928
A1027
A1126
A1225
A1324
A1423
A1522
A1621
A1720
A1819
A1918
CS1#6
CS240
OE#41
WE#17
D09
D110
D213
D314
D431
D532
D635
D736
NC17
NC28
NC315
NC416
NC529
NC630
NC737
NC838
VDD111
VDD233
GND112
GND234
Q2IRLML6401
1
32
R46 0R
C26100nF
DGND
DGND
+3V_SRAM
+3V_PERIPH
+3V_SRAM
DGND
NWENRD
NCS0
PC8
8SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
4.2.7 JTAG/ICE
Software debug is accessed by a standard 20-pin JTAG connection. This allows connection to a standard USB-to-JTAG in-circuit emulator such as SAM-ICE™.
Figure 4-4. JTAG Interface
TCK
TDITMS
TDONRST
R9
100K
R7
100K
R8
100K
R6
100K
R10
100KJ2
HTST-110-01-SM-DV
12345678910111213151719
14161820
+3V_MCU
DGND
4.2.8 Image Sensor
The CMOS image sensor, OV7740 from OmniVision, used in this reference design is a low-complexity, low-cost, low-power, yet powerful sensor. It supports VGA (640x480) at up to 60 fps and QVGA (320x240) at up to 120 fps. The OV7740 has standard interface output pins such as data, horizontal/vertical synchronization signals, pixel clock output and main clock input. Interfacing between the CMOS image sensor and the SAM4S device is made easy by means of the sensor interface (parallel capture mode). The SAM4S is able to sample data from the CMOS image sensor without CPU intervention and transfer image data into internal or external memory.
Figure 4-5. Image Sensor
PA21
PB13
PA16PA15
PA23
PWDN_OVT
PWDN_OVT
AGND_OVT
MN7OV7740
XVCLK1D5
PWDNA4
RESETBB5
SIOCC4
SIODC5
FSINC2
PCLKE6
HREFC3
VSYNCD1
DATA0E5
DATA1E2
DATA2D4
DATA3D3
DATA4F5
DATA5F2
DATA6E4
DATA7E3
DATA8D2
DATA9E1
DVDDF4
DGNDF3
DOVDDC1
DOVDDC6
DOGNDD6
AVDDA1
AVDDA6
AGNDB1
AGNDB6
VREFHA3
VREFNB2
NC1A2
NC2A5
C36100nF
R15 DNP
C56DNP
C481uF
R304.7K
R45 0R
C371uF
R5 27R
C471uF
R294.7K
L1 0R
R64 100K
R28100K
C351uF
C401uF
R63100K
Q3<REF>
13
2
C411uF
R32DNP
C34100nF R13 0R
C42100nF
L2 4.7uH
C461uF
DGND
DGND
+3V_PERIPH+3V_OVT
DGND +3V_OVT
DGND
PA4PA3
PA21
PA24PA25PA26PA27PA28
PA31
PA29PA30
PA15
PC15
PB13
PA23PA16
PC10
IMAGE SENSOR
0R
100nF
0R
4.2.9 PIR sensor
The PIR sensor (RE200B from Nicera) chosen for the reference design is a general purpose dual element. This model satisfies user's cost reduction needs, keeping most dual element type performances at reasonable levels.
9SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Figure 4-6. PIR Sensor
C4910uF
C44100nF
R4247K
R40 10K
R31 1M
R39 10K
R371M
B1
BN03K314S300RC3910uF
C45100nF
R3610K
R351M
R3410K
C5010uF
R331M
C33 100nF
MN8LT1495CS8
IN1-2
IN1+3
OUT27
IN2-6
IN2+5
GND4
VCC8
OUT11
R38 0R
U1
RE200B
D1
S2
G3
DGND
AGND
AGND
AGND
AGND
AGND
PA17
ADVREFADVREF
ADVREF
AD0, ADC single end input
10SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
4.2.10 ZigBee
The board has a 10-pin male connector for the Atmel RZ600 ZigBee module.
Figure 4-7. ZigBee Interface
PB3PA5
PA13SPIO_NPCS1#MISO
PA6
C6118pF
MOSIPA14
C632.2uF
SPCK
SLP_TRMISC
ZB_IRQ
C622.2nF
ZB_RSTN
PA12
PB2PB14
DGND
J52X10PTS COUDE
1 23 45 67 89 10
+3V_PERIPH
4.2.11 LED Indicators
The board has one LED indicator for purposes shown below:
Table 4-2. LED Indicators
4.2.12 LCD
The LCD module gets reset from the NRST signal. As explained, this NRST is shared with the JTAG port. The LCD chip select signal is connected to NCS2. The SAM4S communicates with the LCD through PIOC where an 8-bit parallel “8080-like” protocol data bus has to be implemented by software.
Reference Color Function
D1 Blue PIR indicator
11SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Figure 4-8. LCD Block
LED_A
LED_K4
LED_K1LED_K2LED_K3
C53100nF
+ C5210uF
R574.7K
R5410K
J4FH26-39S-0.3SHW
VDD1
DB172
DB163
DB154
DB145
DB136
DB127
DB118
DB109
DB910
DB811
DB712
DB613
DB514
DB415
DB316
DB217
DB118
DB019
VDD20
RD21
WR22
RS23
CS24
RESET25
IM026
IM127
GND28
LED-A29
LEDK130
LEDK231
LEDK332
LEDK433
Y+34
Y-35
X+36
X-37
NC38
GND39
R4447K
R56 0R
LCD
U7
YXT28MP002A-39A
C54100nF
+3V_LCD
+3V_LCD
DGND
DGND
DGND
PC2PC1PC0
NRST
PC6PC5PC4PC3
PC8PC19PA22
PC7
LCD
NCS2
PC11
4.2.13 Backlight Control
The LCD backlight is made of four integrated white chip-LEDs arranged in parallel. These are driven by an AAT3155 charge pump, MN10.The AAT3155 is controlled by the SAM4S through a single PIO line PC13 interface; the 0 Ohm resistor R59 is mounted in series on this line, which permits to use it for other custom purposes. In that case, the pull-up resistor R58 maintains the charge pump permanently enabled by default.
12SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Figure 4-9. Backlight Control
LED_A
LED_K4LED_K3LED_K2LED_K1
C641uF
C661uF
C651uFR58
47K
C674.7uF
B2BN03K314S300R
R590R
MN10
AAT3155ITP
C1+10
C1-9
EN/SET11
C2+7
C2-6
OUTCP8
IN5
GND4
D13
D22
D31
D412
+3V_LCD
+3V_LCD
DGND
DGND
PC13
4.3 Connectors
4.3.1 JTAG/ICE Connector
Figure 4-10. JTAG J2
Table 4-3. JTAG/ICE Connector J2 Signal Descriptions
Pin Mnemonic Description
1 VTref. 3.3V power
This is the target reference voltage. It is used to check if the target has power, to create the logic-level reference for the input comparators, and to control the output logic levels to the target. It is normally fed from VDD on the target board and must not have a series resistor.
2 Vsupply. 3.3V power This pin is not connected in SAM-ICE. It is reserved for compatibility with other equipment. Connect to VDD or leave open in target system.
3nTRST TARGET RESET - Active-low outputsignal that resets the target
JTAG Reset. Output from SAM-ICE to the Reset signal on the target JTAG port. Typically connected to nTRST on the target CPU. This pin is normally pulled HIGH on the target to avoid unintentional resets when there is no connection.
4 GND Common ground
5TDI TEST DATA INPUT - Serial data output line, sampled on the rising edge of the TCK signal.
JTAG data input of target CPU. It is recommended that this pin is pulled to a defined state on the target board. Typically connected to TDI on target CPU.
6 GND Common ground
7 TMS TEST MODE SELECTJTAG mode set input of target CPU. This pin should be pulled up on the target. Typically connected to TMS on target CPU. Output signal that sequences the target's JTAG state machine, sampled on the rising edge of the TCK signal.
8 GND Common ground
9TCK TEST CLOCK - Output timing signal, for synchronizing test logic and control register access.
JTAG clock signal to target CPU. It is recommended that this pin is pulled to a defined state on the target board. Typically connected to TCK on target CPU.
13SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
4.3.2 USB Micro AB
Figure 4-11. USB Device Micro-B Connector J1
Table 4-4. USB Device Micro-B Connector J1 Signal Descriptions
10 GND Common ground
11 RTCK - Input Return test clock signal from the target.
Some targets must synchronize the JTAG inputs to internal clocks. To assist in meeting this requirement, a returned and retimed TCK can be used to dynamically control the TCK rate. SAM-ICE supports adaptive clocking which waits for TCK changes to be echoed correctly before making further changes. Connect to RTCK if available, otherwise to GND.
12 GND Common ground
13 TDO JTAG TEST DATA OUTPUT - Serial data input from the target. JTAG data output from target CPU. Typically connected to TDO on target CPU.
14 GND Common ground
15 nSRST RESET Active-low reset signal. Target CPU reset signal.
16 GND Common ground
17 RFU This pin is not connected in SAM-ICE.
18 GND Common ground
19 RFU This pin is not connected in SAM-ICE.
20 GND Common ground
Pin Mnemonic Description
Pin Mnemonic Description
1 Vbus 5v power
2 DM Data minus
3 DP Data plus
4 ID Not used
5 GND Common ground
14SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
4.3.3 ZigBee Socket J5
Figure 4-12. ZigBee Socket J5
Table 4-5. ZigBee Socket J5 Signal Descriptions
4.3.4 LCD/TSC Socket J4
Figure 4-13. LCD/TSC Socket J4
Table 4-6. LCD/TSC Socket J4 Signal Descriptions
Function Signal Name Port Pin Pin Port Signal
Name Function
Reset /RST 1 2 Misc. Interrupt Request
Interrupt Request IRQ1 3 4 SLP_TR SLP_TR
SPI chip select /SEL 5 6 MOSI SPI MOSI
SPI MISO MISO 7 8 SCLK SPI CLK
Power Supply GND GND 9 10 VCC VCC VCC
Mnemonic Pin Num Pin Num Mnemonic
VDD 3V_INTER 1 2 PC7 LCDDAT17
LCDDAT16 PC6 3 4 PC5 LCDDAT15
LCDDAT14 PC4 5 6 PC3 LCDDAT13
LCDDAT12 PC2 7 8 PC1 LCDDAT11
LCDDAT10 PC0 9 10 NC LCDDAT09
LCDDAT08 NC 11 12 NC LCDDAT07
LCDDAT06 NC 13 14 NC LCDDAT05
LCDDAT04 NC 15 16 NC LCDDAT03
LCDDAT02 NC 17 18 NC LCDDAT01
LCDDAT00 NC 19 20 3V VDD
15SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
RD PC11 21 22 PC8 WR
RS PC19 23 24 PA22 CS
RESET NRST 25 26 PULL UP IM0
IM1 PULL DOWN 27 28 GND GND
LED-A LED-A 29 30 LED-K1 LED-K1
LED-K2 LED-K2 31 32 LED-K3 LED-K3
LED-K4 LED-K4 33 34 NC Y UP
Y DOWN NC 35 36 NC X RIGHT
X LEFT NC 37 38 NC NC
GND GND 39
Mnemonic Pin Num Pin Num Mnemonic
16SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
55
44
33
22
11
DD
CC
BB
AA
PIO
DC
_D3
PIO
DC
_D4
PIO
DC
_D5
PIO
DC
_D6
PIO
DC
_D7
US
B_D
DP
ER
AS
E
SP
I_NP
CS
1
PB
0P
B1
PB
2P
B3
PB
4P
B5
PB
6P
B7
PB
8P
B9
PB
11P
B12
PB
13
PB
10
PB
14
PIO
BU
SA
GE
AC
C H
igh Threshold
ZB_IR
QZB
_MIS
CIC
E_TD
IIC
E_TD
OIC
E_TM
SIC
E_TC
KX
OU
TX
INU
SB
_DD
M
PC
0P
C1
PC
2P
C3
PC
4P
C5
PC
6P
C7
PC
8P
C9
PC
10P
C11
PC
12P
C13
PC
14P
C15
PIO
CU
SA
GE
PC
16P
C17
PC
18P
C19
PC
20P
C21
PC
22P
C23
PC
24P
C25
PC
27P
C28
PC
29
PC
26
PC
30P
C31
PIO
CU
SA
GE
EB
I_D0
SM
C_N
WE
SM
C_N
RD
US
ER
_LED
LCD
_BL
NC
S0_S
RA
M
EB
I_A0
PA
0P
A1
PA
2P
A3
PA
4P
A5
PA
6P
A7
PA
8P
A9
PA
10P
A11
PA
12P
A13
PA
14P
A15
PIO
AU
SA
GE
PA
16P
A17
PA
18P
A19
PA
20P
A21
PA
22P
A23
PA
24P
A25
PA
27P
A28
PA
29
PA
26
PA
30P
A31
PIO
AU
SA
GE
EB
I_A17
EB
I_A18
TWI_D
0TW
I_CK
0ZB
_RS
TZB
_SLP
TRX
IN32
XO
UT32
UA
RT_R
XD
0U
AR
T_TXD
0A
dditional CO
NS
PI_M
ISO
SP
I_MO
SI
SP
I_SP
CK
PIO
DC
_EN
1
I/O M
UX
ING
PIO
DC
_EN
2
PIO
DC
_PC
K0
EB
I_A14
EB
I_A15
EB
I_A16
PIO
DC
_FSIN
NC
S2_LC
DP
IOD
C_P
CLK
PIO
DC
_D0
PIO
DC
_D1
PIO
DC
_D2
US
ER
_PB
EB
I_A1
EB
I_A2
EB
I_A3
EB
I_A4
EB
I_A5
EB
I_A6
EB
I_A7
EB
I_A8
EB
I_A9
EB
I_A10
EB
I_A11
EB
I_A12
EB
I_A13
EB
I_D1
EB
I_D2
EB
I_D3
EB
I_D4
EB
I_D5
EB
I_D6
EB
I_D7
ATM
EL Cortex M
4 Processor SA
M4S (LQ
FP100)
SAM4S-WPIR-RD Block Diagram
SMC
8-bit
SPI
AD
C
PIOD
C
TWI
SRA
M
LCD
ZigBEE
PIR Sensor
Image Sensor
AC
C Low
ThresholdP
IR_IN
_INU
T
SW
_SR
AM
EB
I_A19
US
B_C
NX
OV
T_RS
T
SW
_OV
T
USB
Battery
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D1
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Block Diagram
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D1
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Block Diagram
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D1
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Block Diagram
4.4 Schematics
17SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
55
44
33
22
11
DD
CC
BB
AA
URXD0
UTXD0
NCS0
NRD
NWE
3 cell AA
A battery holder
0R
PA0
PA2
PA14PA15PA16
PA18PA19PA20
PC8_WE
PC11PC12
PC14
PC18
PC20PC21PC22PC23PC24PC25PC26PC27PC28PC29PC30PC31
XIN
XOU
T32ERASE
XIN32
XOU
T32
XIN32
XOU
T
PA2
PC12
PA1
PB10
PB11
PC11
PC8
PC18
PC1
PC3
PC4
PC21
PC31
PC20
PC25
PC22
PC19
PA18
PC23
PC27
PC29
PA19
PC24
PC30
PC26
PC28
PA1PA0PA20
PC14
TMS
TDI
TCK
TDO
PC0PC1PC2PC3PC4PC5PC6PC7
PC19
PC9
ADVR
EF
PC16
PC9
PC17
PC17
VBUS
VBAT
PB10
PB11
PC0
PC2
PC5
PC6
PC7
PC16
PC8
PC8_W
E
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
DG
ND
+3V_MC
U
VDD
CO
RE
+3V_MC
U+1V2
+1V2
+3V_MC
U
+3V_LCD
+3V_SRAM
+3V_MC
U
+3V_PERIPH
+3V_MC
U
VIN_SYSTEM
+3V
+3V_MC
U
DG
ND
FGN
D
DG
ND
FGN
D
+3V_SRAM
ADVR
EF
DG
ND
DG
ND
DG
ND
DG
ND
VIN_SYSTEM
VIN_SYSTEM
+3V+3V_M
CU
+3V_PERIPH
+3V_LCD
DG
ND
DG
ND
VIN_SYSTEM
DG
ND
PB2{3}
PB3{3}
NR
ST{3}
PB14{3}
PB0{3}
PB1{3}
PC0 {3}PC1 {3}PC2 {3}PC3 {3}PC4 {3}PC5 {3}PC6 {3}PC7 {3}
PC13 {3}
PC15 {3}
PC11 {3}
PC19 {3}
PA3{3}
PA4{3}
PA5{3}
PA6{3}
PA11{3}
PA12{3}
PA13{3}
PA17{3}
PA21{3}
PA22{3}
PA23{3}
PA24{3}
PA25{3}
PA26{3}
PA27{3}
PA28{3}
PA29{3}
PA30{3}
PA31{3}
PB13{3}
PA14{3}
PA15{3}
PA16{3}
PA9{3}
PA10{3}
PC10 {3}
PC8
{3}
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D2
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Microcontroller
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D2
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Microcontroller
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D2
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Microcontroller
JP2JP2
L6220ohm
at 100MH
zL6
220ohm at 100M
Hz
12
C616V
33 uFC
616V33 uF
JP10JP10
C16 100nFC16 100nF
JP7JP7
C13 2.2uFC13 2.2uF
C28 33pFC28 33pF
C18 100nFC18 100nF
5V
D-
D+
ID
G
J1USB M
icro B
5V
D-
D+
ID
G
J1USB M
icro B
1
2
3
4
7
5
689
C3
10pFC
310pF
R27
27RR
2727R
RV1
V5.5MLA0603
RV1
V5.5MLA0603
C22 100nFC22 100nF
R2
68KR
268K
C1
15pFC
115pF
C11 100nFC11 100nF
R4
27R
R4
27R
JP3JP3
C70
100nF
C70
100nF
R11
0RR
110R
C14 100nFC14 100nF
C24 4.7uFC24 4.7uFC
571uFC
571uF
C21 100nFC21 100nF
C51
100nFC
51100nF
R1
47KR
147K
Y132.768 kHz
Y132.768 kHz
12
R14
220RR
14220R
C5
15pFC
515pF
R9
100K
R9
100K
C15 100nFC15 100nF
D1
Blue-ledD
1Blue-led
R3
27R R3
27R
R41
100KR
41100K
C20 100nFC20 100nF
C59
1uFC
591uF
C2
15pFC
215pF
R22
47KR
2247K
R21
470KR
21470K
C25 4.7uFC25 4.7uF
R20
100KR
20100K
C29
1uFC
291uF
R25
DN
P
R25
DN
P
TP4TP4
TP5TP5
TP6TP6
C60
1uFC
601uF
C4
15pFC
415pF
R7
100K
R7
100K
C12 100nFC12 100nF
C27
1uFC
271uF
MN
3
IS62WV10248D
BLL
MN
3
IS62WV10248D
BLL
A0
5
A1
4
A2
3
A3
2
A4
1
A5
44
A6
43
A7
42
A8
39
A9
28
A10
27
A11
26
A12
25
A13
24
A14
23
A15
22
A16
21
A17
20
A18
19
A19
18
CS
1#6
CS
240
OE
#41
WE
#17
D0
9
D1
10
D2
13
D3
14
D4
31
D5
32
D6
35
D7
36
NC
17
NC
28
NC
315
NC
416
NC
529
NC
630
NC
737
NC
838
VD
D1
11
VD
D2
33
GN
D1
12
GN
D2
34
R43
100KR
43100K
D3
NSR
0320MW
2T1G
D3
NSR
0320MW
2T1G
C19 100nFC19 100nF
R8
100K
R8
100K
Q2
<REF>Q
2<R
EF> 1
3 2
TP3TP3
C8
100nFC
8100nF
JP8JP8
JP4JP4
C17 100nFC17 100nF
R6
100K
R6
100K
U6
TPS78230DD
CR
U6
TPS78230DD
CR
IN1
GN
D1
2
EN
3G
ND
24
OU
T5
AT91SAM4S-LQ
FP100
MN
1AT91SAM
4S-LQFP100
AT91SAM4S-LQ
FP100
MN
1AT91SAM
4S-LQFP100
PA
0_PW
MH
0_TIOA
0_A17
74
PA
1_PW
MH
1_TIOB
0_A18
72
PA
2_PW
MH
2_SC
K0_D
ATR
G67
PA
3_TWD
0_NP
CS
366
PA
4_TWC
K0_TC
LK0
55
PA
5_RX
D0_N
PC
S3
53
PA
6_TXD
0_PC
KO
52
PA
7_RTS
0_PW
MH
349
PA
8_CTS
0_AD
12BTR
G48
PA
9_UR
XD
0_NP
CS
146
PA
10_UTX
D0_N
PC
S2
44
PA
11_NP
CS
0_PW
MH
042
PA
12_MIS
O_P
WM
H1
41
PA
13_MO
SI_P
WM
H2
33
PA
14_SP
CK
_PW
MH
331
PA
15_TF_TIOA
1_PW
ML3
30
PA
16_TK_TIO
B1_P
WM
L228
PA
17_TD_P
CK
1_PW
MH
3_AD
12B0
12
PA
18_RD
_PC
K2_A
14_AD
12B1
14
PA
19_RK
_PW
ML0_A
15_AD
12B2
18
PA
20_RF_P
WM
L1_A16_A
D12B
324
PA
21_RX
D1_P
CK
1_AD
12B8
15
PA
22_TXD
1_NP
CS
3_NC
S2_A
D12B
920
PA
23_SC
K1_P
WM
H0_A
1922
VDDCORE85
JTAG
SE
L77
GND45
GND95
GND70
GND26
VDDIO27
VDDIO69
VDDIO91
PB
8_XO
UT
96
PB
9_XIN
97
PB
0_PW
MH
0_AD
12B4
3N
RS
T60
VDDCORE56
AD
VR
EF
1
PA
25_CTS
1_PW
MH
2_A23
38P
A24_R
TS1_P
WM
H1_A
2034
PB
2_UR
XD
1_NP
CS
2_AD
12B6
7
PB
3_UTX
D1_P
CK
2_AD
12B7
9
PB
6_TMS
_SW
DIO
79P
B4_TW
D1_P
WM
H2_TD
I51
PB
5_TWC
K1_P
WM
L0_TDO
76P
B7_TC
K_S
WC
LK83
TES
T61
PB
12_PW
ML1_E
RA
SE
87P
B14_N
PC
S1_P
WM
H3_D
AC
O1
99
VDDOUT11
PB
1_PW
MH
1_AD
12B5
5
PA
26_DC
D1_TIO
A2_M
CD
A2
39
PA
27_DTR
1_TIOB
2_MC
DA
357
PA
28_DS
R1_TC
LK1_M
CC
DA
59
PA
29_RI1_TC
LK2_M
CC
K63
PA
30_PW
ML2_N
PC
S2_M
CD
A0
64
PA
31_NP
CS
1_PC
K2_M
CD
A1
81VDDIN
10
PB
10_DD
M88
PB
11_DD
P89
PB
13_PW
ML2_P
CK
0_DA
CO
093
VDDIO98
VDDCORE36
VDDCORE16
VDDPLL100
VDDIO50
GND2
PC0_D0_PWML025
PC1_D1_PWML147
PC2_D2_PWML243
PC3_D3_PWML340
PC4_D4_NPCS137
PC5_D535
PC6_D632
PC7_D729
PC8_NWR0_NWE58
PC9_NANDOE62
PC10_NANDWE65
PC11_NRD68
PC12_NCS3_AD12B1223
PC13_NWAIT_PWML0_AD12B1021
PC14_NCS071
PC15_NCS1PWML1_AD12B1119
PC16_A21_NANDALE73
PC17_A22_NANDCLE75
PC18_A0_NBS0_PWMH078
PC19_A1_PWMH180
PC20_A2_PWMH282
PC21_A3_PWMH384
PC22_A4_PWML386
PC23_A5_TIOA390
PC24_A6_TIOB392
PC25_A7_TCLK394
PC26_A8_TIOA413
PC27_A9_TIOB417
PC28_A10_TCLK454
PC29_A11_TIOA5_AD12B134
PC30_A12_TIOB5_AD12B146
PC31_A13_TCLK5_AD12B158
R46
0RR
460R
RV2
V5.5MLA0603
RV2
V5.5MLA0603
TP2TP2
C10 100nFC10 100nF
+
C9 10uF
+
C9 10uF
C26
100nFC
26100nF
JP9JP9
D4
NSR
0320MW
2T1G
D4
NSR
0320MW
2T1G
Y212MY212M
R10
100K
R10
100K
C58
100nF
C58
100nF
J2
HTST-110-01-SM
-DV
J2
HTST-110-01-SM
-DV
12
34
56
78
910
1112
13151719
14161820
BP1BP1
14
23
U5
TPS78230DD
CR
U5
TPS78230DD
CR
IN1
GN
D1
2
EN
3G
ND
24
OU
T5
U4
JY-3AAA U4
JY-3AAA
VC
C1
GN
D2
TP1TP1
JP1JP1
C23 100nFC23 100nF
18SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
55
44
33
22
11
DD
CC
BB
AA
LCD
BA
CK
LIGH
T
NCS2
LCD
MISO
SPIO_NPCS1#
MOSI
ZB_IRQ
MISC
SLP_TR
SPCK
ZB_RSTN
ZIGB
EE
PIR SEN
SOR
IMA
GE SEN
SOR
AD4, Comparator plus
AD0, ADC single end input
AD5, Comparator minus
(UR
XD
0)
(TWD
0)
(UTX
D0)
(TWC
K0)
Additional C
onnector
0R
100nF
0R
XVCLK1
VSYNC
HREF
FSIN
PCLK
LED_A
LED_K1
LED_K2
LED_K3
LED_K4
PA21
PB13
PA15PA16
LED_A
LED_K4
LED_K3
LED_K2
LED_K1
PA23
AGN
D_O
VT
PWD
N_O
VT
PWD
N_O
VT
PB13
PA15PA16
PA21
PA23
DG
ND
DG
ND
AGN
D
DG
ND
AGN
DAG
ND
AGN
D
AGN
D
DG
NDD
GN
D
DG
ND
DG
ND
DG
ND
DG
ND
ADVR
EF
ADVR
EF
+3V_OVT
+3V_PERIPH
+3V_LCD
+3V_LCD
+3V_LCD
+3V_LCD
ADVR
EF
ADVR
EF
+3V_PERIPH
DG
ND
+3V_OVT
DG
ND
DG
ND
+3V_PERIPH
DG
ND
PC13
{2}
PA17{2}
PB0{2}
PA21{2}
PA3{2}
PA4{2}
PA26{2}
PA25{2}
PA24{2}
PA28{2}
PA27{2}
PA30{2}
PA29{2}
PA31{2}
PB13{2}
PC15
{2}
PA15{2}
PA16{2}
PA23{2}
NR
ST{2}
PA13{2}
PA5{2}
PB3{2}
PA6{2}
PA14{2}
PB2{2}
PA12{2}
PB14{2}
PC0
{2}PC
1{2}
PC2
{2}PC
3{2}
PC4
{2}PC
5{2}
PC6
{2}PC
7{2}
PA22{2}
PC19
{2}PC
8{2}
PC11
{2}
PB1{2}
PA10{2}
PA4{2}
PB3{2}
PA9{2}
PA3{2}
PA11{2}
PC10
{2}
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D3
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Peripherals
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D3
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Peripherals
RE
VD
ATE
MO
DIF.
DE
S.
DA
TEV
ER
.S
CA
LE1/1R
EV
.S
HE
ET
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
INIT E
DIT
A
SA
M4S
-WP
IR-R
D3
3
22-FEB-12
A
XX-XXX-XXYD
LXXX
Peripherals
MN
7O
V7740M
N7
OV7740
XV
CLK
1D
5
PW
DN
A4
RE
SE
TBB
5
SIO
CC
4
SIO
DC
5
FSIN
C2
PC
LKE
6
HR
EF
C3
VS
YN
CD
1
DA
TA0
E5
DA
TA1
E2
DA
TA2
D4
DA
TA3
D3
DA
TA4
F5
DA
TA5
F2
DA
TA6
E4
DA
TA7
E3
DA
TA8
D2
DA
TA9
E1
DV
DD
F4
DG
ND
F3
DO
VD
DC
1
DO
VD
DC
6
DO
GN
DD
6
AV
DD
A1
AV
DD
A6
AG
ND
B1
AG
ND
B6
VR
EFH
A3
VR
EFN
B2
NC
1A
2
NC
2A
5
C61
18pFC
6118pF
C37
1uFC
371uF
R56
0RR
560R
R63
100KR
63100K
C56
DN
PC
56D
NP
R28
100KR
28100K
R31
1MR
311M
C35
1uFC
351uF
R61
200K 1%R
61200K 1%
R59
0R R59
0R
C41
1uFC
411uF
R35
1M R35
1M
MN
8LT1495C
S8M
N8
LT1495CS8
IN1-
2
IN1+
3
OU
T27
IN2-
6
IN2+
5
GN
D4
VC
C8
OU
T11
L24.7uH
L24.7uH
C62
2.2nFC
622.2nF
C67
4.7uFC
674.7uF
C39
10uFC
3910uF
TP7SM
DTP7
SMD
C54
100nFC
54100nF
C65
1uFC
651uF
J52X10PTS CO
UD
EJ52X10PTS C
OU
DE
12
34
56
78
910
C47
1uFC
471uF
C40
1uFC
401uF
R5
27RR
527R
C45
100nFC
45100nF
R34
10KR
3410K
R13
0RR
130R
C46
1uFC
461uF
R38
0RR
380R
R29
4.7KR
294.7K
R45
0RR
450R
+C
5210uF
+C
5210uF
J6
8 PIN C
onnector
J6
8 PIN C
onnector
11
22
33
44
55
66
77
88
J4FH26-39S-0.3SH
WJ4FH
26-39S-0.3SHW
VD
D1
DB
172
DB
163
DB
154
DB
145
DB
136
DB
127
DB
118
DB
109
DB
910
DB
811
DB
712
DB
613
DB
514
DB
415
DB
316
DB
217
DB
118
DB
019
VD
D20
RD
21
WR
22
RS
23
CS
24
RE
SE
T25
IM0
26
IM1
27
GN
D28
LED
-A29
LED
K1
30
LED
K2
31
LED
K3
32
LED
K4
33
Y+
34
Y-
35
X+
36
X-
37
NC
38
GN
D39
Q3
<REF>Q
3<R
EF> 1
3 2
R36
10KR
3610K
C53
100nFC
53100nF
C49
10uFC
4910uF
TP8SM
DTP8
SMD
L10R
L10R
R54
10KR
5410K
C34
100nFC
34100nF
TP11SM
DTP11
SMD
C36
100nFC
36100nF
R39
10KR
3910K
R37
1M R37
1M
TP9SM
DTP9
SMD
TP10SM
DTP10
SMD
C33
100nFC
33100nF
R57
4.7KR
574.7K
R15
DN
PR
15D
NP
R58
47KR
5847K
B2BN03K314S300R
B2BN03K314S300R
C42
100nFC
42100nF
C63
2.2uFC
632.2uF
C66
1uFC
661uF
C64
1uFC
641uF
R40
10KR
4010K
B1
BN03K314S300R
B1
BN03K314S300R
R33
1M R33
1M
TP12SM
DTP12
SMD
C48
1uFC
481uF
C44
100nFC
44100nF
C50
10uFC
5010uF
R62
649K 1%R
62649K 1%
R32
DN
PR
32D
NPMN
10
AAT3155ITP
MN
10
AAT3155ITP
C1+
10
C1-
9
EN
/SE
T11
C2+
7
C2-
6
OU
TCP
8
IN5
GN
D4
D1
3
D2
2
D3
1
D4
12
U1
RE200B
U1
RE200B
D1
S2
G3
R30
4.7KR
304.7K
R42
47KR
4247K
R64
100KR
64100K
R44
47KR
4447K
R60
649K 1%R
60649K 1%
LCD
U7
YXT28MP002A-39A
LCD
U7
YXT28MP002A-39A
19SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Document Comments
42060A Initial
20SAM4S-WPIR-RD [USER GUIDE]42060A–ATARM–12/2012
Section 5Revision History
5.1 Revision History
Atmel Corporation1600 Technology DriveSan Jose, CA 95110USATel: (+1) (408) 441-0311Fax: (+1) (408) 487-2600www.atmel.com
Atmel Asia LimitedUnit 01-5 & 16, 19FBEA Tower, Millennium City 5418 Kwun Tong RoaKwun Tong, KowloonHONG KONGTel: (+852) 2245-6100Fax: (+852) 2722-1369
Atmel Munich GmbHBusiness CampusParkring 4D-85748 Garching b. MunichGERMANYTel: (+49) 89-31970-0Fax: (+49) 89-3194621
Atmel Japan G.K.16F Shin-Osaki Kangyo Bldg1-6-4 Osaki, Shinagawa-kuTokyo 141-0032JAPANTel: (+81) (3) 6417-0300Fax: (+81) (3) 6417-0370
© 2012 Atmel Corporation. All rights reserved. / Rev.: 42060A–ATARM–12/2012
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
Atmel®, Atmel logo and combinations thereof, Enabling Unlimited Possibilities®, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. ARM®, Thumb®, CortexTM are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others. Other terms and product names may be trademarks of others.