Download Atmel AT89STK-06 User guide

Transcript
AT89STK-03
Starter Kit for AT8xC5122 & AT83C5123
..............................................................................................
Hardware User Guide
Table of Contents
Section 1
Introduction ........................................................................................... 1-1
1.1
Features ....................................................................................................1-1
Section 2
Hardware Description ........................................................................... 2-5
2.1
2.2
Block Diagram...........................................................................................2-5
Power Supply ............................................................................................2-6
2.2.1
2.3
Regulator Output Voltage Selection & Power On...............................2-7
C51 Settings .............................................................................................2-7
2.3.1
INT1 Switch ........................................................................................2-7
2.3.2
EA Jumper..........................................................................................2-7
2.3.3
ALE led ...............................................................................................2-7
2.3.4
Reset ..................................................................................................2-7
2.3.5
Crystal ................................................................................................2-7
2.4
Features Description .................................................................................2-7
2.4.1
LEDs Settings.....................................................................................2-7
2.4.2
USB Peripheral...................................................................................2-8
2.4.3
SPI......................................................................................................2-8
2.4.4
RS232.................................................................................................2-8
2.4.5
SIM Alternate Card .............................................................................2-8
2.4.6
PLL Filter ............................................................................................2-8
2.4.7
EEPROM Settings ..............................................................................2-9
2.5
2 x 48 headers ..........................................................................................2-9
Section 3
Part Programming............................................................................... 3-11
3.1
3.1.1
ISP mode (In System Programming ) ...............................................3-12
3.1.2
Execution mode................................................................................3-13
3.2
Bootloader DRV ......................................................................................3-16
3.2.1
ISP Mode..........................................................................................3-16
3.2.2
Execution mode................................................................................3-16
3.3
AT89STK-03 Hardware User Guide
Bootloader DPW .....................................................................................3-12
Bootloader DSU ......................................................................................3-21
3.3.1
ISP Mode..........................................................................................3-21
3.3.2
Execution mode................................................................................3-21
i
7609B–SCR–11/06
Table of Contents
Section 4
Schematics ......................................................................................... 4-27
4.1
Bill of Materials........................................................................................4-35
Section 5
Document Revision History ................................................................ 5-37
AT89STK-03 Hardware User Guide
ii
7609B–SCR–11/06
Section 1
Introduction
This document describes the MCU demonstration board included in AT89STK-03
Starter Kit dedicated to the AT8xC5122 & AT83C5123 Smart Card Reader
microcontrollers.
This board enables to test the microcontrollers by using demonstration software and/or
start the developement of applications.
1.1
Features
The AT8xC5122 & AT83C5123 demonstration board provides the following features:
Support of three packages :
– PLCC 68
– VQFP 64
– PLCC 28
On-board configurable power supply using a low drop regulator powered by :
– an external power converter
– an external battery
– the USB interface
ISO7816 Smart Card connector
SIM Smart Card connector
On-board reset, INT1, In-System Programming and USB detach switches
EEPROM 24C256 socket for code storage
Power, ALE, RS232 Rx /Tx, and 7 general purpose LEDs
USB, SPI and RS232 hardware connectors
Test points
Two 48x2 headers
AT89STK-03 Hardware User Guide
1-1
7609B–SCR–11/06
Introduction
Figure 1-1. AT8xC5122 & AT83C5123 Evaluation Board
Regulator Output
Voltage selection
Power
Converter input
Power Supply
config
Main Smart
Card
Power Switch
Fuse bypass
Fuse
9V Battery Input
RS232
Regulator bypass
Lab. Power
Supply input
USB
SPI
Test Points
EA
ALE
ALE Led
Crystal
SIM
Alternate card
ALE
E2PROM
location
Reset Switch
INT1 Switch
ISP Switch
1-2
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Introduction
Figure 1-2. Default Configuration : Component Side - Jumper Config
Solder Side
AT89STK-03 Hardware User Guide
1-3
7609B–SCR–11/06
Introduction
Figure 1-3. Default Configuration : Solder Side - Jumper Configuration
1-4
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Section 2
Hardware Description
2.1
Block Diagram
Figure 2-1. AT8xC5122 & AT83C5123 demonstration board components
RS232
USB
SPI
POWER
Supply
AT8xC5122
EEPROM
Reset
EA
INT1
SCIB
Master Smart Card
AT89STK-03 Hardware User Guide
LED
SIM
SIM Smart Card
2-5
7609B–SCR–11/06
Hardware Description
2.2
Power Supply
The on-board power supply electronics enable various power supply configurations.
The power source can be:
–
VBus from USB interface (USB connector)
–
An external power converter (9V DC connector)
–
9V Battery (9V BATT connector)
–
Laboratory Power Supply (LAB PWR connector)
The power source selection is done by means of a jumper. The jumper must be set
accordingly with the selected power source. The input of laboratory power supply is not
controlled by the jumper. This source is directly applied to the input of the low drop
regulator.
Any power supply (including the Laboratory Power Supply) can be turned on/off by
using the red switch (POWER). Once the power is established, the power LED (PWR)
becomes red. A low drop regulator is used to deliver a 3.6V or a 5V voltage.
The low drop regulator can be bypassed by means of “REG. BYPASS” jumper. In this
case the power source is directly applied on the MCU. Extreme care must be taken in
using this feature and it is recommended to use it only with a Laboratory Power Supply
perfectly stable and controlled.
The demonstration board is protected by a fuse soldered on board. In case the fuse
blows, it is possible to bypass it by adding a solder gout on the solder pad next to the
fuse on the component side of the board until its replacement. Once the fuse is
replaced, the solder gout must be removed from the bypass pad.
Table 2-1. Power supply specifications and configurations
2-6
7609B–SCR–11/06
Jumper
Position
Power Supply
Min
Max
Unit
USB
USB interface
4.3
5.5
V
USB_LMT
USB interface
DC_IN
External
power supply
7.0
9.0
V
Applicable when the board is fed by an
external power converter
BATT
Battery
6.5
9.0
V
Applicable when the board is fed by an
external battery
Comments
- Default configuration
- Applicable when CPU demonstration
board is used alone
- Applicable when CPU demonstration
board is plugged in the C51 generic
board
- This configuration prevents the
electronics of CPU and C51 generic
board from drawing inrush currents from
USB interface
AT89STK-03 Hardware User Guide
Hardware Description
3.6V
OFF
ON
5V
OFF
3.6V
Regulator Output Voltage
Selection
3.6V
5V
Power On/Off
ON
OFF
5V
Regulator Output
Voltage Selection &
Power On
ON
2.2.1
The 3.6V output can be changed by means of R4 resistor (solder side). The output voltage equation is:
Vref
R4 = R3 × ----------------------------Vout – Vref
Vref = 1.20V, R3 = 1MΩ
2.3
C51 Settings
2.3.1
INT1 Switch
2.3.2
EA Jumper
The INT1 switch can be disabled by removing the solder gout from the solder pad SW36
on the solder side of the CPU demonstration board.
EA Jumper
Description
ON
Code fetched from an external memory
OFF
Code fetched from MCU’s internal memory
Comments
Default configuration
2.3.3
ALE led
The ALE led reports the MCU state. It can be disabled by removing the solder gout from
the solder pad SW4 on solder side of the board.
2.3.4
Reset
The push button is provided to generate a warm reset.
2.3.5
Crystal
The 8 Mhz crystal can be removed in order to be placed next to the appropriate package
(PLCC68 or PLCC28). The load capacitors are disabled by default because the internal
oscillator of the MCU has been designed to work without them. However these capacitors can be enabled by adding a solder gout on the solder pads SW34 and SW35 on the
solder side of the board.
2.4
Features
Description
2.4.1
LEDs Settings
AT89STK-03 Hardware User Guide
11 LEDs are provided.
Name
Color
Description
PWR
Red
Power Supply status
ALE
Green
MCU activity status - This led is enabled by a solder gout on the solder pad SW4
LED0
Green
General purpose led - Connected to P3.2 - Enabled by LED0 jumper
LED1
Green
General purpose led - Connected to P3.4 - Enabled by LED1 jumper
2-7
7609B–SCR–11/06
Hardware Description
2.4.2
USB Peripheral
Name
Color
Description
LED2
Green
General purpose led - Connected to P3.6 - Enabled by LED2 jumper or SW21
solder pad
LED3
Green
General purpose led - Connected to P3.7 - Enabled by LED3 jumper or SW22
solder pad
LED4
Green
General purpose led - Connected to P4.3 (Only on PLCC68 / VQFP64 packages)
- Enabled by LED4 jumper
LED5
Green
LED6
Green
General purpose led - Connected to P4.5 (Only on PLCC68 / VQFP64 packages)
- Enabled by LED6 jumper or SW25 solder pad
TX
Green
Serial Transmission Line Status - Connected to TXD / P3.1 - Enabled by SW28
solder pad
RX
Red
Serial Reception Line Status - Connected to RXD / P3.0 - Enabled by SW29
solder pad
General purpose led - Connected to P4.4 (Only on PLCC68 / VQFP64 packages)
- Enabled by LED5 jumper
All the required hardware to develop a USB firmware is available and includes:
– a USB connector
– 2 test points D+ / D– a DETACH pushbutton which enables to connect / disconnect the pull-up on D+ and then to
simulate an USB Attach/Detach operation. This avoids removals and insertions of the USB
cable.
2.4.3
SPI
An SPI interface is available.
2.4.4
RS232
All the required hardware to manage a RS232C interface is available. Tx and Rx can be
connected to the LEDs (Rx and Tx) by means of SW28 and SW29 solder pads on solder
side of the board.
– 9 pin SUBD connector
– Transceiver MAX202
2.4.5
SIM Alternate Card
The following hardware is supplied:
– SIM connector
– power supply jumper
SIM PWR
5V power supply
5V
2.4.6
PLL Filter
3.3V
3.3V power supply
5V
3.3V
1. PLCC68 / VQFP64
PLL Filter is composed by C7, C10, R9
2. PLCC28
PLL filter is composed by C25, R16, C26.
2-8
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Hardware Description
2.4.7
EEPROM Settings
This MCU demonstration board supports different versions of the AT8XC5122 and
AT83C23 microcontrollers:
- Flash versions
- CRAM versions
- ROM versions
and different versions of embedded bootloaders (DPW, DRV, DSU).
PLCC68 package is only available in CRAM version but it possible to have it function in
flash mode by adding an external 256Kb (32KB x 8) E2PROM on the 8 pin DIP socket. It
is possible to write protect the E2PROM by adding a jumper on the WP location.
The demonstration board is configured to work with parts implementing the latest version of the bootloader (DSU or upper versions). If parts implementing older versions are
used, headers must be added on A0 ,A1, P36, P37, P42, P43 locations and the configuration of the board must changed accordingly.
Table 2-2. E2PROM settings
Bootloader
Configuration of the board
DPW
DRV
DSU
Jumper on A0
Yes
No
No
Jumper on A1
No
No
No
Jumper on P36
Yes
No
No
Jumper on P37
Yes
No
No
Jumper on P42
Yes
No
No
Jumper on P43
Yes
No
No
Solder gout on SW18
No
Yes
Yes
Solder gout on SW26
No
Yes
Yes
Refer to bootloader datasheets for further information.
2.5
2 x 48 headers
AT89STK-03 Hardware User Guide
These headers support the optional C51 generic board.
2-9
7609B–SCR–11/06
Section 3
Part Programming
This section applies only to versions AT85C5122, AT85EC5122 and AT89C5122. The
method to program the part depends on the version of the bootloader which is embedded in a ROM memory. The bootloader version is defined by three letters which can be
found on the part marking.
AT89STK-03 Hardware User Guide
3-11
7609B–SCR–11/06
Part Programming
3.1
Bootloader DPW
Ensure you are familiar with the DPW bootloader datasheet before programming the
part.
Configure the MCU demonstration board following Table 2-2 on page 9.
3.1.1
ISP mode
(In System
Programming )
When no E2PROM is connected to the MCU, the bootloader works automatically in ISP
mode. It waits for instructions coming from an external program like FLIP through serial
or USB interfaces. FLIP is a software interface which enables to communicate with the
bootloader in order to program the part by transferring the code in the internal CRAM
(volatile program memory) and execute the code.
Table 3-1. Programming the MCU with FLIP
Interface
Perform the following actions
Comments
USB
DEMO BOARD CONFIGURATION
- Any E2P connected to
C5122 prevents from
working in ISP mode with
FLIP
- Set the POWER switch in OFF position
- Remove any E2P present on the DIP socket
- Connect a USB cable between demo board and PC. If an RS232C cable is present, the USB
interface is selected by default
- DPW bootloader is
supported by FLIP since
version V1.8.8
- Configure the power jumper accordingly to power source wich supplies the demo board
- Set the POWER switch in ON position
- Area from 7FFD to 07FFF
is reserved for bootloader
configuration
--> Result : PWR ON and ALE leds are switched on
--> Trouble shooting : check if 8 Mhz quartz is correctly fitted
PROGRAMMING PART
- Run FLIP
- Select part at8xc5122 for FLIP 1.8.8 or part at8xc5122_dpw for FLIP 2.x.x
- Establish an USB communication
---> Results :
- Bootloader Vers = 1.1.2
- DeviceBoot Ids = 02 00
- Start Application button becomes red
- Select Erase, Blank check, Program and Verify options if part is running for the first time, otherwise
just select Program and Verify
- Load the code file (Intel hex format) into FLIP buffer
- Click on Run button
- Click on Start Application button
3-12
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Part Programming
Table 3-1. Programming the MCU with FLIP
Interface
Perform the following actions
RS232C
DEMO BOARD CONFIGURATION
Comments
- Set the POWER switch in OFF position
- Remove any USB cable connected to demoboard
- Remove any E2P present on DIP socket
- Configure the power jumper accordingly to power source wich supplies the demo board
- Connect a RS232C cable between demo board and PC
- Set the POWER switch in ON position
--> Result : PWR ON and ALE leds are switched on
--> Trouble shooting : check if 8 Mhz quartz is correctly fitted
PROGRAMMING PART
- Run FLIP
- Select part at8xc5122 for FLIP 1.8.8 or part at8xc5122_dpw for FLIP 2.x.x
- Select a RS232C communication
- Establish a serial communication with the appropriate COM number and a baudrate comprised
between 1200 and 38400 .
---> Results :
- Bootloader Vers = 1.1.2
- DeviceBoot Ids = 02 00
- Start Application button becomes red
- Select Erase, Blank check, Program and Verify options if part is running for the first time, otherwise
just select Program.
- Load the code file (Intel hex format) into FLIP buffer
- Click on Run button
- Click on Start Application button
3.1.2
Execution mode
AT89STK-03 Hardware User Guide
When the E2PROM is connected to ports P4.2 and P4.3 or P3.6 and P3.7, the bootloader works automatically in execution mode. At reset, it transfers the code from the
E2PROM to the internal CRAM (volatile program memory) and execute it. The E2PROM
must contain a valid code. As the bootloader does not support E2PROM programming
functions, the E2PROM must be programmed by external programmer or by a specific
code which is programmed in CRAM and which behaves as a bootloader. This code
programs the E2PROM by the code received from FLIP.
3-13
7609B–SCR–11/06
Part Programming
Table 3-2. Programming the E2PROM with FLIP
Interface
Perform the following actions
Comments
USB
interface
DEMO BOARD CONFIGURATION
DPW bootloader does not provide
E2P programming functions. It is
necessary to download and execute
a loader code into CRAM to
program the external E2P by means
of FLIP
- Set the POWER switch in OFF position
- Remove any E2P present on DIL8 socket
- Connect a USB cable between demo board and PC. If an RS232C cable is present, the USB
interface is selected by default
- Configure the power jumper accordingly to power source wich supplies the demo board
- Set the POWER switch in ON position
--> Result : PWR ON and ALE leds are switched on
--> Trouble shooting : check if 8 Mhz quartz is correctly fitted
PROGRAMMING EXTERNAL E2P
- Run FLIP
- Select part at8xc5122 for FLIP 1.8.8 or part at8xc5122_dpw for FLIP 2.x.x
- Establish a USB communication
- Select Program and Verify options
- Load c5122-at24c-loader-0_6_0.hex file
- Click on Run button
- Click on Start Application button
- Re-establish an USB communication
---> Results :
- Bootloader Vers =1.1.2
- DeviceBoot Ids = E0 00
- Start Application button becomes red
- Select Program and Verify options
- Load the user code into FLIP buffer
- Edit FLIP buffer
- Configure the area from 07FFD to 07FFF according to the wanted options (Refer to
bootloader datasheet). A common configuration is :
07FFD = FDh
07FFE = MSB (user code size)
07FFF = LSB (user code size)
- Select Whole buffer in buffer options menu (to program the whole buffer in the E2P)
- Insert an 24C256 E2P device into the demoboard’s DIP socket without switching off the
demo board, otherwise the loader code will be lost.
- Click on Run button (the loader running in CRAM programs the external E2P with the code
received fom FLIP)
- No need to click on start application
- Reset the MCU by means of RESET switch to execute the code programmed in the external
E2P. (If external E2P is present, the bootloader downloads the code from external E2P and
execute it)
3-14
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Part Programming
Table 3-2. Programming the E2PROM with FLIP
Interface
Perform the following actions
RS232C
interface
DEMO BOARD CONFIGURATION
Comments
- Set the POWER switch in OFF position
- Remove any E2P present on DIL8 socket
- Connect a USB cable between demo board and PC. If an RS232C cable is present, the USB
interface is selected by default
- Configure the power jumper accordingly to power source wich supplies the demo board
- Set the POWER switch in ON position
--> Result : PWR ON and ALE leds are switched on
--> Trouble shooting : check if 8 Mhz quartz is correctly fitted
PROGRAMMING EXTERNAL E2P
- Run FLIP
- Select part at8xc5122 for FLIP 1.8.8 or part at8xc5122_dpw for FLIP 2.x.x
- Select a RS232C communication
- Establish a serial communication with the appropriate COM number and a baudrate
comprised between 1200 and 38400 .
- Select Program and Verify options
- Load c5122DPW-at24c-loader-0_6_0.hex file
- Click on Run button
- Click on Start Application button
- Establish a serial communication with the appropriate COM number and a baudrate
comprised between 1200 and 38400 .
---> Results :
- Bootloader Vers =1.1.2
- DeviceBoot Ids = E0 00
- Start Application button becomes red
- Select Program and Verify options
- Load the user code into FLIP buffer
- Edit FLIP buffer
- Configure the area from 07FFD to 07FFF according to the wanted options (Refer to
bootloader datasheet). A common configuration is :
07FFD = FDh
07FFE = MSB (user code size)
07FFF = LSB (user code size)
- Select Whole buffer in buffer options menu (to program the whole buffer in the E2P)
- Insert an 24C256 E2P device into the demoboard’s DIL8 socket without switching off the
demo board, otherwise the loader code will be lost.
- Click on Run button (the loader running in CRAM programs the external E2P with the code
received fom FLIP)
- No need to click on start application
- Reset the MCU by means of RESET switch to execute the code programmed in the external
E2P. (If external E2P is present, the bootloader downloads the code from external E2P and
execute it)
AT89STK-03 Hardware User Guide
3-15
7609B–SCR–11/06
Part Programming
3.2
Bootloader DRV
Ensure you are familiar with the DRV bootloader datasheet before programming the
part.
Configure the MCU demonstration board following Table 2-2 on page 9.
3.2.1
ISP Mode
CRAM version
The bootloader enters automatically in ISP mode with this version after power up or resset sequences and waits for commands from FLIP as there is no code available to run.
When the bootloader is running in ISP mode, the ALE led blinks.
FLASH version
The ISP mode must invoked manually by holding down the ISP switch (P3.7=0) during
power up or reset sequences. When the bootloader is running in ISP mode, the ALE led
blinks.
3.2.2
Execution mode
CRAM version
The execution mode must be invoked manually from FLIP. ALE Led remains on permanently during this mode.
FLASH version
The execution mode does not request specific action. The application code runs automatically after power up or reset sequence. ALE Led remains on permanently during
this mode.
Notes:
1. The external E2PROM works only with the PLCC68 package. It enables to obtain a
flash equivalent solution as the PLCC68 is only available in CRAM version. For the
others packages, order the appropriate part as the E2PROM is implemented inside
the package.
2. The programming of internal or external E2PROM is automatically handled by the
bootloader.
3-16
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Part Programming
Table 3-3. Programming with bootloader DRV
External
E2P
Not
Present
(AT85 like)
Interface
Perform the following actions
Comments
USB
DEMO BOARD CONFIGURATION
- DRV bootloader is supported
by FLIP since version V2.1.1
- Set the POWER switch in OFF position
- Connect an USB cable between demo board and PC. If an RS232C cable is
present, the USB interface is selected by default
- Configure the power jumper accordingly to power source wich supplies the demo
board
- Set the POWER switch in ON position.
--> Result : PWR ON led is switched on and ALE led is blinking
--> Trouble shooting : Check if 8 Mhz quartz is correctly fitted
PROGRAMMING PART
- DRV bootloader is unable to
differentiate CRAM and FLASH
parts. This is why two Start
applications are available. The
right start application must be
clicked accordingly to the used
part
- There are some areas reserved
for the bootloader. Refer to
bootloader datasheet.
- Run FLIP
- Select part at8xc5122
- Establish a USB communication
---> Results :
- Bootloader Vers = 1.2.0
- DeviceBoot Ids = 00 03
- Two start applications buttons are displayed in red colour :
- CRAM Start Application button (for at85c5122 parts)
- FLASH Start Application (for at89c5122 parts)
- Select Erase, Blank check, Program and Verify options if part is running for the
first time, otherwise just select Program and Verify
- Load the code file (Intel hex format) into FLIP buffer
- Edit FLIP buffer and check if configuration byte located at address 07FFD is
correct (Refer to bootloader datasheet) - Only security bit can be applied to this part
version
- Select Whole buffer in buffer options menu
- Click on Run button
- Click on CRAM Start Application button (FLASH Start Application is not
applicable)
AT89STK-03 Hardware User Guide
3-17
7609B–SCR–11/06
Part Programming
Table 3-3. Programming with bootloader DRV
External
E2P
Present
(AT89 like)
Interface
Perform the following actions
Comments
USB
interface
DEMO BOARD CONFIGURATION
- Setting hardware condition
P3.7=0 during power on or reset
will force the bootloader to enter
in ISP mode with FLIP
- Set the POWER switch in OFF position
- Connect a USB cable between demo board and PC. If an RS232C cable is
present, the USB interface is selected by default
- Configure the power jumper accordingly to power source wich supplies the demo
board
- Set the POWER switch in ON position.
-- While holding down the ISP switch, press and release the reset switch to invoke
the ISP mode
(Note : don’t miss this step as it is very important to work around a USB bug when
invoking the ISP mode)
--> Result : PWR ON led is switched on and ALE led is blinking
- DRV bootloader supports E2P
write functions to program the
external E2P.
- The area from 07FFD to 07FFF
can be configured by means of
FLIP’s GUI. It is recommended
to check the configuration by
editing the FLIP buffer from
07FFF to 07FFF
--> Trouble shooting : Check if 8 Mhz quartz is correctly fitted
PROGRAMMING EXTERNAL E2P
- Run FLIP
- Select part at8xc5122
- Establish a USB communication
---> Results : if a Software Security Error windows comes up, just click OK. This
windows just warns that the part security bit is activated. In this case, an erase
operation is mandatory before programming the part
- Select Erase, Blank Check, Program and Verify options
- Load the user code into FLIP buffer
- Edit FLIP buffer
- Configure the area from 07FFD to 07FFF according to the wanted options (Refer
to bootloader datasheet). A common configuration is :
07FFD = 08h
07FFE = MSB (user code size)
07FFF = LSB (user code size)
- Select Whole buffer in buffer options menu
- Click on Run button
- Click on FLASH Start Application button to execute the user code
- Check if E2P code is correctly executed after a power on or a reset operation
3-18
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Part Programming
Table 3-3. Programming with bootloader DRV
External
E2P
Not
present
(AT83 like)
Interface
Perform the following actions
Comments
RS232C
DEMO BOARD CONFIGURATION
- Versions of FLIP equal or
greater than 2.1.1 do not support
RS232C interface for at8xc5122
device. A workaround consists to
select part at89c51rc2 and
RS232C interface.
- Set the POWER switch in OFF position
- Remove any USB cable connected to demoboard
- Connect a RS232C cable between demo board and PC
- Configure the power jumper accordingly to power source wich supplies the demo
board
- Set the POWER switch in ON position.
--> Result : PWR ON and ALE leds are switched on
- Bootloader DRV only supports
a baudrate of 115200 baud for
RS232C interface.
--> Trouble shooting : check if 8 Mhz quartz is correctly fitted
PROGRAMMING PART
- Run FLIP
- Select part at88c51rc2
- Select a RS232C communication
- Establish a serial communication with the appropriate COM number and a
baudrate of 115200 baud
---> Results :
- Bootloader Vers = 1.2.0
- DeviceBoot Ids = 00 03
- Start Application button becomes red
WARNING : Don’t care about and don’t change the other available options
except the reset option close to the start application command
- Select Erase, Blank Check, Program and Verify options if part is running for the
first time, otherwise just select Program (Verify command is long to execute)
- Load the code file (Intel hex format) into FLIP buffer
- Edit FLIP buffer and check if configuration byte located at address 07FFD is
correct (Refer to bootloader datasheet) - Only security bit can be applied to this part
version
- Select Whole buffer in buffer options menu
- Click on Run button
- Select reset option (if this option is not selected, the user code is not executed)
- Click on Start Application button
AT89STK-03 Hardware User Guide
3-19
7609B–SCR–11/06
Part Programming
Table 3-3. Programming with bootloader DRV
External
E2P
Present
(AT85 like)
Interface
Perform the following actions
Comments
RS232C
interface
DEMO BOARD CONFIGURATION
- Setting hardware condition
P3.7=0 during power on or reset
will force the bootloader to enter
in ISP mode with FLIP
- Set the POWER switch in OFF position
- Remove any USB cable connected to demoboard
- Connect a RS232C cable between demo board and PC
- Configure the power jumper accordingly to power source wich supplies the demo
board
- DRV bootloader supports E2P
write functions to program the
external E2P.
- While holding down the ISP switch, set the POWER switch to the ON position.
--> Result : PWR ON and ALE leds are switched on
--> Trouble shooting : Check if 8 Mhz quartz is correctly fitted
PROGRAMMING EXTERNAL E2P
- Run FLIP
- Select part at88c51rc2
- Select a RS232C communication
- Establish a serial communication with the appropriate COM number and a
baudrate of 115200 baud
---> Results :
- Bootloader Vers = 1.2.0
- DeviceBoot Ids = 00 03
- Start Application button becomes red
WARNING : Don’t care about and don’t change the other available options
except the reset option close to the start application command
- Select Erase, Blank Check, Program and Verify options if part is running for the
time, otherwise avoidto select Verify command as it is long to execute
- Load the user code into FLIP buffer
- Edit FLIP buffer
- Configure the area from 07FFD to 07FFF according to the wanted options (Refer
to bootloader datasheet). A common configuration is :
07FFD = 08h
07FFE = MSB (user code size)
07FFF = LSB (user code size)
- Select Whole buffer in buffer options menu
- Click on Run button
- Select reset option (if this option is not selected, the user code is not executed)
- Click on the start application button to execute the user code
- Check if E2P code is correctly executed after a power on or reset operation
3-20
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Part Programming
3.3
Bootloader DSU
The DSU bootloader fixes a USB bug present in the DRV bootloader. Therefore the
DSU bootloader has the same features as the DRV bootloader.
Ensure you are familiar with the DSU bootloader datasheet before programming the
part.
Configure the MCU demonstration board following Table 2-2 on page 9.
3.3.1
ISP Mode
CRAM version
The bootloader enters automatically in ISP mode with this version after power up or resset sequences and waits for commands from FLIP as there is no code available to run.
When the bootloader is running in ISP mode, the ALE led blinks.
FLASH version
The ISP mode must be invoked manually by holding down the ISP switch (P3.7=0) during power up or reset sequences. When the bootloader is running in ISP mode, the ALE
led blinks.
3.3.2
Execution mode
CRAM version
The execution mode must be invoked manually from FLIP. ALE Led remains on permanently during this mode.
FLASH version
The execution mode does not request specific action. The application code runs automatically after power up or reset sequence. ALE Led remains on permanently during
this mode.
Notes:
1. The external E2PROM works only with the PLCC68 package. It enables to get a flash
equivalent solution as the PLCC68 is only available in CRAM version. For the others
packages, order the appropriate part as the E2PROM is implemented inside the
package.
2. The programming of internal or external E2PROM is automatically handled by the
bootloader
AT89STK-03 Hardware User Guide
3-21
7609B–SCR–11/06
Part Programming
Table 3-4. Programming with bootloader DSU
E2PROM
Interface
Perform the following actions
Comments
Not
present
USB
DEMO BOARD CONFIGURATION
- DSU bootloader is supported by FLIP
since version V2.2.0
(AT85 like)
- Set the POWER switch in OFF position
-- Connect a USB cable between demo board and PC. If an RS232C cable is
present, the USB interface is selected by default
- Configure the power jumper accordingly to power source wich supplies the
demo board
- There are some areas reserved for
the bootloader. Refer to bootloader
datasheet.
- Set the POWER switch in ON position.
--> Result : PWR ON led is switched on and ALE led is blinking
--> Trouble shooting : Check if 8 Mhz quartz is correctly fitted
PROGRAMMING PART
This operating mode is applicable from
FLIP 2.4.0
- Run FLIP
- Select part AT8XC5122
- Establish a USB communication
---> Results :
- Bootloader Vers = 1.2.1
- DeviceBoot Ids = 85 04
85 means CRAM version
- Start application buttons is displayed in red colour
- The configuration of the firmware present on the device is displayed :
+ Boot Loader Jump Bit (checked=1, unckecked=0)
+ Lock bit (checked=1, unckecked=0)
+ Size bit (ckecked=1, unckecked=0)
+ User Code Lengh = size of the user’s code
Note : only lock bit parameter is applicable for this version of the part.
- If a Software Security Error windows comes up, just click OK. This
window just warns that the part security bit is activated. In this case, an
Erase operation is mandatory before programming the part
- Select Erase, Blank check, Program and Verify options if part is running for
the first time, otherwise just select Program and Verify
- Load the code file (Intel hex format) into FLIP buffer
- Click on Run button.
- Click on Start Application button or press the reset switch to execute the
code
Note : it is necessary to program the part after each power off as the CRAM
is a volatile program memory
3-22
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Part Programming
Table 3-4. Programming with bootloader DSU
E2PROM
Interface
Perform the following actions
Comments
Present
USB
DEMO BOARD CONFIGURATION
- Setting hardware condition P3.7=0
during power on or reset will force the
bootloader to enter in ISP mode with
FLIP
(AT89 like)
- Set the POWER switch in OFF position
- Connect a USB cable between demo board and PC. If an RS232C cable is
present, the USB interface is selected by default
- Configure the power jumper accordingly to power source wich supplies the
demo board
- While holding down the ISP switch, set the POWER switch in ON position
to invoke the ISP mode
--> Result : PWR ON led is switched on and ALE led is blinking
--> Trouble shooting : Check if 8 Mhz quartz is correctly fitted
- DSU bootloader supports E2P write
functions to program the external E2P.
- The area from 07FFD to 07FFF can
be configured by means of FLIP’s GUI.
It is recommended to check the
configuration by editing the FLIP buffer
from 07FFF to 07FFF
PART PROGRAMMING
- Run FLIP
- Select part at8xc5122
- Establish a USB communication
---> Results :
- Bootloader Vers = 1.2.1
- DeviceBoot Ids = 89 04
- Start application buttons is displayed in red colour
- The configuration of the firmware present on the device is displayed :
+ Boot Loader Jump Bit (checked=1, unckecked=0)
+ Lock bit (checked=1, unckecked=0)
+ Size bit (ckecked=1, unckecked=0)
+ User Code Lengh = size of the user’s code
- If a Software Security Error windows comes up, just click OK. This
window just warns that the part security bit is activated. In this case, an
Erase operation is mandatory before programming the part
- Select Erase, Blank Check, Program and Verify options
- Load the user code into FLIP buffer
FLIP parses the hex file and automatically updates the buffer’s area from
07FFDh to 07FFFh - No operation is requested from the user, but the user is
free to change the default parameters set by FLIP :
+ Sizebit = 1
+ User Code Lengh = size of the user’s code
- Click on Run button
+ Boot Loader Jmp Bit, Lock bit, size bit and User Cod Length are
updated oln the GUI of FLIP after part programming and according to the
configuration set the FLIP’s buffer from 07FFDh to 07FFFh
+ When the part is programmed, it is possible to change the individual
bits by checking the box on the GUI if FLIP. They are changed on the fly in
the internal E2PROM by the bootloader.
+ Note : when the lock bit is set, the part is set in protected mode at
once and it is not possible to read, write and perform any parameter change
just after.
The only way to remove the protection mode is to erase the part.
- Click on the start application button or press the reset switch or power the
demo board off and on to execute the code
AT89STK-03 Hardware User Guide
3-23
7609B–SCR–11/06
Part Programming
Table 3-4. Programming with bootloader DSU
E2PROM
Interface
Perform the following actions
Comments
Not
present
RS232C
DEMO BOARD CONFIGURATION
- Versions of FLIP equal or greater
than 2.1.1 do not support RS232C
interface for at8xc5122 device. A
workaround consists to select part
at89c51rc2 and RS232C interface.
(AT85 like)
- Set the POWER switch in OFF position
- Remove any USB cable connected to demoboard
- Connect a RS232C cable between demo board and PC
- Configure the power jumper accordingly to power source wich supplies the
demo board
- Set the POWER switch in ON position.
- Bootloader DSU only supports a
baudrate of 115200 baud for RS232C
interface.
--> Result : PWR ON led is switched on and ALE led is blinking
--> Trouble shooting : Check if 8 Mhz quartz is correctly fitted
PART PROGRAMMING
- Run FLIP
- Select AT8XC5122 part
- Select a RS232C communication
- Establish a serial communication with the appropriate COM number and a
baudrate of 115200 baud
---> Results :
- Bootloader Vers = 1.2.1
- DeviceBoot Ids = 85 04
85 means CRAM version
- Start Application button becomes red
- The configuration of the firmware present on the device is displayed :
+ Boot Loader Jump Bit (checked=1, unckecked=0)
+ Lock bit (checked=1, unckecked=0)
+ Size bit (ckecked=1, unckecked=0)
+ User Code Lengh = size of the user’s code
Note : only lock bit parameter is applicable for this version of the part.
- If a Software Security Error windows comes up, just click OK. This
window just warns that the part security bit is activated. In this case, an
Erase operation is mandatory before programming the part
- Select Erase, Blank Check, Program and Verify options if part is running for
the first time, otherwise just select Program as Verify command is long to
execute
- Load the code file (Intel hex format) into FLIP buffer
- Click on Run button
- Click on Start Application button or press the reset switch to execute the
code
Note : it is necessary to program the part after each power off as the CRAM
is a volatile program memory
3-24
7609B–SCR–11/06
AT89STK-03 Hardware User Guide
Part Programming
Table 3-4. Programming with bootloader DSU
E2PROM
Interface
Perform the following actions
Comments
Present
RS232C
DEMO BOARD CONFIGURATION
- Setting hardware condition P3.7=0
during power on or reset will force the
bootloader to enter in ISP mode with
FLIP
(AT89 like)
- Set the POWER switch in OFF position
- Remove any USB cable connected to the demoboard
- Connect a RS232C cable between demo board and PC
- Configure the power jumper accordingly to power source wich supplies the
demo board
- DSU bootloader supports E2P write
functions to program the external E2P.
- While holding down the ISP switch ,set the POWER switch in ON position.
--> Result : PWR ON led is switched on and ALE led is blinking
--> Trouble shooting : Check if 8 Mhz quartz is correctly fitted
PART PROGRAMMING
- Run FLIP
- Select part AT8XC5122
- Select the RS232C communication
- Establish a serial communication with the appropriate COM number and a
baudrate of 115200 baud
---> Results :
- Bootloader Vers = 1.2.1
- DeviceBoot Ids = 89 04
89 means flash version
- Start Application button becomes red
- The configuration of the fimware present on the device is displayed :
+ Boot Loader Jump Bit (checked=1, unckecked=0)
+ Lock bit (checked=1, unckecked=0)
+ Size bit (ckecked=1, unckecked=0)
+ User Code Lengh = size of the user’s code
- Select Erase, Blank Check, Program and Verify options if part is running for
the first time, otherwise avoid to select Verify command as it is long to
execute
- Load the user code into FLIP buffer
FLIP parses the hex file and automatically updates the buffer’s area from
07FFDh to 07FFFh - No operation is requested from the user, but the user is
free to change the default parameters set by FLIP :
+ Size bit = 1
+ User Code Lengh = size of the user’s code
- Click on Run button
+ Boot Loader Jmp Bit, Lock bit, size bit and User Cod Length are
updated oln the GUI of FLIP after part programming and according to the
configuration set the FLIP’s buffer from 07FFDh to 07FFFh
Size bit =1 will force the bootloader to
download only the valid code instead
the whole 32K memory. This
decreases the time that the bootloader
needs to run the code.
+ When the part is programmed, it is possible to change the individual
bits by checking the box on the GUI if FLIP. They are changed on the fly in
the internal E2PROM by the bootloader.
+ Note : when the lock bit is set, the part is set in protected mode only
when the serial communication with FLIP is stopped and not at once like in
USB interface. This is due to a minor bug in the bootloader. When the
protection mode is active it is not possible to read, write and perform any
parameter change. The only way to remove the protection mode is to erase
the part.
- Click on the start application button or press the reset switch or power the
demo board off and on to execute the code
AT89STK-03 Hardware User Guide
3-25
7609B–SCR–11/06
Section 4
Schematics
AT89STK-03 Hardware User Guide
4-27
7609B–SCR–11/06
A
B
C
C1
1 0 0 nF
10 K
R1
-
+ 9V
5
4
2
3
L A B PS
1
2
5
-
+
J1
SCREW TERM 2
9V DC-IN
J 13
C O NNECTOR JACK PWR
3
1
2
1
9 V BATT
1
2
J9
CONNECTOR SIP2
VBUS
OC
EN
IN1
IN2
GND
J 11
L OAD
8
7
6
1
U3
DF005S
2
M R A 4 007
D3
U1
T P S 2 0 41AD
OUT3
OUT2
OUT1
R5
180
1
D
1
2
3
+
4
2
1
4
2 J 12 1
D C-IN
2 J 10 1
BATT
2 J8
1
U S B LMT
2 J7
USB
4
1 2
S W42
2
0 . 5 A F USE
F1
F U S E B Y P.
1
P O WER
S W1
1
D2
3
S M B J 9 .0A
1 0 µ F 1 0 0 nF
4
C3
1
ON
C2
G E N _ PS
O FF
2
3
M A X 6 03CSA
OFF
IN
U2
SET
OUT
GND
GND
GND
GND
7609B–SCR–11/06
2
3
6
7
4-28
2
D a t e:
S ize
A4
T itle
5
8
2
5V
3 . 6V
1
of
7
TP20
TP2
GND
GND
Wednesday, July 30, 2003
1 . 2 .0
1
1
1
Rev
S h eet
1 0 µ F T A NTAL
D1
P O WER
R2
1K
V DD
A T 8 X C 5 1 2 2_DEMOB
R4
470 K
C4
V DD
1
D o c u m e n t N u m ber
P O W E R _ S U P P LY
R EG OUT
S W2
R3
1M
Y ES
J 42 2
R E G . B Y P ASS
NO
3
1
5
A
B
C
D
Schematics
Figure 4-1. Power Supply Section
AT89STK-03 Hardware User Guide
A
B
C
D
1
27
27
R12
TP23
R11
LI
L1
10 µH
VREF
C IO
C C8
CPRES
C C4
CCLK
CRST
P1.6
CCLK1
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
PSEN
EA
S W4
ALE
R7
1K
J 15
EA
VREF
D+
D-
P1.0/CIO
P1.1/CC8
P1.2/CPRES
P1.3/CC4
P1.4/CCLK
P1.5/CRST
P1.6/SS
P1.7/CCLK1
LI
P2.0/A8/PC_A0
P2.1/A9/PC_A1
P2.2/A10/PC_A2
P2.3/A11/PC_A3
P2.4/A12/PC_A4
P2.5/A13/PC_A5
P2.6/A14/PC_A6
P2.7/A15/PC_A7
P0.0/AD0/PC_D0
P0.1/AD1/PC_D1
P0.2/AD2/PC_D2
P0.3/AD3/PC_D3
P0.4/AD4/PC_D4
P0.5/AD5/PC_D5
P0.6/AD6/PC_D6
P0.7/AD7/PC_D7
EA
ALE
PSEN
( S e e n ote 1)
U4
A T 8 5 C 5 1 2 2 _ PLCC68
6
5
4
9
12
11
18
21
15
58
7
29
3
2
1
65
64
63
62
57
41
40
39
38
36
35
34
33
8
32
24
C28
1 0 0 nF
4
J 14
I DD
V DD
5
4
N o t e 1 : t h i s c o n n e c t i o n m u s t b e m a d e a s closer as possible from PLCC68 package
D QFP-
D-
D+
D QFP+
LI
V CC
ALE
D4
ALE
V DD
R6
10 K
1
2
1
2
1
V CC
VPFD3V
C5
1 0 0 nF
S W3
I DD
V DD
45
67
10
28
42
43
23
22
20
19
17
16
14
13
53
51
49
48
46
44
61
60
56
59
54
52
50
55
47
37
27
C8
1 0 µ F T A NTAL
RST
PLLF
DVCC
CVCC
XTAL1
XTAL2
P5.0/KB0/PC_REG
P5.1/KB1/PC_CE1
P5.2/KB2/PC_WE
P5.3/KB3/PC_RDY_IREQ
P5.4/KB4/PC_INPACK
P5.5/KB5/PC_WAIT
P5.6/KB6/PC_A8
P5.7/KB7/PC_A9
P4.0/MISO
P4.1/MOSI
P4.2/SCK
P4.3/LED4/PC_IORD
P4.4/LED5/PC_IOWR
P4.5/LED6/PC_OE
P4.6
P4.7
P3.0/RXD
P3.1/TXD
P3.2/INT0/LED0/CIO1
P3.3/INT1
P3.4/T0/LED1
P3.5/T1/CRST1
P3.6/WR/LED2
P3.7/RD/LED3
2 1
2
V DD
31
VCC
2 1
2
1
3
PLLF
D VCC
P5.0
P5.1
P5.2
P5.3
P5.4
P5.5
P5.6
P5.7
P4.0
P4.1
P4.2
P4.3
P4.4
P4.5
P4.6
P4.7
C VCC
C9
1 0 0 nF
P3.4
CRST1
P3.6
RXD
TXD
C IO1
3
2
1 2
C11
4 7 0 nF
1
R9
1.8 K
C7
1 5 0 pF
S W39
ISP
P3.7
P3.3
INT1
1 2
S W36
S W40
ISP
D VCC
1
68
AVCC
NC1
VSS
AVSS
26
25
66
CVSS
30
S W7
INT1
2
D a t e:
S ize
A4
T itle
Y1
8 M hz
C33
10 µF
R E S ET
C6
1 0 0 nF
XTAL2
XTAL1
Wednesday, July 30, 2003
A T 8 X C 5 1 2 2_DEMOB
D o c u m e n t N u m ber
C P U _ P L C C 68
S W8
R E S ET
PLLF
C10
33 pF
2
R8
10 K
V DD
2
Y3
8 M hz
1
3
1
2
AT89STK-03 Hardware User Guide
2
5
CL
1
2 1
S W34
CL
2 1
S W35
S h eet
2
GND
2
1
2
1
1
of
22 pF
C12
22 pF
C13
7
1 . 2 .0
Rev
A
B
C
D
Schematics
Figure 4-2. PLCC68 CPU Section
4-29
7609B–SCR–11/06
A
B
C
61
60
59
64
3
2
9
12
6
47
62
18
58
57
56
52
51
50
49
46
30
29
28
27
25
24
23
22
63
21
15
VREF
D+
D-
P1.0/CIO
P1.1/CC8
P1.2/CPRES
P1.3/CC4
P1.4/CCLK
P1.5/CRST
P1.6/SS
P1.7/CCLK1
LI
P2.0/A8/PC_A0
P2.1/A9/PC_A1
P2.2/A10/PC_A2
P2.3/A11/PC_A3
P2.4/A12/PC_A4
P2.5/A13/PC_A5
P2.6/A14/PC_A6
P2.7/A15/PC_A7
P0.0/AD0/PC_D0
P0.1/AD1/PC_D1
P0.2/AD2/PC_D2
P0.3/AD3/PC_D3
P0.4/AD4/PC_D4
P0.5/AD5/PC_D5
P0.6/AD6/PC_D6
P0.7/AD7/PC_D7
EA
ALE
PSEN
42
40
38
37
35
33
45
48
43
41
39
44
36
26
RST
PLLF
DVCC
CVCC
XTAL1
XTAL2
34
54
1
17
31
32
14
P5.0/KB0/PC_REG 13
P5.1/KB1/PC_CE1 11
P5.2/KB2/PC_WE 10
P5.3/KB3/PC_RDY_IREQ 8
P5.4/KB4/PC_INPACK 7
P5.5/KB5/PC_WAIT 5
P5.6/KB6/PC_A8 4
P5.7/KB7/PC_A9
P4.0/MISO
P4.1/MOSI
P4.2/SCK
P4.3/PC_IORD/LED4
P4.4/PC_IOWR/LED5
P4.5/PC_OE/LED6
P3.0/RXD
P3.1/TXD
P3.2/INT0/LED0/CIO1
P3.3/INT1
P3.4/LED1/T0
P3.5/T1/CRST1
P3.6/WR/LED2
P3.7/RD/LED3
4
5
N o t e 2 : G r o u n d c o n n e c t e d t o CVSS intead of GND on the PCB.
4
N o t e 1 : t h i s c o n n e c t i o n m u s t b e m a d e a s close as possible from PLCC68 package
U6
A T 8 5 C 5 1 2 2 _ VQFP64
VREF
D QFP+
D QFP-
C IO
C C8
CPRES
C C4
CCLK
CRST
P1.6
CCLK1
LI
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
EA
ALE
PSEN
V CC
20
VCC
55
AVCC
D
VSS
16
AVSS
53
CVSS
19
R E S ET
PLLF
D VCC
C VCC
XTAL1
XTAL2
P5.0
P5.1
P5.2
P5.3
P5.4
P5.5
P5.6
P5.7
P4.0
P4.1
P4.2
P4.3
P4.4
P4.5
RXD
TXD
C IO1
P3.3
P3.4
CRST1
P3.6
P3.7
D-
D+
V CC
27
R30 27
R29
3
R E S ET
VREF
19
3
2
1
4
7
6
9
10
8
13
RST
VREF
D+
D-
P1.0/CIO
P1.1/CC8
P1.2/CPRES
P1.3/CC4
P1.4/CCLK
P1.5/CRST
LI
C34
1 0 0 nF
( S e e n ote 1)
U5
A T 8 5 C 5 1 2 2 _ PLCC28
L2
10 µH
C IO
C C8
CPRES
C C4
CCLK
CRST
3
15
VCC
VSS
11
AVSS
26
2
D a t e:
S ize
A4
T itle
27
5
12
RXD
TXD
C IO1
P3.3
P3.4
P3.6
P3.7
C VCC
C30
1 0 0 nF
C31
4 7 0 nF
Wednesday, July 30, 2003
of
7
1 . 2 .0
3
C26
33 pF
Rev
1
R16
1.8 K
C25
1 5 0 pF
C36
22 pF
A T 8 X C 5 1 2 2_DEMOB
S h eet
Y2
8 M hz
C35
22 pF
1
D o c u m e n t N u m ber
C P U _ P L C C 2 8 _ V QFP64
C29
1 0 µ F T A NTAL
P5.2/PLLF
P5.1/DVCC
CVCC
XTAL1
XTAL2
17
18
24
25
23
22
21
20
16
C14
1 0 0 nF
2
P3.0/RXD
P3.1/TXD
P3.2/INT0/LED0
P3.3/INT1
P3.4/T0/LED1
P3.6/LED2
P3.7/LED3
28
AVCC
7609B–SCR–11/06
CVSS
4-30
14
5
A
B
C
D
Schematics
Figure 4-3. PLCC28_VQFP64 CPU Section
AT89STK-03 Hardware User Guide
A
B
C
5
C IO1
CRST1
CCLK1
CPRES
C IO
C C8
CRST
CCLK
C C4
C VCC
1
1
C IO1
CRST1
CCLK1
C16
22 pF
C IO
C C8
C17
10 pF
4
C18
22 pF
TP10
C C4
C32
1 0 0 nF
D VCC
C2
C3
C6
C7
3.3V
SW1
SW2
1
CPRES
1
C2
C3
C4
C6
C7
C8
TP7
TP8
TP9
C CLK C RST C C8
1
C RST
C CLK
C C4
TP6
C IO
4
C2
C3
C6
C7
J 22
J 21
SIM PWR
1
3
SW1
SW2
C2
C3
C4
C6
C7
C8
J 19
C1
C1
C5
C5
2
C1
C1
C5
C5
3
S m a r t C a r d Full Size
3
S I M C o n n e ctor
AT89STK-03 Hardware User Guide
5V
V DD
C19
1 0 0 nF
TP11
CVSS
C15
1 0 0 nF
TP5
C VCC
1
1
D
5
2
D a t e:
S ize
A4
T itle
2
1
4
of
7
1 . 2 .0
S h eet
A T 8 X 5 1 2 2_DEMOB
F r i d a y , J u l y 2 5 , 2003
Rev
D o c u m e n t N u m ber
S M A R T _ C A RD
1
A
B
C
D
Schematics
Figure 4-4. Smart Card Schema
4-31
7609B–SCR–11/06
A
B
C
5
C IO1
P3.4
P3.6
P3.7
P4.3
P4.4
P4.5
P4.7
P4.3
P3.7
P4.2
P3.6
R21
1K
2
1 J 28
P4.3
J 34
LED1
R22
1K
D6
LED1
S W26
E2P
2
2
1 J 27
P3.7
1 2
2
1 J 26
P4.2
J 33
LED0
D5
LED0
1
2
1 2
1 J 25
P3.6
2
1
2
P4.6
1
1
2
R23
1K
D7
LED2
SCL
SDA
4
S W21
LED2
LED2
R24
1K
D8
LED3
V DD
J 32
WP
J 38
LED5
R26
1K
D10
LED5
V DD
J 37
LED4
LED3
R25
1K
D9
LED4
R17
4.7 K
S W22
LED3
V DD
R20
4.7 K
V DD
1
2
S W18
E2P
1
2 1
2
1
2
1
2
4
3
R27
1K
D11
LED6
U7
E2P
7
6
5
C27
1 0 0 nF
3
2
1
2 1
2
1
V DD
8
WP
SCL
SDA
2 1
VCC
A0
A1
NC
S W25
LED6
LED6
GND
4
1
2
3
V DD
1
1
J 23 J 24 J 40
A0 A1 A2
1
2
7609B–SCR–11/06
2
4-32
2
D
5
2
D a t e:
S ize
A4
T itle
2
1
5
of
7
1 . 2 .0
S h eet
A T 8 X C 5 1 2 2_DEMOB
Wednesday, July 30, 2003
Rev
D o c u m e n t N u m ber
E 2 P _ L EDS
1
A
B
C
D
Schematics
Figure 4-5. E2P LEDs Section
AT89STK-03 Hardware User Guide
A
B
C
5
VBUS
USB_CON_DUSB_CON_D+
GND
GND
DCD
D SR
RX
RTS
TX
CTS
D SR
SPI
1
2
3
4
5
6
V DD
SS
MISO
SCK
MOSI
GND
J 30
CONNECTOR SIP6
R S 2 32C
1
6
2
7
3
8
4
9
5
P1
S U B - D 9 F E MALE
USB
1
2
3
4
J 29
USB B
V DD
P1.6
P4.0
P4.2
P4.1
R14
1.5 K
DETACH
4
C24 1 0 0 nF
C20 1 0 0 nF
S W27
4
4
3
1
13
8
14
7
C2+
C1-
C1+
R1IN
R2IN
T1OUT
T2OUT
U8
VREF
VBUS
6
2
16
12
9
11
10
D-
10
8
6
4
2
TP19
D+
1 0 0 nF
D+
3
V DD
9
7
5
3
1
9
7
5
3
1
XTAL1
V DD
P3.4
C IO1
3
L P C T E S T MODE
10
8
6
4
2
J 41
CONNECTOR HE10
C23 1 0 0 nF
V-
C21
V+
M A X 2 02ECSE
V ss
V-
V+
VCC
R1OUT
R2OUT
T1IN
T2IN
D1
TP18
R E S ET
C2-
5
C 22
100 nF
D12
TX
R13
1K
TXD
S W28
TXD
V DD
1
2 1
2
1
GND
15
2
D a t e:
S ize
A4
T itle
R15
1K
D13
RX
2
1
6
of
7
1 . 2 .0
Wednesday, July 30, 2003
Rev
A T 8 X C 5 1 2 2_DEMOB
S h eet
1
D o c u m e n t N u m ber
C O M M _ I N T E R F A CES
RXD
S W29
RXD
V DD
1
2 1
AT89STK-03 Hardware User Guide
2
D
5
A
B
C
D
Schematics
Figure 4-6. Comm Interfaces Section
4-33
7609B–SCR–11/06
A
B
C
P1.6
CCLK1
RXD
TXD
C IO1
P3.3
P3.4
CRST1
P3.6
P3.7
P5.0
P5.1
P5.2
P5.3
P5.4
P5.5
P5.6
P5.7
CPRES
5
48
46
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
P1.0
P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
P3.6
P3.7
P5.0
P5.1
P5.2
P5.3
P5.4
P5.5
P5.6
P5.7
J4
Vcc_CPU
Vss
TWI_sda
TWI_scl
/TWI_INT
/RST
/EA
/BP1
A16
CS_RAM
Vss
Xtal2
Vss
Spare0
Spare1
Spare2
Spare3
Spare4
Spare5
Spare6
Spare7
/Buzzer
Vss
Vss
47
45
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
G e n e r i c B o a r d L e f t C onnector
1
V DD
2
B UZZER
1 2
S W37
XTAL1
LED2
LED3
P4.5
LED6
XTAL2
R E S ET
EA
4
R18
4.7 K
4
1
2 1
2
7609B–SCR–11/06
P1.6
S W30
T WI
R19
4.7 K
V DD
1
2 1
4-34
2
D
5
1
BP1
1 2
S W6
S W31
T WI
1
2
P4.3
P4.2
V DD
2
TWI_INT
1 2
S W38
3
C IO1
P3.3
3
CRST1
1
S W41
2
D a t e:
S ize
A4
T itle
ALE
P5.0
P5.1
P5.2
P5.3
P5.4
P5.5
P5.6
P5.7
TXD
P3.3
P3.4
RXD
P3.7
PSEN
2
1 2 ISPF
GEN_PS
2
1
7
of
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P4.0
P4.1
P4.2
P4.3
P4.4
P4.5
P4.6
P4.7
F r i d a y , J u l y 2 5 , 2003
7
1 . 2 .0
S h eet
47
45
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
Rev
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P4.0
P4.1
P4.2
P4.3
P4.4
P4.5
P4.6
P4.7
A T 8 X C 5 1 2 2_DEMOB
J5
4.35_12V
4.35_12V
Vss
Gen_detect
CS_F
/ISP_F
Spare12
Spare11
Spare10
Spare9
Spare8
/PSEN
Vss
ALE
Keyb.0
Keyb.1
Keyb.2
Keyb.3
Keyb.4
Keyb.5
Keyb.6
Keyb.7
Vss
Vss
D o c u m e n t N u m ber
C 5 1 _ G E N E R I C BUS
48
46
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
G e n e r i c B o a r d R i g h t Connector
1
A
B
C
D
Schematics
Figure 4-7. C51 Generic Bus
AT89STK-03 Hardware User Guide
Schematics
4.1
Bill of Materials
Reference
Part
Part Description
C12,C13,C35,C36
22 pF
50V-5% Ceramic Capacitor
C26,C10
33 pF
50V-5% Ceramic Capacitor
C25,C7
150 pF
100V-5% Ceramic Capacitor
C1,C3,C5,C6,C9,C14,C15,
C19,C20,C21,C22,C23,C24,
C27,C28,C30,C32,C34
100 nF
50V-5% Ceramic Capacitor
C31,C11
470 nF
16V-10%-Ceramique
C2
10 µF
16V +/-20%
10 µF TANTAL
16V +/-10%
C8,C4
R11,R12,R29,R30
27 Ohms
1/16W-5% Resistor SMD
R5
180 Ohms
1/16W-5% Resistor SMD
R2,R7,R13,R15,R21,R22,
R23,R24,R25,R26,R27
1 K Ohms
1/16W-5% Resistor SMD
R14
1.5 K Ohms
1/16W-5% Resistor SMD
R16,R9
1.8 K Ohms
1/16W-5% Resistor SMD
R17,R18,R19,R20
4.7 K Ohms
1/16W-5% Resistor SMD
R1,R6,R8
10 K Ohms
1/16W-5% Resistor SMD
R4
470 K Ohms
1/16W-5% Resistor SMD
R3
1 M Ohms
1/16W-5% Resistor SMD
L2,L1
D4,D5,D6,D7,D8,D9,D10, D11,D12
D13,D1
10 µH
LED GREEN 30mA
LED RED 30mA
10% Inductance 300 mA SMD
LPM670 LED Green Mini TOPLED 30mA SMD
LSM676 LED Red Mini TOPLED 30mA SMD
D3
MRA4007
DIODE Rectifier
D2
SMBJ9.0A
DIODE TRANSIL 9V
U8
MAX202ECSE
RS-232 Transceiver
U3
DF005S
J19
Smart Card Full Size
ITT CCM01
J22
SIM Connector
ITT CCM03
Y1
Crystal 8 Mhz
F1
FUSE 500mA
SMD FUSE 500mA
U1
TPS2041AD
Current Limit Switches
U2
MAX603CSA
5V Adj. Regulator
U4
PLCC68 THole
Socket PLCC68 Through Hole
U5
PLCC28 CMS
Socket PLCC28 CMS
AT89STK-03 Hardware User Guide
Bridge rectifier
4-35
7609B–SCR–11/06
Section 5
Document Revision History
Changes from 4302A to 4302B
1. Updated document to reflect version 1.2.0 of MCU demonstration board.
AT89STK-03 Hardware User Guide
5-37
7609B–SCR–11/06
Atmel Corporation
2325 Orchard Parkway
San Jose, CA 95131, USA
Tel: 1(408) 441-0311
Fax: 1(408) 487-2600
Regional Headquarters
Europe
Atmel Sarl
Route des Arsenaux 41
Case Postale 80
CH-1705 Fribourg
Switzerland
Tel: (41) 26-426-5555
Fax: (41) 26-426-5500
Asia
Room 1219
Chinachem Golden Plaza
77 Mody Road Tsimshatsui
East Kowloon
Hong Kong
Tel: (852) 2721-9778
Fax: (852) 2722-1369
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
Atmel Operations
Memory
2325 Orchard Parkway
San Jose, CA 95131, USA
Tel: 1(408) 441-0311
Fax: 1(408) 436-4314
RF/Automotive
Theresienstrasse 2
Postfach 3535
74025 Heilbronn, Germany
Tel: (49) 71-31-67-0
Fax: (49) 71-31-67-2340
Microcontrollers
2325 Orchard Parkway
San Jose, CA 95131, USA
Tel: 1(408) 441-0311
Fax: 1(408) 436-4314
La Chantrerie
BP 70602
44306 Nantes Cedex 3, France
Tel: (33) 2-40-18-18-18
Fax: (33) 2-40-18-19-60
ASIC/ASSP/Smart Cards
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906, USA
Tel: 1(719) 576-3300
Fax: 1(719) 540-1759
Biometrics/Imaging/Hi-Rel MPU/
High Speed Converters/RF Datacom
Avenue de Rochepleine
BP 123
38521 Saint-Egreve Cedex, France
Tel: (33) 4-76-58-30-00
Fax: (33) 4-76-58-34-80
Zone Industrielle
13106 Rousset Cedex, France
Tel: (33) 4-42-53-60-00
Fax: (33) 4-42-53-60-01
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906, USA
Tel: 1(719) 576-3300
Fax: 1(719) 540-1759
Scottish Enterprise Technology Park
Maxwell Building
East Kilbride G75 0QR, Scotland
Tel: (44) 1355-803-000
Fax: (44) 1355-242-743
Literature Requests
www.atmel.com/literature
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 CONDITIONS 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 providedotherwise, 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.
© Atmel Corporation 2006. All rights reserved. Atmel®, logo and combinations thereof, and Everywhere You Are ® are the trademarks or registered trademarks, of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.
Printed on recycled paper.
7609B–SCR–11/06
/xM