background image

AT89STK-03 
Starter Kit for AT8xC5122 & AT83C5123

..............................................................................................

Hardware User Guide

Summary of Contents for AT89STK-03

Page 1: ...AT89STK 03 Starter Kit for AT8xC5122 AT83C5123 Hardware User Guide ...

Page 2: ...LE 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 Bootloader DPW 3 12 3 1 1 ISP mode In System Programming 3 12 3 1 2 Execution mode 3 13 3 2 Bootloader DRV 3 16 ...

Page 3: ...Table of Contents AT89STK 03 Hardware User Guide ii 7609B SCR 11 06 Section 4 Schematics 4 27 4 1 Bill of Materials 4 35 Section 5 Document Revision History 5 37 ...

Page 4: ...ions 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 switch...

Page 5: ...oard Regulator Output Voltage selection Power Supply config ALE Led Reset Switch ALE EA SPI RS232 SIM Alternate card ALE Crystal INT1 Switch Test Points Fuse bypass Fuse USB Regulator bypass ISP Switch E2PROM location Main Smart Card Power Converter input 9V Battery Input Lab Power Supply input Power Switch ...

Page 6: ...Introduction AT89STK 03 Hardware User Guide 1 3 7609B SCR 11 06 Figure 1 2 Default Configuration Component Side Jumper Config Solder Side ...

Page 7: ...Introduction 1 4 AT89STK 03 Hardware User Guide 7609B SCR 11 06 Figure 1 3 Default Configuration Solder Side Jumper Configuration ...

Page 8: ... 5 7609B SCR 11 06 Section 2 Hardware Description 2 1 Block Diagram Figure 2 1 AT8xC5122 AT83C5123 demonstration board components AT8xC5122 POWER Supply SPI USB RS232 LED Reset EA INT1 SCIB EEPROM SIM Master Smart Card SIM Smart Card ...

Page 9: ...e 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 t...

Page 10: ... 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 capaci tors 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 11 LEDs are provided Power On Off Regulator Outpu...

Page 11: ...d SIM connector power supply jumper 2 4 6 PLL Filter 1 PLCC68 VQFP64 PLL Filter is composed by C7 C10 R9 2 PLCC28 PLL filter is composed by C25 R16 C26 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 VQ...

Page 12: ...mper on the WP location The demonstration board is configured to work with parts implementing the latest ver sion 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 configu ration of the board must changed accordingly Refer to bootloader datasheets for further information 2 5 2 x 48 headers These he...

Page 13: ...mming 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 embed ded in a ROM memory The bootloader version is defined by three letters which can be found on the part marking ...

Page 14: ...ve 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 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 PART Run FLI...

Page 15: ... 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 Se...

Page 16: ...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 buff...

Page 17: ...tablish 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 conf...

Page 18: ...ch 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 perma nently during this mode FLASH version The execution mode does not request specific action The application code runs auto matically after power up or reset sequence ALE Led remains ...

Page 19: ...plications 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 i...

Page 20: ...s 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 L...

Page 21: ...ther 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 da...

Page 22: ...vailable 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 configur...

Page 23: ...rsion The ISP mode must be invoked manually by holding down the ISP switch P3 7 0 dur ing 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 perma nently during this mode FLASH version The execution mode does not request specific action The application c...

Page 24: ...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 i...

Page 25: ...LIP 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 accor...

Page 26: ...kecked 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 ...

Page 27: ...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 When the part is programmed it is possible t...

Page 28: ...AT89STK 03 Hardware User Guide 4 27 7609B SCR 11 06 Section 4 Schematics ...

Page 29: ... 1 M J7 USB 1 2 C3 1 0 0 nF S W1 P O W E R 1 2 J1 S C R E W T E R M 2 L A B PS 1 2 C1 1 0 0 nF TP2 G N D 1 D3 M R A 4 007 1 2 D1 P O W E R S W 4 2 F U S E B Y P 2 2 1 1 J 1 0 BATT 1 2 J 1 1 L O A D 1 2 C4 1 0 µ F T A NTAL D2 S M B J 9 0A U1 T P S 2 0 41AD GND 1 IN1 2 IN2 3 EN 4 OC 5 OUT1 6 OUT2 7 OUT3 8 J 1 2 D C I N 1 2 U3 D F 0 0 5 S 1 3 2 4 F1 0 5 A F USE R5 180 J 1 3 C O N N E C T O R J A C K ...

Page 30: ...4 P2 3 A11 PC_A3 65 AVSS 66 PLLF 67 AVCC 68 P1 2 CPRES 11 P1 1 CC8 12 P5 7 KB7 PC_A9 13 P5 6 KB6 PC_A8 14 P1 5 CRST 15 P5 5 KB5 PC_WAIT 16 P5 4 KB4 PC_INPACK 17 P1 3 CC4 18 P5 3 KB3 PC_RDY_IREQ 19 P5 2 KB2 PC_WE 20 P1 4 CCLK 21 P5 1 KB1 PC_CE1 22 P5 0 KB0 PC_REG 23 PSEN 24 VSS 25 NC1 26 VPFD3V 27 CVCC 28 LI 29 CVSS 30 VCC 31 ALE 32 P0 7 AD7 PC_D7 33 P0 6 AD6 PC_D6 34 P0 5 AD5 PC_D5 35 P0 4 AD4 PC_...

Page 31: ...10 PC_A2 56 P2 1 A9 PC_A1 57 P2 0 A8 PC_A0 58 D 59 D 60 VREF 61 P1 7 CCLK1 62 EA 63 P1 2 CPRES 2 P1 1 CC8 3 P5 7 KB7 PC_A9 4 P5 6 KB6 PC_A8 5 P1 5 CRST 6 P5 5 KB5 PC_WAIT 7 P5 4 KB4 PC_INPACK 8 P1 3 CC4 9 P5 3 KB3 PC_RDY_IREQ 10 P5 2 KB2 PC_WE 11 P1 4 CCLK 12 P5 0 KB0 PC_REG 14 CVSS 19 VCC 20 ALE 21 P0 7 AD7 PC_D7 22 P0 6 AD6 PC_D6 23 P0 5 AD5 PC_D5 24 P0 4 AD4 PC_D4 25 P3 7 RD LED3 26 P0 3 AD3 PC...

Page 32: ... itle S ize D o c u m e n t N u m ber R e v D a t e S h eet o f A T 8 X 5 1 2 2_DEMOB 1 2 0 S M A R T _ C A RD A4 4 7 F r i d a y J u l y 2 5 2003 TP7 C C L K 1 J 2 2 S I M C o n n e ctor C1 C1 C2 C2 C3 C3 C5 C5 C6 C6 C7 C7 TP5 C V C C 1 C18 2 2 p F C32 1 0 0 nF C17 1 0 p F J 1 9 S m a r t C a r d Full Size C1 C1 C2 C2 C3 C3 C4 C4 C5 C5 C6 C6 C7 C7 C8 C8 SW1 SW1 SW2 SW2 TP10 C C 4 1 C16 2 2 p F J ...

Page 33: ... _ L EDS A4 5 7 Wednesday July 30 2003 R22 1 K D7 L E D 2 S W 2 6 E2P 2 2 1 1 R25 1 K J 2 3 A0 1 2 C27 1 0 0 nF D10 L E D 5 J 3 3 L E D 0 1 2 S W 2 1 L E D 2 2 2 1 1 J 4 0 A2 1 2 D6 L E D 1 R23 1 K J 2 4 A1 1 2 R26 1 K J 3 8 L E D 5 1 2 D9 L E D 4 J 3 2 W P 1 2 R17 4 7 K S W 2 5 L E D 6 2 2 1 1 J 3 7 L E D 4 1 2 J 2 7 P3 7 1 2 R21 1 K S W 2 2 L E D 3 2 2 1 1 J 2 6 P4 2 1 2 S W 1 8 E2P 2 2 1 1 R24 ...

Page 34: ... h eet o f A T 8 X C 5 1 2 2_DEMOB 1 2 0 C O M M _ I N T E R F A CES A4 6 7 Wednesday July 30 2003 S W 2 8 TXD 2 2 1 1 J 2 9 U S B B USB 1 2 3 4 U8 M A X 2 02ECSE C1 1 C1 3 C2 4 C2 5 VCC 16 GND 15 V 2 V 6 R1OUT 12 R2OUT 9 T1IN 11 T2IN 10 R1IN 13 R2IN 8 T1OUT 14 T2OUT 7 TP19 D 1 C23 1 0 0 nF C24 1 0 0 nF R15 1 K D12 TX R14 1 5 K S W 2 9 RXD 2 2 1 1 P1 S U B D 9 F E MALE R S 2 32C 5 9 4 8 3 7 2 6 1 ...

Page 35: ...10 P5 2 12 P5 1 14 P5 0 16 P3 7 18 P3 6 20 P3 5 22 P3 4 24 P3 3 26 P3 2 28 P3 1 30 P3 0 32 P1 7 34 P1 6 36 P1 5 38 P1 4 40 P1 3 42 P1 2 44 P1 1 46 P1 0 48 Vss 1 Vss 3 Buzzer 5 Spare7 7 Spare6 9 Spare5 11 Spare4 13 Spare3 15 Spare2 17 Spare1 19 Spare0 21 Vss 23 Xtal2 25 Vss 27 CS_RAM 29 A16 31 BP1 33 EA 35 RST 37 TWI_INT 39 TWI_scl 41 TWI_sda 43 Vss 45 Vcc_CPU 47 S W6 BP1 2 2 1 1 R18 4 7 K S W 4 1 ...

Page 36: ...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 10 µH 10 Inductance 300 mA SMD D4 D5 D6 D7 D8 D9 D10 D11 D12 LED GREEN 30mA LPM670 LED Green Mini TOPLED 30mA SMD D13 D1 LED RED 30mA LSM676 LED Red Mini TOPLED 30mA S...

Page 37: ...AT89STK 03 Hardware User Guide 5 37 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 ...

Page 38: ...edot herwise 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 compo nents in applications intended to support or sustain life Atmel Corporation Atmel Operations 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 Ars...

Reviews: