AT89STK-06 Demo Board
..............................................................................................
Hardware User Guide
Section 1
Introduction
This document describes the board included in the AT89STK-06 Starter Kit dedicated to
the T89C51CC01/CC02 and AT89C51CC03 CAN microcontrollers (for T89C51CC02
optionnal adaptor is required). This board is designed to allow an easy evaluation of the
product using demonstration software.
The AT89STK-06 Starter Kit can be used with the AT89C51AC3, TR89C51AC2, and
T89C5115 Flash Microcontrollers with ADC (for T89C5115 optional adapter is required).
1.1
Features
• CAN
– On board CAN transceiver Atmel ATA6660
– D-sub Connector Compliant to the CiA (User Group: "CAN in Automation")
Recommendation for the CAN High Speed Bus
• Two Different Sockets to Support AT89C51CC03 and AT89C51AC3 in PLCC52 and all
controllers in PLCC44 Packages
• Support of the T89C51CC02 & T89C5115 Microcontroller Requires the use of a PLCC28
Adapter (CANADAPT28).
• The Board Comes with a AT89C51CC03-UA (PLCC44 package) and a AT89C51CC03-CA
(PLCC52 package) Samples(1).
• Analog-to-Digital Converter
– Potentiometer
– Thermal Resistor
– On board ADC Reference Voltage
• On-board Reset, INT0, INT1, LEDs, EA, ISP and Programming Interface
• Power, ALE, RS232 Rx and Tx LEDs
• CAN, SPI and RS232 Hardware Connectors
• On-board Voltage Regulator
• Voltage Operation: 8V to 15V
• Operating Temperature Range: 0 to +70°C
• Dimension: 80 mm x 100 mm
Notes: 1. Samples for AT89C51AC3, T89C51CC01, T89C51AC2, T89C51CC02, and
T89C5115 can be ordered separately
AT89STK-06 Demo Board Software Demonstration Guide
1-1
Rev. 4339C–CAN–07/05
Introduction
Figure 1-1. AT89STK-06 board
1-2
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Section 2
Hardware Description
2.1
Block Diagram
Figure 2-1 shows a functional block diagram of the AT89STK-06 board, with the I/O
usage.
Figure 2-1. Block Diagram of AT89STK-06 board
CAN Network
FLIP, Host, Batch ISP
CAN
UART
Reset,
ISP,
INT0,
INT1
Human
Potentiometer
Power Supply
Applicable MCU
Generic
Board
External
Power
t°C
Sensor
LED
Connector
Generic Board (optionnal)
Human
2.2
Power Supply
The on-board power supply circuitry allows various power supply configurations.
2.2.1
Power Supply Sources
The power supply source can come from two different and exclusive sources:
either from J4, JACK PWR connector
either from J5, 9V (Battery connector)
J4 - JACK PWR connector:
– Need of a male JACK outlet
– Input supply from 8 up to 15V DC 500mA min
AT89STK-06 Demo Board Software Demonstration Guide
2-3
Rev. 4339C–CAN–07/05
Hardware Description
– No specific polarization mandatory
Note: There is a diode voltage level between the negative output of the power supply
and the “GND”. This could introduce some gap of voltage during measurement
and instrumentation.
Figure 2-2 . Male JACK Outlet and Wires
+
-
Caution: Do not mount more than one power supply source on AT89STK-06 board.
J5 - 9V Battery connector:
– Need of a female 2 points connector
– Input supply from 6 up to 10V DC (example: 9V battery)
– Polarization mandatory
Figure 2-3 . EXT PWR Female Connector / Cable for 9V Battery
-
-
+
+
Caution: Do not mount more than one power supply source on AT89STK-06 Starter Kit.
2.3
RESET
Although the AT89C51CC03 & AT89C51AC3 microcontrollers have on-chip RESET
circuitry (c.f. microcontroller datasheet), the AT89STK-06 board provides to the
microcontroller a RESET signal witch can come from 2 different sources:
2.3.1
2.3.2
Power-on RESET
The on-board RC network acts as power-on RESET.
RESET Push Button By pressing the RESET push button on the AT89STK-06 board, a warm RESET of the
microcontroller is performed.
2-4
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Hardware Description
2.4
Serial Interfaces
2.4.1
RS-232C
All CAN microcontrollers have one on-chip UART peripheral. Only the asynchronous
mode is supported by the AT89STK-06 board.
The AT89STK-06 board is supplied with a RS-232 driver/receiver. Only one female DB9
connector assumes the RS-232 connections. A full range of configuration can be set
with two Rx lines and two Tx lines.
Figure 2-4 . RS-232 DB9 Connections
pin 2
pin 3
RS-TxD
RS-RxD
RS-232 DB9 front view
pin 4
pin 6
5
4
3
2
1
pin 5
Gnd
9
8
7
6
pin 7
pin 8
RS-CTS
RS-RTS
Figure 2-5 . Typical PC Connection Lay-out
PC / DB9 serial port
AT89C51CC0x / RS-232 DB9
(COM1 or COMx)
Function
Pin Nb
Pin Nb
Function
TxD (AT89C51CC0x)
RxD (AT89C51CC0x)
Gnd
2
3
5
2
3
5
RxD (PC)
TxD (PC)
Gnd
Figure 2-6. RS-232 DB9
“Auto_ISP”
Jumpers
Green Rx LED
Red Tx LED
AT89STK-06 Demo Board Software Demo Guide
2-5
4339C–CAN–07/05
Hardware Description
2.4.2
CAN
The microcontroller is a microcontroller with an on-chip full-CAN controller.
The AT89STK-06 board is supplied with an Atmel CAN transceiver (ATA6660). A
female DB9 connector assumes the CAN bus connections.
Figure 2-7 . CAN DB9 Connections
pin 2
pin 7
CAN-L
CAN-H
CAN DB9 front view
pin 3
pin 6
Gnd
Gnd
1
2
3
4
5
6
7
8
9
pin 5
CAN-SHLD
(Can be set to Gnd)
If a network termination is needed, JP3 switch inserts a 120Ω resistor between CAN-H
and CAN-L.
A red LED indicates a TxCAN traffic, a green one indicates a RxCAN traffic.
Figure 2-8 . CAN LEDs
Can Res Jumper
(Here Open)
Red Rx LED
Green Tx LED
2.4.3
SPI
The AT89C51CC03 in PLCC52 is a microcontroller with an on-chip full duplex SPI
interface, master or slave.
A 6-pin male connector assumes the SPI bus connections. The SPI 6-pin connector also
provides to the user Vcc and Gnd.
Figure 2-9 . SPI 6-pin Connections
pin 1
pin 2
pin 3
pin 4
pin 5
pin 6
Vcc
SPI Connector front view
SS
1
2
3
4
5
6
MISO
SCK
MOSI
Gnd
2-6
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Hardware Description
2.5
Board Settings
The AT89STK-06 board has two types of settings:
Jumpers
Solder strap
Table 2-1, Table 2-2 and Table 2-3 provide an overview of the available settings and
test points.
2.5.1
Jumpers
Table 2-1. Default Jumper Setting
Reference PCB Name
Comments (guidelines)
ON : allows external execution
Default
JP1
EA
Open (OFF)
OFF: Internal code execution
ON : Enable C51 generic extension board (optionnal) buzzer
OFF: Disable C51 generic extension board (optionnal) buzzer
JP2
JP3
JP4
JP5
JP6
MUTE
CANRes
RTS
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
ON : Enable CAN terminator resistor
OFF: Disable CAN terminator resistor
ON : Enable RTS line to control ISP mode (for AutoISP mode)
OFF: Disable RTS line to control ISP mode
ON : Enable DTR line to drive MCU reset (for AutoISP mode)
OFF: Disable DTR line to drive MCU reset
DTR
ON : Enable Battery charge
OFF: Disable Battery charge
Batt
Figure 2-10. Jumper Setting Definition
strap
jumper header
ON or
Ex: 1-2
OFF
AT89STK-06 Demo Board Software Demo Guide
2-7
4339C–CAN–07/05
Hardware Description
2.5.2 Solder straps
Solder straps allow to modify the board configuration for specific usage such as
T89C51CC02 compatibility.
Table 2-2. Table of Solder Strap
Reference
PCB Name
Comments (guidelines)
Default
Open
CC02 & C5115
mode
For T89C51CC02 usage, allows to redirect the ISP signal to P1.0, for
hardware conditions.
SP1
SP2
SP3
X2_44
X2_52
Connect PLCC44 Xtal2 to XTAL2 of the generic extension board (optionnal) Open
Connect PLCC52 Xtal2 to XTAL2 of the generic extension board (optionnal) Open
Figure 2-11. Solder Strap definition
“Open”
“Close”
Solder Pad
Solder gout
2.5.2.1 T89C51CC02/T89C5115When using T89C51CC02 or T89C5115 products with the AT89STK-06 board ( see
Support (SP1)
¨PLCC adapter for T89C51CC02 user guide: CANADAPT28), the SP1 solder pad
should be closed to ensure correct hardware conditions setting on P1.0 port.
SP1 solder pad connects ISP push button to P1.0 microcontroller port and the
CANADAPT28 adapter should be inseted in U2 (PLCC44) socket.
Figure 2-12. AT89STK-06 Board with CANADAPT28
2-8
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
2.5.3
Test Points
Test points are used to check the internal power supply for AT89STK-06 Board.
Table 2-3. Table of Test Points
Reference
PCB Name
Comments (guidelines)
TP1
Vref
Vref for ADC
TP2
TP3
TP4
TP5
Vpot
Vtemp
Vcc
Test point for Potentiometer voltage
Test point for Termal resitor voltage
Test point for Vcc
GND
Test point for GND
AT89STK-06 Demo Board Software Demonstration Guide
2-9
Rev. 4339C–CAN–07/05
Section 3
Device Programming
3.1
In-System
Programming
The on-chip memories and configuration bytes of the AT89C51CC0x parts can be pro-
grammed using the ISP mode of the device.
3.1.1
Manual ISP Mode
3.1.1.1 Board Configuration To use ISP mode, the board should be configured as follow:
POWER switch (SW1) on “ON” position
EA jumper should be open (internal code execution only).
Before using ISP mode for T89C51CC02 or T89C5115 device, be sure to close SP1
solder pad ( See Section "T89C51CC02/T89C5115 Support (SP1)", page 8).
3.1.1.2 Operating Mode
To enter in ISP mode, press both the RESET (SW5) and ISP (SW4) buttons simulta-
neously. First release the RESET button and then the ISP button. The device enters in
ISP mode.
3.1.2
Auto ISP Mode
The Auto ISP is available only for parts with UART bootloader (-UA devices). It allows
the host PC application (Atmel FLIP software for example) to control the hardware con-
ditions from the serial lines RTS and DTR.
Thus with the Auto ISP mode, the user does not need to push the ISP and RESET
buttons.
3.1.2.1 Board Configuration To use Auto ISP mode, put the board in the same configuration as ISP mode and also:
Close RTS (JP4) jumper
Close DTR (JP5) jumper
AT89STK-06 Demo Board Software Demonstration Guide
3-11
Rev. 4339C–CAN–07/05
Device Programming
3-12
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Section 4
Appendix A: Board Layout
Figure 4-1. Board Components View Diagram
J1
J2
AT89STK-06 Demo Board Software Demonstration Guide
4-13
Rev. 4339C–CAN–07/05
Appendix B: Bill of Materials
Appendix B: Bill of Materials
Figure 4-2. Bill of Materials Table
Item Code no
Description
QuantityReference
1 74HC125-SO
2 74HC14-SO
3 AT89C51CC01-SPLC PLCC44
4 AT89C51CC03-SPLC PLCC52
5 ATA6660-SO8
74HC125 SO14
74HC14 SO14
1 U6
1 U10
1 U2
1 U1
ATA6660 CAN TRANSCEIVER SO8 ATMEL
1 U4
6 MAX202ECSE-SO
7 MAX6129-SOT23-5P MAX6129 SOT23-5 MAXIM
8 MC78M05CDT-TO252 REG MC78M05CDT TO252 ON SEMICONDUCT
MAX202ECSE SO16 MAXIM
2 U5, U7
1 U3
1 U9
9 PONT-DF005S
PONT REDRESSEUR DF005S GENERAL SEMI
1 U8
10 BAR2
2PTS A 2.54
6 JP1, JP2, JP3, JP4, JP5, JP6
11 BAR2-24-ESQ124-2 2X24PTS A 2.54 ESQ124-24-T-
12 BAR2Y-MTA2.54 MALE 2PTS MTA 2.54
13 BAR6Y-MTA2.54-IN MALE 6PTS MTA 2.54 I
2 J1, J2
1 J5
1 J3
14 JACK-PWR-D2.5
JACK PWR DIAM 2.5MM
1 J4
15 STR-2CMS-NCC
16 SW-1K2-09-03201-
17 BAR3
SOLDER STRAP
SW 1K2 09-03201-02 EOA SE
3PTS A 2.54
3 SP1, SP2, SP3
1 SW1
2 Y1, Y2
18 DBS09V8G
19 BP-DTSM3
20 PT1-6
SUBD FEMALE 90° 9PTS
BP CMS DTSM3 APEM
TEST POINT
2 P1, P2
4 SW2, SW3, SW4, SW5
5 TP1, TP2, TP3, TP4, TP5, TP6
C3, C7, C9, C10, C12, C14, C15,
C16, C17, C18, C19, C20, C21,
C22, C23, C24, C25, C26, C27,
22 C29, C32
1 C11
1 C31
2 C5, C8
4 C1, C2, C4, C6
2 C28, C30
21 CA-0805-100NF
22 CA-0805-10NF
23 CA-0805-1UF
24 CA-0805-22NF
25 CA-0805-22PF
26 CO-VS-B-4.7UF
CAPA CMS 0805 100NF
CAPA CMS 0805 10NF
CAPA C0805C105Z3VAC KEMET
CAPA CMS 0805 22NF
CAPA CMS 0805 22PF
CAPA VS-B 4.7UF 35V PANASONIC
27 DIO-MRA4007-SMA DIODE RECTIF. MRA4007 SMA ON
1 D7
28 LED-LPM670-G
29 LED-LSM676
MINI TOPLED VERTE LPM670-G OSRAM
HYPER MINI TOPLED SUPER-RED LSM676
3 D1, D4, D5
4 D2, D3, D6, D8
4-14
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Appendix C: Board Schematics
Appendix C: Board Schematics
Figure 4-3. AT89STK-06 Board Schematics (1 of 4)
A 8
2 A L X T
1 A L X T
C V C
S O M I 2 . / P 4
A 9 1 . / P 2
4 7
4 8
4 9
5 0
5 1
5 2
1
2
3
4
5
3 3
3 2
3 1
3 0
2 9
2 8
2 7
2 6
2 5
2 4
2 3
2 2
2 1
A 9
0 A 1
1 A 1
2 A 1
3 A 1
0 A 1 2 . / P 2
1 A 1 3 . / P 2
2 A 1 4 . / P 2
3 A 1 5 . / P 2
N C
4 A 1 6 . / P 2
5 A 1 7 . / P 2
D C R x 1 . / P 4
C D T x 0 . / P 4
R D 7 . / P 3
C V C
I
E T S T
V S S
E S R E T
V A G
D N
4 A 1
5 A 1
E F V A R
T / 2 0 A N 0 . / P 1
X E T / 2 1 A N 1 . / P 1
I E / C 2 A N 2 . / P 1
E X C / 0 3 A N 3 . / P 1
0 . P 1
1 . P 1
2 . P 1
3 . P 1
6
7
W 6 R . / P 3
6 A 1
4 . P 1
5 . P 3
5 . P 1
6 . P 1
7 . P 1
4 . P 3
3 . P 3
2 . P 3
1 . P 3
0 . P 3
A 8
2 A L X T
A 9 1 . / P 2
0 A 1 2 . / P 2
1 A 1 3 . / P 2
2 A 1 4 . / P 2
3 A 1 5 . / P 2
4 A 1 6 . / P 2
5 A 1 7 . / P 2
D C R x 1 . / P 4
C D T x 0 . / P 4
R D 7 . / P 3
4 0
4 1
4 2
4 3
4 4
1
2
3
4
5
2 8
2 7
2 6
2 5
2 4
2 3
2 2
2 1
2 0
1 9
1 8
A 9
0 A 1
1 A 1
2 A 1
3 A 1
4 A 1
5 A 1
1 A L X T
C V C
V S S
E S R E T
V A G
D N
E F V A R
T / 2 0 A N 0 . / P 1
X E T / 2 1 A N 1 . / P 1
I E / C 2 A N 2 . / P 1
E X C / 0 3 A N 3 . / P 1
0 . P 1
1 . P 1
2 . P 1
3 . P 1
7 . P 3
6 . P 3
W 6 R . / P 3
6
6 A 1
4 . P 1
5 . P 1
6 . P 1
7 . P 1
5 . P 3
4 . P 3
3 . P 3
2 . P 3
1 . P 3
0 . P 3
2
1
AT89STK-06 Demo Board Software Demo Guide
4-15
4339C–CAN–07/05
Appendix C: Board Schematics
Figure 4-4. AT89STK-06 Board Schematics (2 of 4)
4-16
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Appendix C: Board Schematics
Figure 4-5. AT89STK-06 Board Schematics (3 of 4)
4
1 3
1
1
1 0
D G N
2
C V C
1 6
D G N
1 5
2
1
C V C
1 6
D G N
1 5
AT89STK-06 Demo Board Software Demo Guide
4-17
4339C–CAN–07/05
Appendix C: Board Schematics
Figure 4-6. AT89STK-06 Board Schematics (4 of 4)
D G N
3
2
1
1
2
1
+ t t B a
- t t B a
2
3
4
-
+
4-18
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Appendix D: Default Configuration
Appendix D: Default Configuration
Table 1. Default Configuration
Reference
Name
Function
State
For T89C51CC02/T89C5115 usage, allow to redirect the
ISP signal to P1.0, for hardware conditions.
SP1
CC02 mode
Open
Connect PLCC44 Xtal2 to XTAL2 of the generic extension
board
SP2
SP3
JP1
X2_44
X2_52
EA
Open
Connect PLCC52 Xtal2 to XTAL2 of the generic extension
board
Open
ON : allows external execution
OFF: Internal code execution
Open (OFF)
ON : Enable C51 generic extension board buzzer
OFF: Disable C51 generic extension board buzzer
JP2
JP3
JP4
JP5
JP6
MUTE
CANRes
RTS
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
ON : Enable CAN terminator resistor
OFF: Disable CAN terminator resistor
ON : Enable RTS line to control ISP mode
OFF: Disable RTS line to control ISP mode
ON : Enable DTR line to drive MCU reset
OFF: Disable DTR line to drive MCU reset
DTR
ON : Enable Battery charge
OFF: Disable Battery charge
Batt
AT89STK-06 Demo Board Software Demo Guide
4-19
4339C–CAN–07/05
Appendix E: References/Acronyms
Appendix E: References/Acronyms
4.1
4.2
References
Acronyms
AT89C51CC03, T89C51CC02, T89C51CC01, T89C5115, AT89C51AC3,
T89C51AC2 Product Datasheets*
API: Application Programming Interface
FLIP: FLexible In-system Programming
HPC: High Pin Count microcontroller (by opposition to LPC)
ISP: In-System Programming
LPC: Low Pin Count microcontroller
4-20
AT89STK-06 Demo Board Software Demo Guide
4339C–CAN–07/05
Atmel Headquarters
Atmel Operations
Corporate Headquarters
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 487-2600
Memory
RF/Automotive
Theresienstrasse 2
Postfach 3535
74025 Heilbronn, Germany
TEL (49) 71-31-67-0
FAX (49) 71-31-67-2340
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 436-4314
Europe
Microcontrollers
Atmel Sarl
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 436-4314
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906
TEL 1(719) 576-3300
Route des Arsenaux 41
Case Postale 80
CH-1705 Fribourg
Switzerland
FAX 1(719) 540-1759
Biometrics/Imaging/Hi-Rel MPU/
High Speed Converters/RF Data-
com
Avenue de Rochepleine
BP 123
38521 Saint-Egreve Cedex, France
TEL (33) 4-76-58-30-00
FAX (33) 4-76-58-34-80
TEL (41) 26-426-5555
FAX (41) 26-426-5500
La Chantrerie
BP 70602
44306 Nantes Cedex 3, France
TEL (33) 2-40-18-18-18
FAX (33) 2-40-18-19-60
Asia
Room 1219
Chinachem Golden Plaza
77 Mody Road Tsimhatsui
East Kowloon
Hong Kong
TEL (852) 2721-9778
FAX (852) 2722-1369
ASIC/ASSP/Smart Cards
Zone Industrielle
13106 Rousset Cedex, France
TEL (33) 4-42-53-60-00
FAX (33) 4-42-53-60-01
Japan
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906
TEL 1(719) 576-3300
9F, Tonetsu Shinkawa Bldg.
1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033
Japan
FAX 1(719) 540-1759
TEL (81) 3-3523-3551
FAX (81) 3-3523-7581
Scottish Enterprise Technology Park
Maxwell Building
East Kilbride G75 0QR, Scotland
TEL (44) 1355-803-000
FAX (44) 1355-242-743
e-mail
Web Site
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 INCIDEN-
TAL 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.
© Atmel Corporation 2005. All rights reserved. Atmel®, logo and combinations thereof, Everywhere You Are®
and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and
product names may be trademarks of others.
Printed on recycled paper.
4339C–CAN–07/05
/xM
|