6.2MAX3318 Control Pull-ups................................................................................................. 6-2
Section 7
Revision History .........................................................................................................7-1
iiAT91SAM7L-STK Rev. A Starter Kit User Guide
6409A–ATARM–30-Jun-08
1.1Scope
The AT91SAM7L-STK rev.A starter kit enables evaluation capabilities and code development of applications running on an AT91SAM7L64/128.
This guide focuses on the AT91SAM7L-STK rev.A board as an evaluation platform.
1.2Deliverables
The AT91SAM7L-STK rev.A package contains the following items:
An AT91SAM7L-STK rev.A board
Two AAA batteries
1.3The AT91SAM7L-STK Rev. A Starter Board
The board is equipped with an AT91SAM7L128 (128-lead LQFP package) together with the following:
Section 1
Overview
One DBGU serial communication port
One ZIGBEE extension connector
One JTAG/ICE debug interface
Five user- input push buttons
One WakeUP input push button
One Reset Push Button
One Battery Socket for two AAA batteries
One 400 segments dot matrix LCD
AT91SAM7L-STK Rev. A Starter Kit User Guide1-1
6409A–ATARM–30-Jun-08
2.1Electrostatic Warning
The AT91SAM7L-STK rev.A starter board is shipped in a protective anti-static package. The board must
not be subjected to high electrostatic potentials. A grounding strap or similar protective device should be
worn when handling the board. Avoid touching the component pins or any other metallic element.
2.2Requirements
In order to set up the AT91SAM7L-STK rev.A starter board, the following items are needed:
The AT91SAM7L-STK rev.A starter board
Two AAA batteries
Section 2
Setting Up the AT91SAM7L-STK Rev. A Board
AT91SAM7L-STK Rev. A Starter Kit User Guide2-1
6409A–ATARM–30-Jun-08
Setting Up the AT91SAM7L-STK Rev. A Board
2.3Layout
Figure 2-1. AT91SAM7L-STK Rev. A Board Layout
2.4Powering Up the Board
The AT91SAM7L-STK rev.A requires 3.0V (2.2V-3.6V) DC input. The power is supplied to the board via
2 AAA batteries or 3.0V VCC pads.
2.5Getting Started
Please refer to the AT91SAM product pages on the Atmel web site, for the most up-to-date information
on getting started with the AT91SAM7L-STK rev.A.
2-2AT91SAM7L-STK Rev. A Starter Kit User Guide
6409A–ATARM–30-Jun-08
2.6AT91SAM7L-STK Rev. A Block Diagram
Figure 2-2. AT91SAM7L-STK Block Diagram
Setting Up the AT91SAM7L-STK Rev. A Board
PC[0..29]
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
Interfaces
PC[0..29]
Interfaces
Processor
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
ERASE
Processor
SHEET 2
'%*8
56=,*%((
SHEET 4
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
LCD, KBD
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
ERASE
LCD, KBD
SHEET 3
AT91SAM7L-STK Rev. A Starter Kit User Guide2-3
6409A–ATARM–30-Jun-08
3.1AT91SAM7L64/128 Microcontroller
• Incorporates the ARM7TDMI
– High-performance 32-bit RISC Architecture
– High-density 16-bit Instruction Set
– Leader in MIPS/Watt
– EmbeddedICE
™
In-circuit Emulation, Debug Communication Channel Support
• Internal High-speed Flash
– 128 Kbytes (AT91SAM7L128), Organized in 512 Pages of 256 Bytes Single Plane
– 64 Kbytes (AT91SAM7L64), Organized In 256 Pages of 256 Bytes Single Plane
– Single Cycle Access at Up to 15 MHz in Worst Case Conditions
– 128-bit Read Access
– Page Programming Time: 4.6 ms, Including Page Auto Erase, Full Erase Time: 10 ms
– 10,000 Write Cycles, 10-year Data Retention Capability, Sector Lock Capabilities, Flash Security Bit
– Fast Flash Programming Interface for High Volume Production
• Enhanced Embedded Flash Controller (EEFC)
– Interface of the Flash Block with the 32-bit Internal Bus
– Increases Performance in ARM and Thumb Mode with 128-bit Wide Memory Interface
• Internal High-speed SRAM, Single-cycle Access at Maximum Speed
– 6 kbytes
• 2 Kbytes Directly on Main Supply that Can Be Used as Backup SRAM
• 4 Kbytes in the Core
• Memory Controller (MC)
– Enhanced Embedded Flash Controller, Abort Status and Misalignment Detection
• Reset Controller (RSTC)
– Based on Brownout Reset and Low-power Factory-calibrated Brownout Detector
– Provides External Reset Signal Shaping and Reset Source Status
• Clock Generator (CKGR)
– Low-power 32 kHz RC Oscillator, 32 kHz On-chip Oscillator, 2 MHz Fast RC Oscillator and one PLL
• Supply Controller (SUPC)
– Minimizes Device Power Consumption
– Manages the Different Supplies On Chip
– Supports Multiple Wake-up Sources
• Power Management Controller (PMC)
– Software Power Optimization Capabilities, Including Slow Clock Mode (Down to 500 Hz) and Idle Mode
– Three Programmable External Clock Signals
– Handles Fast Start Up
• Advanced Interrupt Controller (AIC)
– Individually Maskable, Eight-level Priority, Vectored Interrupt Sources
– Two External Interrupt Sources and One Fast Interrupt Source, Spurious Interrupt Protected
®
ARM® Thumb® Processor
Section 3
Board Description
AT91SAM7L-STK Rev. A Starter Kit User Guide3-1
6409A–ATARM–30-Jun-08
Board Description
• Debug Unit (DBGU)
– Two-wire UART and Support for Debug Communication Channel interrupt, Programmable ICE Access
Prevention
• Periodic Interval Timer (PIT)
– 20-bit Programmable Counter plus 12-bit Interval Counter
• Windowed Watchdog (WDT)
– 12-bit Key-protected Programmable Counter
– Provides Reset or Interrupt Signals to the System
– Counter may be Stopped While the Processor is in Debug State or in Idle Mode
• Real-time Clock (RTC)
– Two Hundred Year Calendar with Alarm
– Runs Off the Internal RC or Crystal Oscillator
• Three Parallel Input/Output Controllers (PIOA, PIOB, PIOC)
– Eighty Programmable I/O Lines Multiplexed with up to Two Peripheral I/Os
– Input Change Interrupt Capability on Each I/O Line
– Individually Programmable Open-drain, Pull-up resistor and Synchronous Output
• Eleven Peripheral DMA Controller (PDC) Channels
• One Segmented LCD Controller
– Display Capacity of Forty Segments and Ten Common Terminals
– Software Selectable LCD Output Voltage (Contrast)
• Two Universal Synchronous/Asynchronous Receiver Transmitters (USART)
®
– Individual Baud Rate Generator, IrDA
– Support for ISO7816 T0/T1 Smart Card, Hardware Handshaking, RS485 Support
– Manchester Encoder/Decoder
– Full Modem Line Support on USART1
Infrared Modulation/Demodulation
• One Master/Slave Serial Peripheral Interface (SPI)
– 8- to 16-bit Programmable Data Length, Four External Peripheral Chip Selects
• One Three-channel 16-bit Timer/Counter (TC)
– Three External Clock Inputs, Two Multi-purpose I/O Pins per Channel
– Double PWM Generation, Capture/Waveform Mode, Up/Down Capability
• One Four-channel 16-bit PWM Controller (PWMC)
• One Two-wire Interface (TWI)
– Master, Multi-Master and Slave Mode Support, All Atmel® Two-wire EEPROMs and I2C compatible
Devices Supported
– General Call Supported in Slave Mode
• One 4-channel 10-bit Analog-to-Digital Converter, Four Channels Multiplexed with Digital I/Os
• SAM-BA
• IEEE
®
Boot Assistant
– Default Boot Program
– Interface with SAM-BA Graphic User Interface
– In Application Programming Function (IAP)
®
1149.1 JTAG Boundary Scan on All Digital Pins
• I/Os, including Four High-current Drive I/O lines, Up to 4 mA Each
• Power Supplies
– Embedded 1.8V Regulator, Drawing up to 60 mA for the Core with Programmable Output Voltage
– Single Supply 1.8V - 3.6V
– Zero-power Power-on Reset and Brownout Detector, Fully Programmable
• Fully Static Operation: Up to 36 MHz at 85°C
• Available in a 128-lead LQFP Green and a 144-ball LFBGA Green Package
6 Kbytes of Internal single-cycle access High-speed SRAM
64/128 Kbytes of Internal single-cycle access High-speed Flash
3.4Clock Circuitry
32.768 KHz standard crystal for the oscillator
3.5Reset Circuitry
Internal reset controller with a bi-directional reset pin
External reset push button
3.6Shut Down controller
Programmable shutdown and Wake-Up
Wake-up push button.
3.7Power Supply Circuitry
For dynamic power consumption, the AT91SAM7L64/128 consumes a maximum of 30 mA on VCC at
full speed 36MHz
On board 2 AAA batteries or 3V DC input power pad directly supplied to VCC
3.8User Interface
Five user- input push buttons, four direction buttons and one ok button
3.9Debug Interface
20-pin JTAG/ICE interface connector
One Serial interface (DBGU COM Port) via RS-232 DB9 male socket
3.10Expansion Slot
One ZIGBEE expansion connector for Atmel AT86RF230 adaptor
All PIOC signals of the AT91SAM7L64/128 are routed to peripheral extension connector (J6). This
allows the developer to add external hardware components or boards.
3-4AT91SAM7L-STK Rev. A Starter Kit User Guide
6409A–ATARM–30-Jun-08
Board Description
3.11PIO Usage
Table 3-1. PIO Controller A
I/O LinePeripheral APeripheral BPeripheral UsagePowered by
PA0Segment LCD PANELCOM0VDDIO2
PA1Segment LCD PANELCOM1VDDIO2
PA2Segment LCD PANELCOM2VDDIO2
PA3Segment LCD PANELCOM3VDDIO2
PA4Segment LCD PANELCOM4VDDIO2
PA5Segment LCD PANELCOM5VDDIO2
PA6Segment LCD PANELSEG0VDDIO2
PA7Segment LCD PANELSEG1VDDIO2
PA8Segment LCD PANELSEG2VDDIO2
PA9Segment LCD PANELSEG3VDDIO2
PA10Segment LCD PANELSEG4VDDIO2
PA11Segment LCD PANELSEG5VDDIO2
PA12Segment LCD PANELSEG6VDDIO2
PA13Segment LCD PANELSEG7VDDIO2
PA14Segment LCD PANELSEG8VDDIO2
PA15Segment LCD PANELSEG9VDDIO2
PA16Segment LCD PANELSEG10VDDIO2
PA17Segment LCD PANELSEG11VDDIO2
PA18Segment LCD PANELSEG12VDDIO2
PA19Segment LCD PANELSEG13VDDIO2
PA20Segment LCD PANELSEG14VDDIO2
PA21Segment LCD PANELSEG15VDDIO2
PA22Segment LCD PANELSEG16VDDIO2
PA23Segment LCD PANELSEG17VDDIO2
PA24Segment LCD PANELSEG18VDDIO2
PA25Segment LCD PANELSEG19VDDIO2
AT91SAM7L-STK Rev. A Starter Kit User Guide3-5
6409A–ATARM–30-Jun-08
Board Description
Table 3-2. PIO Controller B
I/O LinePeripheral APeripheral BPeripheral UsagePowered by
PB0Segment LCD PANELSEG20VDDIO2
PB1Segment LCD PANELSEG21VDDIO2
PB2Segment LCD PANELSEG22VDDIO2
PB3Segment LCD PANELSEG23VDDIO2
PB4Segment LCD PANELSEG24VDDIO2
PB5Segment LCD PANELSEG25VDDIO2
PB6Segment LCD PANELSEG26VDDIO2
PB7Segment LCD PANELSEG27VDDIO2
PB8Segment LCD PANELSEG28VDDIO2
PB9Segment LCD PANELSEG29VDDIO2
PB10Segment LCD PANELSEG30VDDIO2
PB11Segment LCD PANELSEG31VDDIO2
PB12NPCS3Segment LCD PANELSEG32VDDIO2
PB13NPCS2Segment LCD PANELSEG33VDDIO2
PB14NPCS1Segment LCD PANELSEG34VDDIO2
PB15RTS1Segment LCD PANELSEG35VDDIO2
PB16RTS0Segment LCD PANELSEG36VDDIO2
PB17DTR1Segment LCD PANELSEG37VDDIO2
PB18PWM0Segment LCD PANELSEG38VDDIO2
PB19PWM1Segment LCD PANELSEG39VDDIO2
PB20PWM2Segment LCD PANELCOM6VDDIO2
PB21PWM3Segment LCD PANELCOM7VDDIO2
PB22NPCS1PCK1Segment LCD PANELCOM8VDDIO2
PB23PCK0NPCS3Segment LCD PANELCOM9VDDIO2
3-6AT91SAM7L-STK Rev. A Starter Kit User Guide
6409A–ATARM–30-Jun-08
Board Description
Table 3-3. PIO Controller C
I/O LinePeripheral APeripheral BPeripheral UsagePowered by
PC0CTS1PWM2User’s Input ButtonsOKVDDIO1
PC1DCD1TIOA2User’s Input ButtonsUPVDDIO1
PC2DTR1TIOB2User’s Input ButtonsRIGHTVDDIO1
PC3DSR1TCLK1User’s Input ButtonsDOWNVDDIO1
PC4RI1TCLK2User’s Input ButtonsLEFTVDDIO1
PC5IRQ1NPCS2ZIGBEEIRQ1VDDIO1
PC6NPCS1PCK2ZIGBEENPCS1VDDIO1
PC7PWM0TIOA0MAX3318EFORCEOFFVDDIO1
PC8PWM1TIOB0ZIGBEERSINVDDIO1
PC9PWM2SCK0ZIGBEESLP_IRVDDIO1
PC10TWDNPCS3VDDIO1
PC11TWCKTCLK0VDDIO1
PC12RXD0NPCS3MAX3318EFORCEONVDDIO1
PC13TXD0PCK0MAX3318EINVALIDVDDIO1
PC14RTS0ADTRGMAX3318EREADYVDDIO1
PC15CTS0PWM3VCC/VBAT MONITORENABLEVDDIO1
PC16DRXDNPCS1MAX3318EDRXDVDDIO1
PC17DTXDNPCS2MAX3318EDTXDVDDIO1
PC18NPCS0PWM0VDDIO1
PC19MISOPWM1ZIGBEEMISOVDDIO1
PC20MOSIPWM2ZIGBEEMOSIVDDIO1
PC21SPCKPWM3ZIGBEESPCKVDDIO1
PC22NPCS3TIOA1VDDIO1
PC23PCK0TIOB1VDDIO1
PC24RXD1PCK1VDDIO1
PC25TXD1PCK2VDDIO1
PC26RTS0FIQVDDIO1
PC27NPCS2IRQ0VDDIO1
PC28SCK1PWM0VDDIO1
PC29RTS1PWM1VDDIO1
AT91SAM7L-STK Rev. A Starter Kit User Guide3-7
6409A–ATARM–30-Jun-08
4.1Configuration Straps
Table 4-1 gives details of configuration straps on the AT91SAM7L-STK rev. A starter board and their
default settings.
Table 4-1.
DesignationDefault SettingFeature
J6 pins 39-40OpenedClosed for internal flash erase
J8ClosedVCC jumper
SD1OpenedDisables VDDIO2 to VDDLCD connection
SD22-3Selects VCC or VDD3V6 to VDDLCD
SD3ClosedEnables VDDOUT applying to VDDCORE
SD42-3Selects VDDINLCD input
R20INEnables the ICE NRST input
TP1N.ARX
TP2N.ATX
Section 4
Configuration
(1)
(2)
TP3N.ACLKIN
TP4N.AFWUP
TP5N.AADREF
TP6N.AXOUT
TP7N.ANRSTB
TP8N.AVDDIO2
TP9N.AVDD3V6
TP10N.AVDDOUT
Notes:1. This jumper is used to erase and reinitialize the internal flash content and some of the NVM bits.
2. This jumper is provided for power consumption measurement. By default, it is closed. To use this feature, the user has to open the strap and insert an ammeter.
AT91SAM7L-STK Rev. A Starter Kit User Guide4-1
6409A–ATARM–30-Jun-08
This section contains the following schematics:
Top Level
Interfaces
LCD, KBD
Processor
Section 5
Schematics
AT91SAM7L-STK Rev. A Starter Kit User Guide5-1
6409A–ATARM–30-Jun-08
5
4
3
2
1
Interfaces
SHEET 2
DD
PC[0..29]
PC[0..29]
CC
Interfaces
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
Processor
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
ERASE
Processor
SHEET 4
BB
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
LCD, KBD
AD[0..3]
PA[0..25]
PB[0..23]
PC[0..29]
ERASE
LCD, KBD
SHEET 3
AA
INIT EDIT
INIT EDIT
INIT EDIT
A
A
A
REV
REV
REV
SCALE
SCALE
AT91SAM7L-STK
AT91SAM7L-STK
AT91SAM7L-STK
Top level
Top level
Top level
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
Transistor Q1 is incorrectly connected. The schematic is right but the PCB connections of pins S and D
are swapped => the protection diode is polarized forward (permanent current flow across the bridge) and
the MOS is not operating properly (non accurate battery level measurement).
Problem Fix/Workaround
Remove Q1 in order to avoid the parasitic 150 µA battery drain. If battery measurement is really mandatory for some applications, Q1 has to be removed and soldered bottom up, taking care to apply the
correct polarity. Additionally, a 100 KΩ pull-up resistor is needed across gate and source.
6.2MAX3318 Control Pull-ups
The default configuration of the MAX3318 is ON. This leads to extra power consumption discharging the
batteries when the AT91SAM7L128 enters OFF mode (or does not even drive PC7 and PC12 to put the
MAX3318 in OFF mode).
Section 6
Errata
Problem Fix/Workaround
Remove R1, R2 and R3 and add a 10M Ω pull-down resistor on PC7. This allows to Force OFF the
MAX3318 when the AT91SAM7L128 enters OFF mode and to turn it on when the AT91SAM7L128
wakes up. The user can save power consumption by driving PC7 connected to the FORCEOFF pin of
the MAX3318.
AT91SAM7L-STK Rev. A Starter Kit User Guide6-1
6409A–ATARM–30-Jun-08
Doc RevComments
6409AFirst issue.
Section 7
Revision History
Change
Request Ref.
AT91SAM7L-STK Rev. A Starter Kit User Guide7-1
6409A–ATARM–30-Jun-08
HeadquartersInternational
Atmel Corporation
2325 Orchard Parkway
San Jose, CA 95131
USA
Tel: 1(408) 441-0311
Fax: 1(408) 487-2600
Atmel Asia
Room 1219
Chinachem Golden Plaza
77 Mody Road Tsimshatsui
East Kowloon
Hong Kong
Tel: (852) 2721-9778
Fax: (852) 2722-1369
Product Contact
Web Site
www.atmel.com
www.atmel.com/AT91SAM
Literature Requests
www.atmel.com/literature
Atmel Europe
Le Krebs
8, Rue Jean-Pierre Timbaud
BP 309
78054 Saint-Quentin-enYvelines Cedex
France
Tel: (33) 1-30-60-70-00
Fax: (33) 1-30-60-71-11
Technical Support
AT91SAM Support
Atmel techincal support
Atmel Japan
9F, Tonetsu Shinkawa Bldg.
1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033
Japan
Tel: (81) 3-3523-3551
Fax: (81) 3-3523-7581
Sales Contacts
www.atmel.com/contacts/
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 ATMEL’S TERMS AND CONDI-
TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, 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 OF 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 product 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’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life.