CAN AT89C51 Kit
CAN AT89C51 Kit
..............................................................................................
Section 2
Hardware Description ........................................................................... 2-3
2.1 Block Diagram...........................................................................................2-3
2.2 Power Supply ............................................................................................2-3
2.3 RESET ......................................................................................................2-4
2.4 Serial Interfaces ........................................................................................2-5
2.5 Board Settings ..........................................................................................2-7
Section 3
Device Programming .......................................................................... 3-11
3.1 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
4.1 References..............................................................................................4-20
4.2 Acronyms ................................................................................................4-20
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).
2.1 Block Diagram Figure 2-1 shows a functional block diagram of the AT89STK-06 board, with the I/O
usage.
CAN UART
Reset,
ISP, Applicable MCU Potentiometer Human
INT0,
INT1
Generic External
t°C
Sensor LED Board Power Supply Power
Connector
2.2 Power Supply The on-board power supply circuitry allows various power supply configurations.
The power supply source can come from two different and exclusive sources:
either from J4, JACK PWR connector
either from J5, 9V (Battery connector)
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.
+
-
Caution: Do not mount more than one power supply source on AT89STK-06 board.
- -
+
+
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 Power-on RESET The on-board RC network acts as power-on RESET.
2.3.2 RESET Push Button By pressing the RESET push button on the AT89STK-06 board, a warm RESET of the
microcontroller is performed.
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.
pin 2 RS-TxD
pin 3 RS-RxD
RS-232 DB9 front view pin 4
pin 6
5 4 3 2 1
9 8 7 6 pin 5 Gnd
pin 7 RS-CTS
pin 8 RS-RTS
“Auto_ISP”
Jumpers
pin 2 CAN-L
CAN DB9 front view pin 7 CAN-H
pin 3 Gnd
1 2 3 4 5
pin 6 Gnd
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.
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.
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 Comments (guidelines) Default
ON : allows external execution
JP1 EA Open (OFF)
OFF: Internal code execution
ON : Enable C51 generic extension board (optionnal) buzzer
JP2 MUTE Open (OFF)
OFF: Disable C51 generic extension board (optionnal) buzzer
ON : Enable CAN terminator resistor
JP3 CANRes Open (OFF)
OFF: Disable CAN terminator resistor
ON : Enable RTS line to control ISP mode (for AutoISP mode)
JP4 RTS Open (OFF)
OFF: Disable RTS line to control ISP mode
ON : Enable DTR line to drive MCU reset (for AutoISP mode)
JP5 DTR Open (OFF)
OFF: Disable DTR line to drive MCU reset
ON : Enable Battery charge
JP6 Batt Open (OFF)
OFF: Disable Battery charge
strap
jumper header
ON or OFF
Ex: 1-2
2.5.2 Solder straps Solder straps allow to modify the board configuration for specific usage such as
T89C51CC02 compatibility.
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.
3.1 In-System The on-chip memories and configuration bytes of the AT89C51CC0x parts can be pro-
Programming grammed 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 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
J1 J2
P1.[0..7]
A8 P2.0
A9 P2.1
TWI_scl
A10 P2.2
TWI_sda
A[8..16] A11 P2.3 VCC AGND C1
CS_RAM
A12 P2.4 P2.[0..7] 22 pF
CS_FLASH
A13 P2.5
RST
A14 P2.6 Y1
VAREF
A15 P2.7 12 MHz C2
P1.3
P1.2
P1.1
P1.0
22 pF
P1.7
P1.6
P1.5
P1.4
D D
U1
7
6
5
4
3
2
1
52
51
50
49
48
47
VCC
AT89C51CC01/03_PLCC44
XTAL2_52
VSS
VC C
VC C
TESTI
DECOUPLING CAPACITOR
XTAL1
XTAL2
VAR EF
R ESET
VAG N D
C3 CLOSE TO THE DEVICE
100 nF
P1.0/AN 0/T2
P1.2/AN 2/EC I
ALE
P1.1/AN 1/T2EX
VCC
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
C 22 pF 19 35 C
A16 P3.4/T0 P0.0/AD0
TWI_scl 20 P3.5/T1 P2.0/A8 34
TWI_sda
VCC P0.[0..7]
CS_RAM
XTAL2_44
CS_FLASH
U2 R1
6
5
4
3
2
1
44
43
42
41
40
P3.6/W R
P3.7/R D
P4.0/TxD C
P4.1/R xD C
P2.7/A15
P2.6/A14
NC
P2.5/A13
P2.4/A12
P2.3/A11
P2.2/A10
P2.1/A9
P4.2/M ISO
VCC
1 K
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
21
22
23
24
25
26
27
28
29
30
31
32
33
VSS
P4.4
VC C
R2 AT89C51CC03_PLCC52 P4.2
XTAL1
XTAL2
P4.2
VAR EF
R ESET
VAG N D
10 K D1
ALE LED PWR GREEN
P1.0/AN 0/T2
A16
A15
A14
A13
A12
A11
A10
A9
A8
P1.2/AN 2/EC I
P1.1/AN 1/T2EX
2
close for CC02 only
ISP DECOUPLING CAPACITOR
JP1 C7 CLOSE TO THE DEVICE
P3.6/W R
P3.7/R D
P4.0/TxD C
P4.1/R xD C
P2.7/A15
P2.6/A14
P2.5/A13
P2.4/A12
P2.3/A11
P2.2/A10
P2.1/A9
EA 100 nF
AT89C51CC03_PLCC44
18
19
20
21
22
23
24
25
26
27
28
1
P0.[0..7] C8
A16
A15
A14
A13
A12
A11
A10
A9
A8
22 nF
A[8..16] AGND
A A
/RD
/WR
RX_CAN Title
P4.1
TX_CAN CC0x_demob/MCU
P4.0
P3.0
P3.1
P3.2
P3.3
P3.5
P3.4
P3.6
P3.7
Size Document Number Rev
P3.[0..7] A4 <Doc> 1.0.0
4-15
4339C–CAN–07/05
4-16
4339C–CAN–07/05
5 4 3 2 1
VCC
R3 R4
J1 4.7 K 4.7 K R5 R6 J2 P0.[0..7]
D 10 K 10 K D
P1.0 48 47 VPOWER 48 47 P0.0
Appendix C: Board Schematics
B B
FLASH RAM
/ISP_F 0 1 1
/CS_RAM X 0 1
A A
Title
CC0x_demob/Generic_board
Size Document Number Rev
A4 <Doc> 1.0.0
ADC
CAN I/O VCC R10 120 VCC TP1
VAREF
VRef
ADC_Pot
U3 MAX6129BEUK33T
1
R8 R9 P1 TP2 TP3
2
1 1 1 VPot R11 1
1.2 K 1.2 K GND Vin Vout 5
6 100 K
G ND
JP3 CANL 2 VTemp
D4 D3 CAN Res CANH 7
2
D ADC R12 ADC_Temp D
LED PWR GREEN LED PWR RED 3
CAN-Tx CAN-Rx R13
8 C11
1
VCC U4 C9 C10 10 nF
4
3 7 9 100 nF 100 nF
Vcc CANH C12 Not
5 Vref CANL 6 5
10k pot 100 nF Mounted
P4.1 RxDC 4 8 NCP18WF104J03RB
TxDC RXD Rs SUB-D9 FEMALE Negative Temperature
P4.0 1 TXD Gnd 2
CAN Coefficient Resistor
AT6660
AGND
VCC
RS232 I/O SPI Interface
C13 Vcc
R14 R15
J3
16
P4.2 SCK
LED PWR GREEN LED PWR RED 4
P4.3 MOSI
Figure 4-5. AT89STK-06 Board Schematics (3 of 4)
14 11 RS-Tx RS-Rx 5
T1OUT T1IN P4.4 GND
7 10 6
VC C
P2 T2OUT T2IN
TX_UART
1 DCD 13 12 Rx_MCU
R1IN R1OUT RX_UART
6 DSR 8 9
Rx_PC JP4 R2IN R2OUT Vcc SPI Male
2
7 RTS 1 2 1
Tx_PC C1+
3 3 C1-
8 CTS 4 C16
DTR RTS C14 C2+ 0.1 µF
4 5 2
1
0.1 µF C15 C2- V+ Vcc
9
5 0.1 µF 6
G ND
V-
2 3 ISP_mode
JP5 MAX202ECSE C17 C18
SUB-D9 FEMALE
15
1 2 U5 0.1 µF 0.1 µF
RS232 Vcc Vcc
U6A
4
B DTR B
16
74HC125/SO
14 T1OUT T1IN 11 5 6
7 10
VC C
T2OUT T2IN Vcc
13 R1IN R1OUT 12 U6B
8 9
10
C21 C2- V-
0.1 µF
G ND
C22 C23 U6C 12 11
MAX202ECSE 0.1 µF 0.1 µF 74HC125/SO
15
U7
U6D
74HC125/SO
A A
4-17
4339C–CAN–07/05
4-18
5 4 3 2 1
4339C–CAN–07/05
VPOWER
VCC
U9 TP4
ON/OFF MC78M05CDT
1 2 1 VIN VOUT 2 1
D D
JP6 SW1
2
+ Batt SWITCH SSL VCC
3
2
G ND
Appendix C: Board Schematics
U8 D7
+
DF005S MRA4007
-
1 2 C28 C29 C30
1
1
R16 4.7 µF 100 nF 4.7 µF R17
1.2 K
-
J4 100
Batt+
4
3
2
2
1
J5 D8
CONNECTOR JACK PWR Battery LED PWR RED
Power
Charge PWR
C TP5 C
Batt- 1
1
Figure 4-6. AT89STK-06 Board Schematics (4 of 4)
GND
Vcc
Reset Circuit
R18 R20
10 k
U10A U10B
1 2 3 4 0
/RST_UART R19
RST
/RST
1 K
Clock Circuit
XTAL2
X2_44 X2_52 VCC CD74HC14D
SP2 SP3
C32
"Solder Strap" "Solder Strap" 100 nF
XTAL2_44
XTAL2_52
A A
Title
CC0x_demob/POWER
Appendix E: References/Acronyms
e-mail
[email protected]
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 Printed on recycled paper.
product names may be trademarks of others.
4339C–CAN–07/05 /xM
Mouser Electronics
Authorized Distributor
Microchip:
AT89STK-06