- No category
advertisement
AT89STK-06 Demo Board
..............................................................................................
Hardware User Guide
Section 1
Section 2
Hardware Description ........................................................................... 2-3
Section 3
Device Programming .......................................................................... 3-11
In-System Programming .........................................................................3-11
Section 4
Appendix A: Board Layout .................................................................. 4-13
Appendix B: Bill of Materials ............................................................... 4-14
Appendix C: Board Schematics .......................................................... 4-15
Appendix D: Default Configuration ..................................................... 4-19
Appendix E: References/Acronyms .................................................... 4-20
AT89STK-06 Demo Board User Guide 1
4339C–CAN–07/05
1.1
Features
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).
•
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
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
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
Applicable MCU
Potentiometer
Human t°C
Sensor LED
Human
Generic
Board
Connector
Power Supply
Generic Board (optionnal)
External
Power
2.2
Power Supply
The on-board power supply circuitry allows various power supply configurations.
2.2.1
Power Supply Sources
J4 - JACK PWR connector:
The power supply source can come from two different and exclusive sources:
either from J4, JACK PWR connector
either from J5, 9V (Battery 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
+
-
J5 - 9V Battery connector:
Caution: Do not mount more than one power supply source on AT89STK-06 board.
– 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
2.3.1
2.3.2
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:
The on-board RC network acts as power-on RESET.
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
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
Figure 2-5 . Typical PC Connection Lay-out
AT89C51CC0x / RS-232 DB9
Function
TxD
(AT89C51CC0x)
RxD
(AT89C51CC0x)
Gnd
Pin Nb
2
3
5
Figure 2-6. RS-232 DB9
Hardware Description
2.4
2.4.1
Serial Interfaces
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
RS-232 DB9 front view
5
9
4
8
3
7
2
6
1
pin 2 pin 3 pin 4 pin 6 pin 5 pin 7 pin 8
RS-TxD
RS-RxD
Gnd
RS-CTS
RS-RTS
PC / DB9 serial port
(
COM1 or COMx
)
Pin Nb
2
3
5
Function
RxD
(PC)
TxD
(PC)
Gnd
Green Rx LED
“Auto_ISP”
Jumpers
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
CAN DB9 front view
1
6
2
7
3
8
4
9
5
pin 2 pin 7 pin 3 pin 6 pin 5
CAN-L
CAN-H
Gnd
Gnd
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
2.4.3
SPI
Red Rx LED
Can Res Jumper
(Here Open)
Green Tx LED
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
SPI Connector front view
1 2 3 4 5 6
pin 1 pin 2 pin 3 pin 4 pin 5 pin 6
Vcc
SS
MISO
SCK
MOSI
Gnd
2-6
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
Hardware Description
2.5
Board Settings
The AT89STK-06 board has two types of settings:
Jumpers
Solder strap
Test points
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
JP1 EA
Comments (guidelines)
ON : allows external execution
OFF: Internal code execution
JP2
JP3
JP4
JP5
JP6
MUTE
CANRes
RTS
DTR
Batt
ON : Enable C51 generic extension board (optionnal) buzzer
OFF: Disable C51 generic extension board (optionnal) buzzer
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
ON : Enable Battery charge
OFF: Disable Battery charge
Default
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
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
SP1
SP2
SP3
CC02 & C5115 mode
X2_44
X2_52
Comments (guidelines)
For T89C51CC02 usage, allows to redirect the ISP signal to P1.0, for hardware conditions.
Default
Open
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/T89C5115
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
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
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
TP1 Vref Vref for ADC
TP2
TP3
TP4
TP5
Vpot
Vtemp
Vcc
GND
Comments (guidelines)
Test point for Potentiometer voltage
Test point for Termal resitor voltage
Test point for Vcc
Test point for GND
AT89STK-06 Demo Board Software Demonstration Guide 2-9
Rev. 4339C–CAN–07/05
Section 3
Device Programming
3.1
3.1.1
In-System
Programming
Manual ISP Mode
The on-chip memories and configuration bytes of the AT89C51CC0x parts can be programmed using the ISP mode of the device.
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 simultaneously. 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 conditions 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
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
Figure 4-1. Board Components View Diagram
Section 4
Appendix A: Board Layout
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
1 74HC125-SO 74HC125 SO14
2 74HC14-SO 74HC14 SO14
3 AT89C51CC01-SPLC PLCC44
4 AT89C51CC03-SPLC PLCC52
5 ATA6660-SO8 ATA6660 CAN TRANSCEIVER SO8 ATMEL
6 MAX202ECSE-SO MAX202ECSE SO16 MAXIM
7 MAX6129-SOT23-5P MAX6129 SOT23-5 MAXIM
8 MC78M05CDT-TO252 REG MC78M05CDT TO252 ON SEMICONDUCT
9 PONT-DF005S PONT REDRESSEUR DF005S GENERAL SEMI
10 BAR2 2PTS A 2.54
Quantity Reference
1 U6
1 U10
1 U2
1 U1
1 U4
2 U5, U7
1 U3
1 U9
1 U8
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
14 JACK-PWR-D2.5
JACK PWR DIAM 2.5MM
15 STR-2CMS-NCC SOLDER STRAP
16 SW-1K2-09-03201SW 1K2 09-03201-02 EOA SE
17 BAR3 3PTS A 2.54
18 DBS09V8G
19 BP-DTSM3
20 PT1-6
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
SUBD FEMALE 90° 9PTS
BP CMS DTSM3 APEM
TEST POINT
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
28 LED-LPM670-G MINI TOPLED VERTE LPM670-G OSRAM
29 LED-LSM676 HYPER MINI TOPLED SUPER-RED LSM676
2 J1, J2
1 J5
1 J3
1 J4
3 SP1, SP2, SP3
1 SW1
2 Y1, Y2
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
1 D7
3 D1, D4, D5
4 D2, D3, D6, D8
4-14
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
Appendix C: Board Schematics
Appendix C: Board Schematics
Figure 4-3. AT89STK-06 Board Schematics (1 of 4)
P1.5
P1.6
P1.4
P1.7
P1.1
P1.0
P1.2
P1.3
50
51
49
4
5
3
6
7
2
1
52
47
48
I
2
1
VCC
VCC
VSS
I
D
EX0
/ T2
EX
/ EC
AN0
/ T2
/ C
VAREF
AN2
VAGN
RESET
TEST
XTAL
XTAL
AN1
AN3
P1.0/
P1.2/
P1.1/
P1.3/
SO
DC
C
Rx
Tx D
RD
WR
A14
A15
A10
A11
A12
A13
MI
A9 P2.1/
P2.2/
P4.2/
P2.3/
P2.4/
P2.6/
P2.7/
NC
P2.5/
P4.1/
P4.0/
P3.7/
P3.6/
32
31
33
30
29
26
25
27
28
24
23
22
21
A13
A12
A10
A9
A11
A15
A14
A16
A8
P3.3
P3.2
P3.1
P3.0
P3.5
P3.4
P1.6
P1.7
P1.4
P1.5
P1.2
P1.1
P1.3
P1.0
40
41
42
43
3
4
5
6
2
1
44
I
2
1
VCC
VSS
D
EX0
/ T2
EX
/ EC
AN0
/ T2
/ C
VAREF
AN2
VAGN
RESET
XTAL
XTAL
AN1
AN3
P1.0/
P1.2/
P1.1/
P1.3/
A8
DC
C
A12
A13
A14
A15
Rx
Tx D
RD
WR
A10
A11
A9
P2.4/
P2.5/
P2.6/
P2.7/
P2.2/
P2.3/
P2.1/
P4.1/
P4.0/
P3.7/
P3.6/
26
25
24
28
27
21
20
19
18
23
22
A11
A10
A12
A9
A14
A13
A15
A16
P3.7
P3.6
P3.4
P3.5
P3.2
P3.3
P3.0
P3.1
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
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
Figure 4-5. AT89STK-06 Board Schematics (3 of 4)
4 13
1
D GN
2
1 10
2 1
16
VCC
D GN
15
16
VCC
D GN
15
Appendix C: Board Schematics
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)
4-18
4339C–CAN–07/05
D GN
3
2
2 1
+ Batt
2 1
Batt
1
3
+ + -
4
AT89STK-06 Demo Board Software Demo Guide
Appendix D: Default Configuration
Appendix D: Default Configuration
JP2
JP3
JP4
JP5
JP6
Table 1. Default Configuration
Reference Name
SP1 CC02 mode
SP2
SP3
X2_44
X2_52
JP1 EA
MUTE
CANRes
RTS
DTR
Batt
Function
For T89C51CC02/T89C5115 usage, allow to redirect the
ISP signal to P1.0, for hardware conditions.
Connect PLCC44 Xtal2 to XTAL2 of the generic extension board
Connect PLCC52 Xtal2 to XTAL2 of the generic extension board
ON : allows external execution
OFF: Internal code execution
ON : Enable C51 generic extension board buzzer
OFF: Disable C51 generic extension board buzzer
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
ON : Enable Battery charge
OFF: Disable Battery charge
State
Open
Open
Open
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
Open (OFF)
AT89STK-06 Demo Board Software Demo Guide 4-19
4339C–CAN–07/05
Appendix E: References/Acronyms
Appendix E: References/Acronyms
4.1
References
4.2
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
4339C–CAN–07/05
AT89STK-06 Demo Board Software Demo Guide
Atmel Headquarters
Corporate Headquarters
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 487-2600
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 Tsimhatsui
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
TEL 1(408) 441-0311
FAX 1(408) 436-4314
Microcontrollers
2325 Orchard Parkway
San Jose, CA 95131
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
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
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
RF/Automotive
Theresienstrasse 2
Postfach 3535
74025 Heilbronn, Germany
TEL (49) 71-31-67-0
FAX (49) 71-31-67-2340
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906
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
Web Site
http://www.atmel.com
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
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 18 Introduction
- 18 Features
- 19 Hardware Description
- 19 Block Diagram
- 19 Power Supply
- 19 RESET
- 19 Serial Interfaces
- 19 Board Settings
- 20 Device Programming
- 20 In-System Programming
- 21 Appendix A: Board Layout
- 21 Appendix B: Bill of Materials
- 21 Appendix C: Board Schematics
- 21 Appendix D: Default Configuration
- 21 Appendix E: References/Acronyms
- 21 References
- 21 Acronyms