Advertisement

Quick Links

Table of Contents

STK504 USER GUIDE ......................................................................................... 2
............................................................................................................... 2
..................................................................................................................................2
.......................................................................................................... 4
JTAG programming .................................................................................................................10
EXT - STK500 as clock source...............................................................................................12
LF - Low-Frequency 32kHz crystal.........................................................................................12
HF - High-Frequency crystal...................................................................................................12
Fuse settings ............................................................................................................... 13
Connecting to other displays ....................................................................................... 14
.....................................................................................................................16
Programming problems ............................................................................................... 16
General problems ........................................................................................................ 17
.................................................................... 1
........................................................................................................ 5
.............................................................................................................5
.........................................................................................................6
..................................................................................6
.........................................................................................7
......................................................................................... 8
....................................................................................................8
...............................................................................................9
...................................................................................... 12
.................................................................................................................12
....................................................................................................... 14
..................................................................................14
....................................................................... 15
................................................................................................15
....................................................................................... 16
.......................................................................... 18
.................................... 19
1

Advertisement

Table of Contents
loading

Summary of Contents for Atmel STK504

  • Page 1: Table Of Contents

    Table of Contents TABLE OF CONTENTS ..............1 STK504 USER GUIDE ..................2 Introduction ....................... 2 Features ..........................2 Known Issues ......................4 Getting Started ......................5 Hardware overview ......................5 Mounting the STK504 ......................6 Placing the AVR in the ZIF socket ..................6...
  • Page 2: Stk504 User Guide

    STK504 User Guide Introduction STK504 is a top module to the STK500 development board from Atmel Corporation. It adds support for the 100-pin AVR microcontrollers listed in the feature list below. STK504 includes connectors and hardware allowing full utilization of the features of these devices, while the Zero Insertion Force (ZIF) socket makes it easy to use TQFP packages for prototyping.
  • Page 3 • LCD and other peripherals can be disconnected from the device • JTAG Connector for on-chip debugging using JTAGICE mkII • On-board 32 kHz crystal for easy Real Time Clock implementations • Pre-programmed ATmega3290 with example application...
  • Page 4: Known Issues

    Known Issues January 2005: There are no known issues.
  • Page 5: Getting Started

    Getting Started This section describes how to connect the STK504 onto the STK500, how to place the AVR in the ZIF socket and connect cables to different peripherals. Hardware overview The STK504 is a flexible platform for debugging the 100-pin LCD AVRs. The card offers lots of connectors so you can connect to your own hardware, or you can use it as it is.
  • Page 6: Mounting The Stk504

    The AVR can be programmed through this connector using the ISP programming mode. See In-System Programming for more information. Mounting the STK504 The first thing you should do is to mount the STK504 onto the STK500. Turn off the power on STK500. Remove any other top card from the STK500.
  • Page 7: Running The Demo Application

    Set the switch on STK504 to the LF position. Turn on power on STK500 The demo application should now run, flashing some of the LCD segments and displaying some text. The source code and hex file for the demo can be downloaded from the Atmel web site.
  • Page 8: Programming The Avr

    6-pin cable between the ISP6PIN connector on STK500 and the SPROG connector on STK504 as shown in Figure 4-1. Also mount a jumper between pin 6 and 8 on the PORTG header. Then start the AVR Programmer found on the Tools menu in AVR Studio ("Tools/Program AVR/...
  • Page 9: High-Voltage Programming

    To program the AVR mounted on STK504 using High-Voltage Programming, follow these steps: Turn off the STK500 power switch Disconnect from STK500 and STK504 any hardware that does not tolerate Connect the PROGCTRL to PORTD and PROGDATA to PORTB on the STK500 as shown on the figure 4-2 below.
  • Page 10: Jtag Programming

    JTAG programming You can also use the JTAGICE mkII to prorgam an AVR mounted on the STK504. In order to do this, the AVR's OCD Enable fuse must be set. This fuse can be enabled by ISP Programming or High-Voltage Programming.
  • Page 11 Turn off the STK500 power switch Remove the RESET jumper on STK500 Mount a jumper between pin 6 and 8 on the PORTG header on STK504 Connect the JTAGICE probe to the STK504 JTAG connector as shown in figure 4-3...
  • Page 12: Stk504 Clock Sources

    STK504 Clock Sources The STK504 can supply three kinds of external clock sources to the AVR mounted in the ZIF socket: On-board 32kHz crystal, a higher frequency crystal mounted in the on-board socket and a clock supplied from STK500. The clock switch The clock switch has three positions, EXT, LF and HF as shown in figure 5-1.
  • Page 13: Fuse Settings

    There is also a crystal socket on STK504 where you can place a crystal. This is to enable high-frequency crystals (>8MHz) to be used. Because of long wires and large capacitances on the clock nets on STK500, you should put your HF crystal on STK504 and not in the socket on STK500.
  • Page 14: Using The Lcd

    Figure 6-2: The LCD cable Connecting to other displays If you have your own LCD you would like to use with the STK504, you can do so by connecting it to the AVR SEGMENT PINS connector. Pay attention to the pin...
  • Page 15: Debugging With Jtagice Mkii

    Debugging with JTAGICE mkII ATMEL's JTAGICE mkII can debug AVRs that supports the JTAG or the debugWire debugger interface. Connecting the JTAGICE Figure 7-1: Connecting the JTAGICE to STK504 Connect the JTAGICE probe to the JTAG connector as show in the figure above.
  • Page 16: Troubleshooting Guide

    Check the clock prescaling in your shown on the is not correct. initialization. Check that the clock source selected on STK504 is correct. See STK504 Clock Sources for more information. Some LCD Some of the port pins Check that the pins used to drive the LCD...
  • Page 17: General Problems

    STK500 source. and STK504. Check the OSCSEL jumper on STK500 and clock switch on STK504. If you are using a crystal in one of the sockets, check that it is firmly mounted in its socket.
  • Page 18: Appendix A Port Connectors

    Appendix A Port Connectors The STK504 has five port connectors in addition to those available on STK500. These are PORTE, PORTF, PORTG, PORTH and PORTJ. The pinout of each connector is described below. Figure A-1: STK504 port connectors Table A-2: STK504 port connectors pinout...
  • Page 19: Appendix B Lcd Pinout And Segment Mapping

    Appendix B LCD Pinout and Segment Mapping This appendix shows the LCD connector pinout and the LCD segment mapping. Table B-1: AVR Table B-2: LCD PINS SEGMENT PINS Conn ector pins ctor 10 PC 11 12 PH 13 14 PH 15 16 PC 17 18 PC 19 20 PC...
  • Page 20 37 38 PG PJ1 39 40 PJ0 SE 41 42 PH 43 44 PH The STK504's on-board LCD display is mapped into the AVR's LCD data registers as shown below. Figure B-1: LCD segments Table B-3: LCD segment mapping Comm...
  • Page 21 © Atmel Corporation 2005. All rights reserved. Atmel®, logo and combinations thereof, AVR®, and AVR Studio® are registered trademarks, and Everywhere You Are are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.
  • Page 22 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Atmel ATSTK504...

Table of Contents