ملخص المحتوى في الصفحة رقم 1
STK502
..............................................................................................
User Guide
ملخص المحتوى في الصفحة رقم 2
ملخص المحتوى في الصفحة رقم 3
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 Placing an ATmega169 on STK502 ...................................................2-1 2.2 PORT Connectors...........................................................
ملخص المحتوى في الصفحة رقم 4
Table of Contents Section 5 Technical Support................................................................................. 5-1 Section 6 Complete Schematics........................................................................... 6-1 ii STK502 User Guide 2528A–AVR–11/02
ملخص المحتوى في الصفحة رقم 5
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 refer- ence for advanced users. The STK502 board also includes a demonstra
ملخص المحتوى في الصفحة رقم 6
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
ملخص المحتوى في الصفحة رقم 7
Section 2 Using the STK502 Top Module This section describes in detail how the STK502 is used with the STK500. 2.1 Connecting the 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 STK502 to the on the STK502 top module should match EXPAND0 written beside the expansion STK500 Starter header on the STK500 board. Kit Figure 2-1. Connecting STK502 to the STK500 Board Note: Con
ملخص المحتوى في الصفحة رقم 8
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 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 Connectors on the STK500 board. Port A to Port D are already present on the STK500 board. T
ملخص المحتوى في الصفحة رقم 9
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 con- nected to the ZIF socket or the TQFP footprint on the STK502. This because the RESET-signal on the STK500 has an pull
ملخص المحتوى في الصفحة رقم 10
Using the STK502 Top Module 2.3 Programming the The ATmega169 can be programmed using both SPI and High-voltage Parallel Pro- gramming. 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. Note: The ATmega169 also support Self Programming, See AVR109 application note for more information on this topic. Note: The jum
ملخص المحتوى في الصفحة رقم 11
Using the STK502 Top Module 2.3.2 High-voltage Figure 2-7. High-voltage (Parallel) Programming 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. This s
ملخص المحتوى في الصفحة رقم 12
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 Debug- ging of the ATmega169. More information about the JTAG ICE and On-chip Debuggi
ملخص المحتوى في الصفحة رقم 13
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 The segment-pins from the ATmega169 are located at PORTA, PORTC, PORTD, and STK502 LCD to the PORTG. For simplicity in use they are all joined together on the header labeled “
ملخص المحتوى في الصفحة رقم 14
Using the STK502 Top Module Figure 2-11. Pin out for LCD Headers 1 2 1 2 SEG01 SEG02 LCD27 LCD28 SEG03 SEG04 LCD29 LCD04 SEG05 SEG06 LCD06 LCD25 SEG07 SEG08 LCD26 LCD05 SEG09 SEG10 LCD08 LCD22 SEG11 SEG12 LCD23 LCD07 SEG13 SEG14 LCD10 LCD20 SEG15 SEG16 LCD21 LCD09 SEG17 SEG18 LCD14 LCD12 SEG19 SEG20 LCD11 LCD13 SEG21 SEG22 LCD18 LCD16 SEG23 SEG24 LCD15 LCD17 SEG25 NC LCD19 LCD03 NC NC LCD24 LCD30 NC NC LCD31 LCD32 COM00 COM01 BP1 BP2 COM02 COM03 BP4 BP3 Seg. M169 LCD Pins This hardwar
ملخص المحتوى في الصفحة رقم 15
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. For more
ملخص المحتوى في الصفحة رقم 16
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. TOSC Block Schematic 32 kHz AVR XTAL1/TOSC1 XT1 To STK500 XTAL2/TOSC2 XT2 TOSC Switch 2-10 STK502 User Guide 2528
ملخص المحتوى في الصفحة رقم 17
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 NTC- thermistor is characterised by the fact that when the temperature goes down the resis- tance goes up. Using a voltage divider and reading the voltage over the thermistor through the ADC-channels on ATmega169, the temperature can be calculated. Applica- tion note “AVR0
ملخص المحتوى في الصفحة رقم 18
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 AREF STK500 AREF STK502 VREF Voltage refernce STK502 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 ATm
ملخص المحتوى في الصفحة رقم 19
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. Nothing is displayed on (1) The LCD is not enabled in Check the LCD initialisation . the LCD. the AVR device. The update frequency is Verify that the clock prescaling (1) not correct. correspond with the clock source . The PORTA/C/D and/or G Check that nothing is connected to Some segments on the are conne
ملخص المحتوى في الصفحة رقم 20
Troubleshooting Guide Table 3-1. Troubleshooting Guide Problem Reason Solution Cables not connected Please refer to Figure 2-7 for properly. correct Parallel Programming setup. STK500 target voltage Please refer to the ATmega169 data error. sheet for the Parallel Programming Parallel Programming Voltage limits. Adjust the target does not work. voltage on the STK500 board accordingly. The TOSC switch is not Set the TOSC switch in the XTAL- correctly set. position. The RESET-signal is not C