Atmel STK502 User Manual

STK502
..............................................................................................
User Guide
Table of Contents
Section 1
Introduction...........................................................................................1-1
Section 2
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.....................................................................................2-2
2.2.1 PORT E/PORT F................................................................................2-2
2.2.2 PORT G/RST......................................................................................2-2
2.3 Programming the ATmega169..................................................................2-4
2.3.1 In-System Programming.....................................................................2-4
2.3.2 High-voltage Programming.................................................................2-5
2.4 JTAG Connector .......................................................................................2-6
2.5 LCD Display..............................................................................................2-7
2.5.1 Connecting the STK502 LCD to the ATmega169...............................2-7
2.5.2 Default Segment Configuration ..........................................................2-7
2.5.3 Using Both Colons on the Display......................................................2-8
2.6 TOSC Switch...........................................................................................2-10
2.7 Sensor.....................................................................................................2-11
2.7.1 Sensor Switches...............................................................................2-11
Section 3
Troubleshooting Guide .........................................................................3-1
Section 4
Technical Specifications .......................................................................4-1
4.1 STK502 LCD Bit Mappings.......................................................................4-3
4.1.1 Alphanumeric Digit Number Two................................................. ..... ..4-3
4.1.2 Alphanumeric Digit Number Three ................................................... ..4-3
4.1.3 Alphanumeric Digit Number Four ..... ..... .... .........................................4-3
4.1.4 Alphanumeric Digit Number Five...... ................................................ ..4-3
4.1.5 Alphanumeric Digit Number Six.................................... ..... ..... ............4-4
4.1.6 Alphanumeric Digit Number Seven ....................................................4-4
STK502 User Guide i
2528A–AVR–11/02
Table of Contents
Section 5
Section 6
Complete Schematics........................................................................... 6-1
ii STK502 User Guide
2528A–AVR–11/02
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 Inserti on Force (ZIF) so cket makes it e asy 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 demonstration application, and comes with two application notes, “AVR064: STK502 – A Temperature Monitoring System with LCD Output” and “AVR065: LCD Driver for the STK502”. These application notes explain how to use the different mo dules in the device. Included in the kit is a pre- programme d ATmega169. Insert the device in the ZIF socket and the demonstration application will start immediately.
Figure 1-1. STK502 Top Module for STK500
STK502 User Guide 1-1
Rev. 2528A–AVR–11/02
Introduction
1.1 Features Supports the ATmega169 with Built-in LCD Controller.
LCD-on-glass Display for Demonstrating the ATmega169 LCD Contro ller.Supported by AVR StudioZero 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.JTAG Connector for On-chip Debugging Using JTAG ICE.On-board 32 kHz Crystal for Easy Real Time Clock Implementations.Temperature Sensor for the Demo Application.Quick Reference to all Switches and Jumpers in the Silk-Screen of the PC B.
®
4.
Pre-programmed ATmega169 with Demonstration Application. Includes C-code
Examples for all Major Peripherals on the ATmega169 Device.
– The Way to Get Going with your ATmega169
1-2 STK502 User Guide
2528A–AVR–11/02
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

2.1.1 Placing an ATmega169 on STK502

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: Connecting STK502 with wrong orientation may damage the board.
STK502 contains both a ZIF socket, and a footprint for a TQFP package which allows an easy way of soldering an emulator adapter directly into the STK502. Care should be taken so that the device (or adapter) is mounted with th e correct orientati on. Figure 2-2 shows the location of pin1 for the ZIF socket and the TQFP footprint.
STK502 User Guide 2-1
Rev. 2528A–AVR–11/02
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 pr esent on th e STK500 board . They are not duplicated on the STK502.

2.2.1 PORT E/PORT F Figure 2-3 shows the pin out fo r the I/O port headers Port E and Port F.

Figure 2-3. General I/O Ports
1 2 1 2 PE0 PE2 PE4 PE6
GND
PE1 PE3 PE5 PE7 VTG
PORTE
PF0 PF2 PF4 PF6
GND
PF1 PF3 PF5 PF7 VTG
PORTF
Note: Port E is also present on the STK500, but only PE0 to PE2 (three least signifi-
cant bits) are accessible there. To access all Port E bits the connector on the STK502 must be used.

2.2.2 PORT G/RST

In addition to the normal Port G pins, this connector has the RESET-signal. Se Figure 2-
4.
2-2 STK502 User Guide
2528A–AVR–11/02
Using the STK502 Top Module
Figure 2-4. PORTG/RST
1 2 PG0 PG2 PG4
NC
GND
PORTG/RST
PG1 PG3 PG5 RST VTG
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-up resistor to VCCT which will interfere with PG5 when used as an ordinary I/O-pin.
If RESET
the PORTG /RST
/PG5-pin on ATmega169 shall be used as a Reset pin, the RST and PG5 on
must be connected with a jumper. See Figure 2-5.
If the pin shall be used as an I/O-pin the jumper must be removed.
Figure 2-5. The RESET
Signal on PORTG/RST
STK502 User Guide 2-3
2528A–AVR–11/02
Using the STK502 Top Module

2.3 Programming the ATmega169

2.3.1 In-System Programming

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 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 jumper for the Reset-signal on PORTG/RST
must be mounted before an y
programming can take place. See Section 2.2.2.2
Figure 2-6. In-System Programming
To program the ATmega169 using ISP Programming mode, connect the 6-wire cable between the ISP6PIN connector on the STK50 0 board and the I SP connector on the STK502 board as shown in Figure 2-6. The device can be prog rammed using the Serial Programming mode in the AVR Studio4 STK500 software.
Note: See STK500 User Guide for information on how to use the STK500 front-end
software for ISP Programming.
2-4 STK502 User Guide
2528A–AVR–11/02
Loading...
+ 23 hidden pages