STK502 ..............................................................................................
Table of Contents Section 1 Introduction ........................................................................................... 1-1 Section 2 Using the STK502 Top Module............................................................. 2-1 2.1 Connecting the STK502 to the STK500 Starter Kit ...................................2-1 2.1.1 2.2 Placing an ATmega169 on STK502 ...................................................2-1 PORT Connectors.................................................................
Table of Contents Section 5 Technical Support................................................................................. 5-1 Section 6 Complete Schematics...........................................................................
Section 1 Introduction The STK502 board is a top module designed to add ATmega169 support to the STK500 development board from Atmel Corporation. STK502 includes connectors and hardware allowing full utilization of the new features of the ATmega169. The Zero Insertion Force (ZIF) socket makes it easy to use of TQFP packages for prototyping. This user guide is a general getting started guide as well as a complete technical reference for advanced users.
Introduction 1.1 Features Supports the ATmega169 with Built-in LCD Controller. LCD-on-glass Display for Demonstrating the ATmega169 LCD Controller. Supported by AVR Studio® 4. Zero Insertion Force Socket for TQFP Packages. High Voltage Parallel Programming. Serial Programming. TQFP Footprint for Emulator Adapters. Port Extension Connectors for Port E, F, and G. LCD Display Header for Using an External LCD Display. LCD and Other Peripherals Can be Disconnected from the Device.
Section 2 Using the STK502 Top Module This section describes in detail how the STK502 is used with the STK500. 2.1 Connecting the STK502 to the STK500 Starter Kit Connect STK502 to the STK500 expansion header 0 and 1. It is important that the top module is connected in the correct orientation as shown in Figure 2-1. EXPAND0 written on the STK502 top module should match EXPAND0 written beside the expansion header on the STK500 board. Figure 2-1. Connecting STK502 to the STK500 Board Note: 2.1.
Using the STK502 Top Module Figure 2-2. Pin1 on ZIF Socket and TQFP Footprint Caution: Do not mount an ATmega169 on the STK502 at the same time as an AVR is mounted on the STK500 board. Neither of the devices will work as intended. 2.2 PORT Connectors ATmega169 have additional ports to those available on the STK500. The ports are located on the STK502 board. They have the same pin out and functionality as the ports on the STK500 board. Port A to Port D are already present on the STK500 board.
Using the STK502 Top Module Figure 2-4. PORTG/RST 1 2 PG0 PG1 PG2 PG3 PG4 PG5 NC RST GND VTG PORTG/RST 2.2.2.1 PG0 - PG5 These are general I/O ports connected to ZIF socket and the TQFP footprint. 2.2.2.2 RST On the ATmega169 the RESET-signal and PG5 share the same pin. The “RST” is the RESET-signal that comes from the STK500 board. Please note that it is not directly connected to the ZIF socket or the TQFP footprint on the STK502.
Using the STK502 Top Module 2.3 Programming the The ATmega169 can be programmed using both SPI and High-voltage Parallel Programming. This section will explain how to connect the programming cables to ATmega169 successfully use one of these two modes. The AVR Studio STK500 software is used in the same way as for other AVR parts as described in the STK500 User Guide. 2.3.
Using the STK502 Top Module 2.3.2 High-voltage Programming Figure 2-7. High-voltage (Parallel) Programming To program the ATmega169 using High-voltage (Parallel) Programming, connect the PROGCTRL to PORTD and PROGDATA to PORTB on the STK500 as shown in Figure 2-7. Make sure that the TOSC-switch is placed in the XTAL position. See Section 2.6, “TOSC Switch”. As described in the STK500 User Guide (jumper settings), mount the BSEL2 jumper in order to High-voltage Program the ATmega devices.
Using the STK502 Top Module 2.4 JTAG Connector Figure 2-8 shows how to connect the JTAG ICE probe on the STK502 board. Figure 2-8. Connecting JTAG ICE to the STK502 The JTAG connector is used for the ATmega169 built-in JTAG interface. The pin out of the connector is shown in Figure 2-9 and is compliant with the pin out of the JTAG ICE available from Atmel. Connecting a JTAG ICE to this connector allows On-chip Debugging of the ATmega169.
Using the STK502 Top Module 2.5 LCD Display STK502 includes a LCD display. It features six 14-segments digits, and some additional segments. All in all the display supports 120 segments. The display is designed for 3V operating voltage. See the Technical Specifications for more details on the display. 2.5.1 Connecting the STK502 LCD to the ATmega169 The segment-pins from the ATmega169 are located at PORTA, PORTC, PORTD, and PORTG.
Using the STK502 Top Module Figure 2-11.
Using the STK502 Top Module Figure 2-12. Jumper to connect COL1 to COL2 Figure 2-13. Default LCD-segment configuration, with and without the jumper shown in Figure 2-12 Other LCD-displays can be connected to the ATmega169, either through the header “Segment pins from ATmega169” where all the segment pins are gathered or through the ordinary Port-connectors PORTA, PORTC, PORTD, and PORTG. Note: Make sure the display is compatible with the electrical characteristics on the ATmega169.
Using the STK502 Top Module 2.6 TOSC Switch Figure 2-14. TOSC Switch On the ATmega169 the TOSC1 and TOSC2 lines are shared with XTAL1 and XTAL2. The TOSC switch selects whether the 32 kHz crystal on the STK502, or the XT1/XT2 signals from STK500 should be connected to these pins on the device. Figure 2-15 shows a simplified block schematic on how this is implemented. Figure 2-15.
Using the STK502 Top Module 2.7 Sensor Figure 2-16. NTC-thermistor STK502 includes a two screw-terminal block where a sensor can be connected. The STK502 kit is shipped with a NTC-thermistor attached to this screw-terminal. A NTCthermistor is characterised by the fact that when the temperature goes down the resistance goes up. Using a voltage divider and reading the voltage over the thermistor through the ADC-channels on ATmega169, the temperature can be calculated.
Using the STK502 Top Module 2.7.1.1 AREF Switch The switch named AREF selects the input to the AREF-pin on the ATmega169. Figure 2-18. AREF Switch AVR From STK500 AREF AREF STK502 STK502 VREF Voltage refernce for the sensor AREF Switch Positions: AREF: In this position the AREF from the STK500 is connected to the AREF pin on the ATmega169. This is the default position. VREF: In this position the VREF from the 1.263V voltage reference on the STK502 is connected to the AREF pin on the ATmega169.
Section 3 Troubleshooting Guide Table 3-1. Troubleshooting Guide Problem Reason Solution The LCD is not connected. Attach the 34-pins cable between the to 34-pins headers on the STK502. The LCD is not enabled in the AVR device. Check the LCD initialisation(1). The update frequency is not correct. Verify that the clock prescaling correspond with the clock source(1). Some segments on the LCD seems to be stuck at high/low. The PORTA/C/D and/or G are connected to something else than the LCD display.
Troubleshooting Guide Table 3-1. Troubleshooting Guide Problem Parallel Programming does not work. No programming works. Note: 3-2 2528A–AVR–11/02 Reason Solution Cables not connected properly. Please refer to Figure 2-7 for correct Parallel Programming setup. STK500 target voltage error. Please refer to the ATmega169 data sheet for the Parallel Programming Voltage limits. Adjust the target voltage on the STK500 board accordingly. The TOSC switch is not correctly set.
Section 4v Technical Specifications System Unit Physical Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 x 119 x 27 mm Weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 g Operating Conditions Voltage Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1,8V - 5,5V Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Technical Specifications Figure 4-1.
Technical Specifications 4.1 STK502 LCD Bit Mappings The LCD Data Registers (LCDDRx) in the ATmega169 are organized in groups according to the use of Backplane Control Lines (also known as Common Lines). The LCD on the STK502 uses all four Common Lines and all 25 segments, in total 4 x 25 = 100 segments.
Technical Specifications 4.1.5 Alphanumeric Digit Number Six The bit mappings for the alphanumeric digit number six are listed below. Table 4-5. Bit Mappings for LCD Alphanumeric Digit Number Six Register Name 4.1.6 Alphanumeric Digit Number Seven Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 LCDDR2 6-K 9 S9 6-A LCDDR7 6-J 6-F 6-H 6-B LCDDR12 6-L 6-E 6-G 6-C LCDDR17 6-M 6-P 6-N 6-D The bit mappings for the alphanumeric digit number seven are listed below. Table 4-6.
Section 5 Technical Support For Technical support, please contact avr@atmel.com. When requesting technical support, please include the following information: Which target AVR device is used (complete part number). Target voltage and speed. Clock source and fuse setting of the AVR. Programming method (ISP or High-voltage). Hardware revisions of the AVR tools, found on the PCB. Version number of AVR Studio. This can be found in the AVR Studio help menu. PC operating system and version/build.
Technical Support 5-2 2528A–AVR–11/02 STK502 User Guide
Section 6 Complete Schematics On the following pages the complete schematics and assembly drawing of the STK502 revision B are shown. STK502 User Guide 6-1 Rev.
A B C 1 PGT[5..0] PBT[7..0] PGT[5..0] PBT[7..0] PET[7..0] PET[7..0] AREFT AREFT PFT[7..0] PFT[7..
A B C 1 PGT[4..0] PDT[7..0] PCT[7..0] PAT[7..0] PFT[7..0] PCT[7..0] PAT[7..0] RESET PFT0 PFT2 PFT4 PFT6 PGT[4..0] PDT[7..0] PCT[7..0] PAT[7..0] GND PFT[7..0] PCT[7..0] PAT[7..
A B C 1 PFT[7..0] GND 1 PFT[7..0] C300 100N_16V_X7R AREF LCD[32..3] COM[3..
Complete Schematics Figure 6-4.
Complete Schematics 6-6 2528A–AVR–11/02 STK502 User Guide
Atmel Headquarters Atmel Operations Corporate Headquarters Memory 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.