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
Using the STK502 Top Module

2.3.2 High-voltage Programming

Figure 2-7. High-voltage (Parallel) Programming
To program the ATmega169 using High-v oltage (Parallel) Programm ing, connect the PROGCTRL to PORTD and PROGDATA to PORTB on the STK500 as shown in Fig ure 2-7. Make sure that the TOSC-switch is place d in the XTAL position. See Sec tion 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 device s. This setting also applies to High­voltage Programming of the ATmega169.
The device can now be programmed using the High-voltage Programming mode in AVR Studio STK500 software.
Note: See the STK500 User Guide for information on how to use the STK500 front-
end software in High-voltage Programming mode.
Note: For the High-voltage Program ming mode to f unction correctly, t he target volt age
must be higher than 4.5V.
Caution: Make sure to disconnect LCD-disp lay from the se gment pins head er. Other­wise the lifetime of the LCD display may be severely reduced. See Figure 2-10.
STK502 User Guide 2-5
2528A–AVR–11/02
Using the STK502 Top Module
D
D
2.4 JTAG Connector Figure 2-8 s hows 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 ATmega 169 built-in J TAG interface. The pin out of the connector is shown in Figure 2 -9 and is complian t with th e pin out of the JTA G 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 Deb ugg ing can be found in the AVR JTAG ICE User Guide, which is avai lable at the Atmel web site, www.atmel.com.

Figure 2-9. JTAG Connector

TCK TDO TMS VTG
TDI
1 2
GN VTG RST NC GN
JTAG
2-6 STK502 User Guide
2528A–AVR–11/02
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. For simplicity in use they are all joined together on the header labeled “Seg­ment pins from ATmega169”. Th e header ne xt to it, la belled “STK 502 LCD pins” ho lds all the segments-pins for the LCD-display on the STK502.
By using the 34-lead cable that come s with t he STK5 02-kit, the two pin-he aders can b e connected, allowing the ATmega169 to control the LCD-display. See Figure 2-10.
Figure 2-10. Connecting the ATmega169 to the STK502 LCD
Caution: High-voltage Programming uses PORTB and PORTD. Be sure to disconnect any LCD-display connected to the ATm ega169 during th e High-voltage Progra mming. Otherwise the lifetim e of the display may be reduced.
Caution: When using PORTA, PORTC, PORTD, or PORTG as regular I/O ports, the corresponding LCD-segment pins must be disconnected from the ATmega169.

2.5.2 Default Segment Configuration

ATmega169 supports 100 segments. Th us not all of the 1 20 segme nts on the LCD-di s­play can be shown simultaneously. Five of the 30 se gment-pins on the LCD display has to be left unconnected. The LCD-pins that are not connected are pin #: 3, 24, 30, 31, and 32. See Technical Specifications for an overview of the excluded segments.
In order to use some of the segments on the LCD display that by default are not included or in order to use some of the segment pins as ordinary I/O-pins, use a custom strap between the two 34-pin headers. These to headers are lined up so they will fit in to a 2.54 mm pitch grid for easy connecting, e.g., a experiment board on top of them.
The pin out for these two head ers (Figure 2-11) ca n be found on the bottom-s ide of th e STK502-PCB or in Section 6 “Complete Schematics”.
STK502 User Guide 2-7
2528A–AVR–11/02
Using the STK502 Top Module
8 4 5 5 2 7 0 9 2 3 6 7 3 0 2
Figure 2-11. Pin out for LCD Headers
SEG01 SEG03 SEG05 SEG07 SEG09 SEG11 SEG13 SEG15 SEG17 SEG19 SEG21 SEG23 SEG25
NC
NC COM00 COM02
1 2
Seg. M169
SEG02 SEG04 SEG06 SEG08 SEG10 SEG12 SEG14 SEG16 SEG18 SEG20 SEG22 SEG24 NC NC NC COM01 COM03
LCD27 LCD29 LCD06 LCD26 LCD08 LCD23 LCD10 LCD21 LCD14 LCD11 LCD18 LCD15 LCD19 LCD24 LCD31
BP1 BP4
1 2
LCD2 LCD0 LCD2 LCD0 LCD2 LCD0 LCD2 LCD0 LCD1 LCD1 LCD1 LCD1 LCD0 LCD3 LCD3 BP2 BP3
LCD Pins
This hardware configuratio n will give a certain bit-mapping between t he bits in the ATmega169 LCDDRx Register and the segments on the STK502 LCD. See Section 4.1 “STK502 LCD Bit Mappings”

2.5.3 Using Both Colons on the Display

With the header J300 labelled “19 24” one can connect LCD-pin 24 (which is default unconnected) to LCD-pin 19 by the use of a jumper. See Figure 2-12. The reason for doing so is that the LCD-pin 24 has the segment “COL1” and LCD-pin 19 has “COL2”. In applications where a clock, date etc. shall be displayed, it can be useful to control both colons on the LCD-display. But connecting these LCD-pins will also lead to a connection between segment (see Technical Specifications) “S5” and “3”, “S8” and “S7”, “8” and “7”, which will in practice make them useless. See Figure 2-13 showing which seg­ments are available on the LCD-display with the default segment configuration.
2-8 STK502 User Guide
2528A–AVR–11/02
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 ATm ega169” where all the se gment pins are gather ed or throug h 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 information on how to write software for the LCD-display see application note “AVR064: STK502 – A Temperature Monitoring System with LCD Output” and applica­tion note “AVR065: LCD Driver for the STK502 LCD”.
Note: The LCD-display on the STK502 ca n be ordered se parately fro m ACTE Norway
(www.acte.no). Phone: +47 63 89 89 00 Fax: +47 63 87 90 00 E-mail: info@acte.no Price: NOK 99,­Ordering number: H4042-DL DE5156/L.
STK502 User Guide 2-9
2528A–AVR–11/02
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 XT AL2. 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
XTAL2/TOSC2
TOSC
Switch
XT1
XT2
To
STK500
2-10 STK502 User Guide
2528A–AVR–11/02

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 “AVR064: STK502 – A Temperature Monitoring System with LCD Output” describes the details of the application.
Using the STK502 Top Module

2.7.1 Sensor Switches Two switches on the STK502 are used to connect the sensor to the ADC-c hannels on

the ATmega169 as shown in Figure 2-17. Figure 2-17. Temperature sensor switch es
STK502 User Guide 2-11
2528A–AVR–11/02
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
STK502
STK502
AREF
VREF
Voltage refernc e
for the sensor
AREF
Switch
AREF
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. Select this position in order to run the code in Application Note “AVR064: STK502 – A Temp erature Monit oring System with LCD Output”
2.7.1.2 PF[1:0] Switch The PF[1:0] switch selects the input to the PF1 and PF0 pins (ADC channel 1/0) on the
ATmega169. Figure 2-19. PF[1:0] Switch
AVR
Sensor
pin 1
Sensor
pin 2
PORTF0
PORTF1
PF[1:0]
Switch
PF0 (ADC0)
PF1 (ADC1)
Positions: PIN: In this position the PF0 and PF1 are from the PORTF on the STK502 are
connected to the PF0 and PF1 on the ATmega169. Default position.
Sensor: In this position the pin 1 from the screw-terminal on the STK502 are
connected to PF0 on the ATmega169, and the pin 2 from the screw-terminal are connected to PF1 on the ATmega169. Select this position in order to run the code in Application Note “AVR064: STK502 – A Te mperature Monitoring System with LCD output”
In the sensor position both PF0 and PF1 are conne cted t o the s enor p ins, re gardles s of using single ended or differential ADC-me asurements in the appl ication. This means that it's not possible to use PF1 as an ordinary I/O-port even though only PF0 (single ended) is used with the ADC.
2-12 STK502 User Guide
2528A–AVR–11/02

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 the LCD.
The LCD is not enabled in the AVR device.
Check the LCD initialisation
Section 3
(1)
.
Some segments on the LCD seems to be stuck at high/low.
Can’t control PORTF[1:0]
Serial Programming does not work
The update frequency is not correct.
The PORTA/C/D and/or G are connected to something else than the LCD display.
PF[1:0] is not connected to the ATmega169.
ISP cable not connected. Connect the ISP ca ble according to
STK500 target voltage error.
The RSTDISBL Fuse is programmed.
Verify that the clock presc aling
correspond with the clock source
Check that nothing is connected to
these PORTS on the STK500 and
STK502.
Set the PF[1:0] switch in the PIN-
position.
Figure 2-6.
Please refer to the ATmega169
datasheet for the Serial
Programming Voltage limits. Adjust
the target voltage on the STK500
board accordingly.
Use Parallel Programming to
unprogram the RSTDISBL Fuse.
(1)
.
STK502 User Guide 3-1
Rev. 2528A–AVR–11/02
Troubleshooting Guide
Table 3-1. Troubleshooting Guide
Problem Reason Solution
Parallel Programming does not work.
Cables not connected properly.
STK500 target voltage error.
Please refer to Figure 2-7 for
correct Parallel Programming setup.
Please refer to the ATmega169 data
sheet for the Parallel Programming
Voltage limits. Adjust the target
voltage on the STK500 board
accordingly.
No programming works.
The TOSC switch is not correctly set.
The RESET
-signal is not
connected to the
Set the TOSC switch in the XTAL-
position.
Connect PG5 and RST with a
jumper. See Section 2.2.2.2 RST
.
ATmega169.
Note: 1. See the application note “AVR065: LCD Driver for the STK502 LCD” on how to con-
trol the LCD-display or the the ap plication note “AVR064 : STK502 – A Temperatur e Monitoring System with LC D Output”.
3-2 STK502 User Guide
2528A–AVR–11/02
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0°C - 50°C
LCD-display
Operation voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3V
STK502 User Guide 4-1
Rev. 2528A–AVR–11/02
Technical Specifications
Figure 4-1. Layout for the STK502 LCD-display
4-2 STK502 User Guide
2528A–AVR–11/02
Technical Specifica tions

4.1 STK502 LCD Bit Mappings

4.1.1 Alphanumeric Digit Number Two

4.1.2 Alphanumeric Digit Number Three

The LCD Data Registers (LCDDRx) in the ATmega169 are organized in groups accord­ing to the use of Backplane Control Lines (also know n as Common Line s). The LCD on the STK502 uses all four Common Lines and all 25 segments, in total 4 x 25 = 100 seg­ments. As can be seen in the LCD data sheet (Figure 4-1) describing the internal connection of pins, Common Lines and segments, the alphanumeric digits are referred to with a number according to where they are located on the LCD. Listed below is a description of the STK502 bit mappings according to this.
The bit mappings for the alphanumeric digit number two are listed below. Table 4-1. Bit Mappings for LCD Alphanumeric Digit Number Two
Register Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
LCDDR0 2-K 1 S1 2-A LCDDR5 2-J 2-F 2-H 2-B LCDDR10 2-L 2-E 2-G 2-C LCDDR15 2-M 2-P 2-N 2-D
The bit mappings for the alphanumeric digit number three are listed below. Table 4-2. Bit Mappings for LCD Alphanumeric Digit Number Three
Register Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
LCDDR0 3-K 2 S2 3-A

4.1.3 Alphanumeric Digit Number Four

4.1.4 Alphanumeric Digit Number Five

LCDDR5 3-J 3-F 3-H 3-B LCDDR10 3-L 3-E 3-G 3-C LCDDR15 3-M 3-P 3-N 3-D
The bit mappings for the alphanumeric digit number four are listed below. Table 4-3. Bit Mappings for LCD Alphanumeric Digit Number Four
Register Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
LCDDR1 4-K S3 4 4-A LCDDR6 4-J 4-F 4-H 4-B LCDDR11 4-L 4-E 4-G 4-C LCDDR16 4-M 4-P 4-N 4-D
The bit mappings for the alphanumeric digit number five are listed below. Table 4-4. Bit Mappings for LCD Alphanumeric Digit Numer Five
Register Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
LCDDR1 5-K S4 5 5-A LCDDR6 5-J 5-F 5-H 5-B LCDDR11 5-L 5-E 5-G 5-C LCDDR16 5-M 5-P 5-N 5-D
STK502 User Guide 4-3
2528A–AVR–11/02
Technical Specifications

4.1.5 Alphanumeric Digit Number Six

4.1.6 Alphanumeric Digit Number Seven

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 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. Bit Mappings for LCD Alphanumeric Digit Number Seven
Register Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
LCDDR2 7-K 10 S10 7-A LCDDR7 7-J 7-F 7-H 7-B LCDDR12 7-L 7-E 7-G 7-C LCDDR17 7-M 7-P 7-N 7-D
4-4 STK502 User Guide
2528A–AVR–11/02
Section 5

Technical Support

For Technical support, plea se conta ct avr@at mel.co m. When re questin g technic al sup­port, 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/bu ild .PC processor type and speed.A detailed description of the problem.
STK502 User Guide 5-1
Rev. 2528A–AVR–11/02
Technical Support
5-2 STK502 User Guide
2528A–AVR–11/02
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. 2528A–AVR–11/02
Complete Schematics
Figure 6-1. Schematics, 1 of 3
D
C
B
A
8
PGT2
PAT[7..0]
PAT[7..0]
PAT3
PAT4
PAT5
PAT6
PAT7
7654321
PAT2 PAT1
VTGGND
PAT0
PFT7 PFT6 PFT5 PFT4 PFT3 PFT2
ADC1 ADC0
GND
AVTG
C101
100N_16V_X7R
12
GND
12
AREFT
PFT[7..0]
PET[7..0]
AREFT
PFT[7..0]
PET[7..0]
48
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
ST100
123456789
C109
1U_16V_X7R
GND
PET0
PET1
PET2
PET3
LCDCAP
PCT7
PET4
PET5
PCT4
PCT5
PCT6
10111213141516
PET6
PET7
PBT0
PCT1
PCT2
PCT3
PBT1
PBT2
PBT3
PGT0
PGT1
XTAL1
PCT[7..0]
PCT[7..0]
PCT0
PDT[7..0]
PDT[7..0]
XTAL2
333435363738394041424344454647
PDT7
32
PDT6
31
PDT5
30
PDT4
29
PDT3
28
PDT2
27
PDT1
26
PDT0
25 24 23 22 21
TQFP64 ZIF SOCKET
20 19 18 17
PBT4
PBT5
PBT6
PBT7
PBT[7..0]
PBT[7..0]
VTG
GND
PGT5 PGT4 PGT3
PGT[5..0]
PGT[5..0]
ATMEL Norway
of
1327-Aug-2002 16:12:06
PAGE:
A9903.3.1020.B
STK502 add-on card for ATmega169, SOCKETS
7075 TILLER
NORWAY
Date:
Document number: Revision: B
TITLE:
MCU.Sch
Vestre Rosten 78,
ZIF SocketTQFP Footpri nt
PGT0
PCT0
PCT1
34
PB4(OC0)
PB3(MISO)
15
14
13
PBT3
PBT4
PBT5
PCT[7..0]
PCT[7..0]
33
(SEG14)PG0
PB6(OC1B)
PB5(OC1A)
16
PBT6
PGT1
ATMEGA169L-4AC
Not mounted
PD7(SEG15) PD6(SEG16) PD5(SEG17) PD4(SEG18) PD3(SEG19) PD2(SEG20) PD1(INT0/SEG21) PD0(ICP/SEG22) XTAL1(TOSC1) XTAL2(TOSC2) GND VCC PG5(RESET) PG4(T0/SEG23) PG3(T1/SEG24) PB7(OC2)
C107
PDT[7..0]
PDT[7..0]
XTAL1
XTAL2
12
C106
12
100N_16V_X7R
100N_16V_X7R
21
L100
BLM-21A102S
C105
VTG AVTG
12
C104
12
C103
12
C102
12
100N_16V_X7R
100N_16V_X7R
100N_16V_X7R
100N_16V_X7R
GND
1 2 3 4 5 6 78
A
PDT7
32
PDT6
31
PDT5
30
PDT4
29
PDT3
28
PDT2
27 26
PDT1 PDT0
25 24 23 22 21 20 19 18 17
PBT7
PBT[7..0]
PBT[7..0]
VTG
GND
PGT5 PGT4 PGT3
PGT[5..0]
PGT[5..0]
B
PAT[7..0]
PAT[7..0]
U100
PAT2
49
PAT1 PAT0
PFT7 PFT6 PFT5 PFT4 PFT3 PFT2
ADC1 ADC0
GND
AVTG
12
AREFT
AREFT
C100
100N_16V_X7R
PET[7..0]
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
GND
C108
1U_16V_X7R
PET[7..0]
Not mounted
VCC GND
AREF AGND AVCC
1 2
GND
ADC1 ADC1
VTGGND
PFT[7..0]
ADC0 ADC0
PFT[7..0]
D
PGT2
PAT3
PAT4
PAT5
PAT6
PAT7
PCT7
45
46
47
48
(SEG3)PA744(SEG4)PG243(SEG5)PC742(SEG6)PC641(SEG7)PC540(SEG8)PC439(SEG9)PC3
(SEG2)PA6
(SEG1)PA5
(SEG0)PA4
(COM3)PA3
(COM2)PA2 (COM1)PA1 (COM0)PA0
(TDI/ADC7)PF7 (TDO/ADC6)PF6 (TMS/ADC5)PF5
(TCK/ADC4)PF4 (ADC3)PF3 (ADC2)PF2 (ADC1)PF1 (ADC0)PF0
LCDCAP1PE0(RXD)2PE1(TXD)3PE2(AIN0/XCK)
PE3(AIN1)5PE4(SCL/USCK)
PE5(SDA/DI)
4
6
7
PET0
PET1
PET2
PET3
PET4
PET5
LCDCAP
C
PCT5
PCT6
PE6(DO)
8
9
PET6
PET7
PCT2
PCT3
PCT4
38
(SEG10)PC237(SEG11)PC136(SEG12)PC035(SEG13)PG1
PB2(MOSI)
PB1(SCK)
PB0(SS)10PE7
12
11
PBT0
PBT1
PBT2
6-2 STK502 User Guide
2528A–AVR–11/02
Figure 6-2. Schematics, 2 of 3
D
Complete Schematics
C
B
A
XT1
8
7654321
XT2
C200
100N_16V_X7R
12
GND
PDT0PDT1
PDT2PDT3
PDT4PDT5
PDT6PDT7
PBT0PBT1
PBT2PBT3
PBT4PBT5
PBT6PBT7
XT2XT1
GND
J201
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20
21 22
23 24
25 26
27 28
29 30
31 32
33 34
35 36
R201
0R
1 2
GND
37 38
PDT[7..0]
PBT[7..0]
PBT[7..0]
PDT[7..0]
GNDGND
PBT2 PBT3 PBT1
C203
100N_16V_X7R
12
GNDGND
4
6
2
VCC
MOSI
MISO1SCK3RESET
5
RESET
GND
GND
ISP_CONNECTOR
ATMEL Norway
VTG
J208
39 40
of
2327-Aug-2002 16:12:07
PAGE:
A9903.3.1020.B
STK502 add-on card for ATmega169, CONNECTORS
7075 TILLER
NORWAY
Date:
Document number: Revision: B
Connectors.Sch
TITLE:
Vestre Rosten 78,
JS200
LCD[32..3]
J205
1 2
PGT0 PGT1
VTG VTG
RESET
PGT5
3 4
5 6
7 8
PGT2 PGT3
PGT4
C202
12
9 10
100N_16V_X7R
VTGGND
LCD[32..3]
LCD3
J207
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20
21 22
23 24
25 26
27 28
LCD10 LCD20
LCD21 LCD9
LCD14 LCD12
LCD11 LCD13
LCD18 LCD16
LCD15 LCD17
LCD19
LCD24 LCD30
LCD27 LCD28
LCD29 LCD4
LCD6 LCD25
LCD26 LCD5
LCD8 LCD22
LCD23 LCD7
GND
VTGGND
J203
PORTE
1 2
3 4
5 6
7 8
9 10
PET0 PET1
PET2 PET3
PET4 PET5
PET6 PET7
PGT[5..0]
PGT[5..0]
29 30
LCD31 LCD32
31 32
33 34
COM0 COM1
COM2 COM3
COM[3..0]
COM[3..0]
PH_2,54_17X2_GOLD
Signals to LCD
VTG
GND
GND
AREF
VTG
GND VTGVTG
RESET
J202
JTAG PORTG/RES
1 2
3 4
5 6
7 8
GND
GNDGND
PAT0PAT1
PAT2PAT3
PAT4PAT5
PAT6PAT7
PCT0PCT1
PCT2PCT3
PCT4PCT5
PCT6PCT7
PET0PET1
PET2
AREF
J200
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20
21 22
23 24
25 26
27 28
RESET
R200
0R
1 2
GND
NOT MOUNTED
12
VTG
EXPAND0 EXPAND1
29 30
31 32
33 34
35 36
37 38
39 40
GND
C201
100N_16V_X7R
PAT[7..0]
PET[7..0]
PET[7..0]
D
RESET
PCT[7..0]
PAT[7..0]
PCT[7..0]
C
PFT[7..0]
PFT[7..0]
9 10
VTG
PFT4
PFT5
PFT6
PFT7
PCT1PCT2
PCT3PCT4
PCT5PCT6
PCT7
PDT7PGT0
PGT1
J206
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
PGT2
PAT4 PAT5
PAT6 PAT7
PCT0
PAT1PAT0
PDT1PDT2
PDT3PDT4
PDT5PDT6
PGT4
PH_2,54_17X2_GOLD
17 18
19 20
21 22
23 24
PDT0
LCD signals from MCU
25 26
27 28
29 30
31 32
33 34
PGT3
PAT2 PAT3
VTGGND
PORTF
J204
1 2
3 4
5 6
7 8
9 10
PFT0 PFT1
PFT2 PFT3
PFT4 PFT5
PFT6 PFT7
PDT[7..0]
PCT[7..0]
PAT[7..0]
PAT[7..0]
PCT[7..0]
B
PGT[4..0]
PDT[7..0]
A
1 2 3 4 5 6 78
PGT[4..0]
STK502 User Guide 6-3
2528A–AVR–11/02
Complete Schematics
Figure 6-3. Schematics, 3 of 3
D
C
B
A
8
XT1
XT2
1
23
XC300
7654321
2 1
J300
LCD30
LCD31
30
1A/1J/1N/1D311F/1G/1E/X2
LCD4
LCD5
28
29
27
1/2F/2E/2P
X1/1B/1C/S6
S1/2H/2G/2N
LCD6
LCD7
LCD8
25
26
2/3F/3E/3P
S2/3H/3G/3N
2A/2B/2C/2D
LCD9
LCD10
LCD24
22
24
23
S3/4F/4E/4P
3/COL1/S7/7
LCD11
LCD12
LCD13
COM0
COM1COM2
LCD32
34LCD display
32
BP133BP2
BP31BP421K/1L/1M/632K/2J/2L/2M43K/3J/3L/3M53A/3B/3C/3D64K/4J/4L/4M74A/4B/4C/4D85K/5J/5L/5M95A/5B/5C/5D109/6F/6E/6P11S9/6H/6G/6N126K/6J/6L/6M136A/6B/6C/6D1410/7F/7E/7P15S10/7H/7G/7N167K/7J/7L/7M
U300
COM3
LCD3
LCD22
LCD23
LCD25
LCD26
LCD27
LCD28
LCD29
LCD20
LCD21
20
21
5/5H/5G/5N
4/4H/4G/4N
S4/5F/5E/5P
LCD14
LCD15
LCD19
19
18
7A/7B/7C/7D
S5/COL2/S8/8
17
LCD16
LCD17 LCD18
H4042-DL
PH_2,54_2 X 1
JS300
IQD32.768KHZ
4
TOSC1
TOSC2
XT1
XT2
1
356
4
7
SW302
JSM2220-0201
2
XTAL1
XTAL2
XTAL2
XTAL1
AREFT
AREFT
GND
ADC0
ADC1
ADC1
ADC0
ATMEL Norway
of
3327-Aug-2002 16:12:07
PAGE:
A9903.3.1020.B
STK502 add-on card for ATmega169, LCD, Sensor, 32kHz
TITLE:
Date:
7075 TILLER
NORWAY
Document number: Revision: B
Peripherals.Sch
Vestre Rosten 78,
2
356
VREF
12
12
2
1
12
7
4
R303
0R
C301
100N_16V_X7R
U301 OUT GND
MAX6018AEUR12-T
3
IN
C300
100N_16V_X7R
SW300
JSM2220-0201
COM[3..0]
COM[3..0]
D
LCD[32..3]
LCD[32..3]
C
1
AREF
AREF
VTG
GND
R301
12
GND
B
SW301
10K
JSM2220-0201
1
NTC1
J301
2
356
PFT0
1
2
A sensor will be
attached to this
screw-terminal
4
PFT1
NTC2
R302
12
MPT_0,5/2-2,54
R300
1 2
0R
NTC-RH16
7
GND
GND
PFT[7..0]
PFT[7..0]
1 2 3 4 5 6 78
A
6-4 STK502 User Guide
2528A–AVR–11/02
Figure 6-4. Assembly Drawing, 1 of 1
Complete Schematics
STK502 User Guide 6-5
2528A–AVR–11/02
Complete Schematics
6-6 STK502 User Guide
2528A–AVR–11/02
Atmel Headquarters Atmel Operations
Corporate Headquarters
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. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan TEL (81) 3-3523-3551 FAX (81) 3-3523-7581
Memory
2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 436-4314
Microcontrollers
2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 436-4314
La Chantrerie BP 70602 44306 Nantes Cedex 3, France TEL (33) 2-40-18-18-18 FAX (33) 2-40-18-19-60
ASIC/ASSP/Smart Cards
Zone Industrielle 13106 Rousset Cedex, France TEL (33) 4-42-53-60-00 FAX (33) 4-42-53-60-01
1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759
Scottish Enterprise Technolo gy Park Maxwell Building East Kilbride G75 0QR, Scotland TEL (44) 1355-803-000 FAX (44) 1355-242-743
RF/Automotive
Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany TEL (49) 71-31-67-0 FAX (49) 71-31-67-2340
1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759
Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom
Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France TEL (33) 4-76-58-30-00 FAX (33) 4-76-58-34-80
e-mail
literature@atmel.com
Web Site
http://www.atmel.com
© Atmel Corporation 2002.
Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company’s standard warranty which is detailed in Atmel’s Terms and Conditions located on the Company’s web site. The Company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel’s products are not authorized for use as critical components in life support devices or systems.
ATMEL®, AVR®, and AVR Studio® are the registered trademarks of Atmel Corporation.
®
Microsoft Other terms and product names may be the trademarks of others.
, Windows®, and Windows NT® are the registered trademarks of Microsoft Corporation.
Printed on recycled paper.
2528A–AVR–11/02
/0M
Loading...