STK594
..............................................................................................
User Guide
Download from Www.Somanuals.com. All Manuals Search And Download.
Table of Contents
1.1 Features....................................................................................................1-2
2.2 PORT Connectors.....................................................................................2-2
2.2.1 PORT E ..............................................................................................2-2
2.4 JTAG Connector .......................................................................................2-3
2.5 TOSC Switch.............................................................................................2-4
2.6.1 Second RS-232C Port ........................................................................2-4
2.7 Two-Wire Serial Interface (TWSI) .............................................................2-5
2.8 External Interrupts.....................................................................................2-5
2.9 Split Power Supply Support ......................................................................2-6
2.10 XTAL Switch .............................................................................................2-6
2.11 Reset Switches .........................................................................................2-6
3.1 System Requirements...............................................................................3-1
3.2 System Designer Installation.....................................................................3-2
3.4 System Designer Licensing.......................................................................3-2
3.4.4 Troubleshooting..................................................................................3-3
Download from Www.Somanuals.com. All Manuals Search And Download.
4.1 Preparing the Example Files.....................................................................4-1
4.2 Description ................................................................................................4-1
4.3 Design Flow ..............................................................................................4-2
4.4 Creating a Project .....................................................................................4-2
4.7 AVR-FPGA Interface.................................................................................4-8
4.8 FPGA Place and Route.............................................................................4-9
4.9 Bitstream Generation ..............................................................................4-11
4.10.1 Hardware Setup................................................................................4-12
4.10.2 Software Setup .................................................................................4-13
4.11 Running the Design ................................................................................4-14
Technical Specifications ....................................................................... 5-1
Download from Www.Somanuals.com. All Manuals Search And Download.
Section 1
Introduction
The STK594 board is a top module designed to add AT94K FPSLIC™ support to the
STK500 development board. With this board the STK500 is extended to support all cur-
rent AT94K FPSLIC devices in a single development environment.
The STK594 includes connectors, jumpers and hardware allowing full utilization of the
new features of the FPSLIC family, see Figure 1-1.
This user guide acts as a general getting started guide as well as a complete technical
reference for advanced users.
In addition to adding support for new devices, it also adds new support for peripherals
previously not supported by the STK500. An additional RS-232 port and a Two-Wire
Serial Interface are among the new features.
Figure 1-1. STK594 Top Module for STK500
FPSLIC STK594 User Guide
1-1
Rev. 2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction
1.1
Features
STK500 Compatible
AVR Studio® and System Designer™ Compatible
Supports AT94KAL and AT94KAX Devices
Supports all Added Features in FPSLIC Devices
JTAG Connector for On-chip Debugging Using JTAG ICE
Additional RS-232C Port with Available RTS/CTS Handshake Lines
On-board 32 kHz Crystal for Easy RTC Implementations
1-2
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Section 2
Using the STK594 Top Module
2.1
Preparing the
STK500 for Use
with the STK594
Prior to using the STK594 with the STK500, it is necessary to make a few adjustments
to the STK500 Starter Kit to allow for proper operation of Atmel’s AT94K FPSLIC
devices.
2.1.1
Adjusting VTARGET According to the AT94K Series datasheet, the VCC operating voltage is specified where
for the AT94K
Devices
{VCC | 3.0 < VCC = 3.6} Volts, with respect to ground. The STK594 board requires that
the STK500 board supplies a VCC within the operating range for the AT94K devices.
Prior to using the STK594 board, it is necessary to adjust the VTARGET to a value
between 3.0 and 3.6V. For more information on adjusting VTARGET from within AVR
Studio, consult section 5.3.5.1 of the STK500 User Guide, available on the Atmel web
site (www.atmel.com).
on page 6 of this section for more information.
2.1.2
Connecting the
STK594 to the
STK500 Starter Kit
The STK594 should be connected to the STK500 expansion header 0 and 1. It is impor-
tant that the top module is connected in the correct orientation as shown in Figure 2-1
on page 2. The EXPAND0 written on the STK594 top module should match the
EXPAND0 written beside the expansion header on the STK500 board.
FPSLIC STK594 User Guide
2-1
Rev. 2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using the STK594 Top Module
Figure 2-1. Connecting the STK594 to the STK500 Board
Note: Connecting the STK594 with the wrong orientation may damage the boards.
Note: Do not mount the STK594 at the same time an AVR is mounted on the STK500
board.
2.2
PORT
Connectors
Since the AT94K devices have additional ports not available on the STK500, these ports
are located on the STK594 board. The STK594 ports have the same pinout and func-
tionality as the ports on the STK500 board. Since Port A to Port D are already present
on the STK500 board, they are not duplicated on the STK594.
2.2.1
PORT E
Figure 2-2 shows the pinout for the I/O port headers Port E.
Figure 2-2. General I/O Ports
1 2
PE0
PE2
PE4
PE6
GND
PE1
PE3
PE5
PE7
VTG
PORT E
Note: Port E is also present on the STK500, but only PE0 to PE2 (3 least significant
bits) are accessible. To access all Port E bits the connector on the STK594
must be used.
2-2
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using the STK594 Top Module
2.3
Programmingthe The FPSLIC configuration process involves configuring the FPGA, the AVR® program
code and the FPSLIC data memory. This configuration requires a single bitstream that
AT94K Devices
configures the FPGA, the embedded AVR Program SRAM and the FPSLIC Data
SRAM. The combined bitstream is automatically generated by the Bitstream Generator,
a System Designer software utility.
After a reset and the internal clearing of the configuration data, the FPSLIC device self-
initiates configuration. The Master mode uses an internal oscillator to provide the Con-
figuration Clock (CCLK) for clocking the external EEPROM (configurator), which
contains the configuration data. After auto-configuration is complete, re-configuration
can be initiated manually by the user, if needed.
Note: The AT94K devices also support Self-Programming. For more information on
this topic, refer to the “Code-Self Modify” application note available on the Atmel
web site.
Note: The AT94K devices also support Cache Logic® Configuration. For more infor-
mation on this topic, refer to the “Cache Logic Configuration” application note
available on the Atmel web site.
For more details on programming procedures, refer to Section 4.10.
2.4
JTAG Connector The JTAG connector is intended for the AT94K devices that have a built-in JTAG inter-
face. The pinout of the JTAG connector is shown in Figure 2-3 and is compliant with the
pinout of the JTAG ICE available from Atmel. Connecting a JTAG ICE to this connector
allows On-chip Debugging of the AT94K devices.
More information about the JTAG ICE and On-chip Debugging can be found in the AVR
JTAG ICE user guide, available on the Atmel web site.
Figure 2-3. JTAG Connector
1 2
TCK
TDO
TMS
VTG
TDI
GND
VTG
RST
N/C
GND
JTAG
Note: To determine if your AT94K device supports JTAG Debug, examine the date
code. Any parts with a J after their date code support JTAG. Example, 4201J.
Figure 2-4 shows how to connect the JTAG ICE probe on the STK594 board.
Figure 2-4. Connecting JTAG ICE to the STK594
FPSLIC STK594 User Guide
2-3
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using the STK594 Top Module
2.5
TOSC Switch
The AT94K device provides dedicated I/O pins for TOSC1 and TOSC2, rather than
sharing with the general purpose I/O pins. The TOSC switch selects whether or not the
32 kHz crystal is connected to the pins of the device.
Figure 2-5 shows a simplified block schematic on how this is implemented.
Figure 2-5. TOSC Block Schematic
FPSLIC
32 kHz
TOSC2
TOSC1
TOSC
Switch
2.6
Universal
Asynchronous
Receiver
Unlike traditional AVR microcontrollers, the AT94K device provides the option of having
separate I/O pins for the UARTs rather than sharing with the general purpose I/O pins.
Figure 2-6 shows the pinout of a header for the dedicated UART pins.
Transmitter
(UART)
Figure 2-6. UART Header
1 2
RX0
RX1
TX0
TX1
UART
2.6.1
Second RS-232C
Port
The AT94K device has an additional UART. The RS-232 port on the STK594 board has
in addition to the RXD and TXD lines support for RTS and CTS flow control. Figure 2-7
shows a simplified block schematic on how this is implemented.
Note: The UART in AT94K devices does not support hardware RTS or CTS control. If
such functionality is needed, it must be implemented in software.
Figure 2-7. UART Block Schematic
RS-232/Logic Level
4
Converter
6
2
3
7
8
5
RxD
CTS
TxD
RTS
This UART can also be used from devices placed in the STK500 board. Simply connect
the appropriate port pins to RXD and TXD on the STK594 board.
Note: If no software RTS/CTS flow control is implemented, a jumper shorting RTS and
CTS will ensure correct communication with an external application that uses
such flow control.
2-4
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using the STK594 Top Module
2.7
Two-Wire Serial
Interface (TWSI)
The AT94K device includes dedicated I/O pins for the TWSI rather than sharing with the
general purpose I/O pins.
Figure 2-8 shows the pinout of a header for the dedicated TWSI pins.
Figure 2-8. TWSI Header
1 2
SDA
SCL
TWSI
2.7.1
Description of
Configuration
Memory Pins
An AT17LV010-10CC 1-Mbit Configuration Memory is included on the STK594 for sup-
plying the AT94K FPSLIC device with its configuration data, as well as for non-volatile
data storage. The configurator is a high-density EEPROM with a TWSI interface. A
detailed datasheet of the Configuration Memory can be obtained from the Atmel web
site.
The configurator can be connected to the I/O pins of the embedded AVR microcontrol-
ler. The 4-pin header marked CONFIG can be used for connecting the TWSI interface of
the configurator to the I/O pins of the target AVR microcontroller. Two-wire cables are
included with the STK500 for connecting the configurator to the I/O pins.
Figure 2-9 shows the pinout of a header for the Configuration Memory pins.
Figure 2-9. Configuration Memory Header
1 2
cSDA
cSER_EN
cSCL
N/C
CONFIG
2.8
External
Interrupts
Unlike traditional AVR microcontrollers, the AT94K device provides the option of having
separate I/O pins for the External Interrupts rather than sharing with the general purpose
I/O pins.
Figure 2-10 shows the pinout of a header for the dedicated External Interrupt pins.
Figure 2-10. External Interrupt Header
1 2
INTP0
INTP2
INTP1
INTP3
EXT
FPSLIC STK594 User Guide
2-5
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using the STK594 Top Module
2.9
Split Power
Supply Support
The AT94K FPSLIC devices exist in two different variations, the AL and AX. The AL
variation is a 3.3V device manufactured on a 0.35µ process, while the AX variation has
a 1.8V core manufactured on a 0.18µ process. The primary difference between the two
variations, is that the AX device requires a split power supply, as the I/Os are still pow-
ered from a 3.3V supply, while the core operates at 1.8V.
The STK594 supports both AT94K variations. If an AX variant is being used it is neces-
jumper to select the core voltage.
Figure 2-11. AT94K Core Voltage Selector
AT94KAL
AL
AT94KAX
AL
VDD
VDD
AX
AX
2.10
XTAL Switch
An oscillator is included on the STK594 for supplying an additional clock to the AT94K
FPSLIC device. The XTAL switch selects if the oscillator is connected to the XTAL1 pin,
or whether the clock is provided by the STK500.
Figure 2-12 shows a simplified block schematic on how this is implemented.
Figure 2-12. XTAL Block Schematic
FPSLIC
OSC
XTAL1
XTAL2
XT1
XT2
2.11
Reset Switches
The reset switch found on the STK594 is connected to the AT94K’s RESET pin. When
pressed, the AT94K device will reset and initiate a configuration download from the con-
figuration memory.
The reset switch found on the STK500 is connected to the AVRRESET. When pressed,
the embedded AVR microcontroller resets and begins execution at location $0000.
2-6
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Section 3
Installing System Designer
System Designer is the ideal software platform for all AT94K FPSLIC development. It
includes an Editor, an Assembler and a Debugger as its development tools for the
embedded AVR development, and also includes a Simulator, Synthesizer and a Place
and Route tool for FPGA development. System Designer also includes a Co-Verification
suite powered by Mentor Graphics®, allowing for step-by-step simulation of the FPGA
and AVR design concurrently.
3.1
System
Requirements
For a single-user system, System Designer requires a personal computer equipped as
follows:
CD-ROM Drive
250-Mbyte Minimum Hard Drive
128-Mbyte RAM
Parallel Interface Port
Windows® 95/98/2000/Me, or WindowsNT® 4.0
Network Interface Card or Security Dongle
The software security dongle is used to generate a unique HOSTID for systems without
a network interface card. The security dongle is connected to the PC through the
parallel port interface. It is possible to configure a floating network license through the
security dongle. The security dongle allows users to use the software dongle on different
machines by removing and placing the dongle on other machines.
FPSLIC STK594 User Guide
3-1
Rev. 2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing System Designer
3.2
System Designer This installation assumes that you have no previous version of System Designer
Installation
installed in your machine. If you have a previous version of the software installed or you
need step-by-step installation instructions, please refer to the System Designer “Installa-
tion, Licensing and Troubleshooting” tutorial available on the Atmel web site.
1. Insert the supplied System Designer CD-ROM into the computer. If the CD does
not automatically start, execute SETUP.EXEfrom the CD.
2. From the CD Browser, select Install Products and select System Designer. The
System Designer installation will perform a full installation, as there are no
optional components.
Note: Do not install System Designer to a directory name that contains spaces, other-
wise improper opperation will occur.
Note: When you reach the portion of the System Designer installation prompting
about licensing, you should select one of two options, either Custom or Skip.
Select Custom if you already have a valid license and follow the instructions
Skip if you do not have a license and follow the instructions in Section 3.4.1
Note: AVR Studio version 3.2 or higher is required for STK500/STK594 support.
3.3
3.4
Configuration
Programming
System (CPS)
Installation
From the CD Browser, select Install Products and select CPS for AT17 Devices. This
will install the CPS utility, which is used to program the AT17 and ATFS series configu-
ration memories found on the STK594.
Note: When installing the CPS utility, it is necessary to install the software in an
account with Administrator privileges if the operating system is WindowsNT or
Windows 2000/XP.
System Designer The licensing of System Designer is for the Mentor Graphics tools. You can use System
Licensing
Designer without a valid license, however you will not be able to use ModelSim®,
LeonardoSpectrum™ or Co-Verification.
The typical license is based on the hostID of your Network Interface Card (NIC). If you
prefer to use a dongle-based license, it is necessary that you purchase a Security Don-
gle from Atmel (Atmel Part Number: ATDH94DNG).
The instructions below describe the configuration of a NIC-based license. If you request
a dongle-based license, you will receive instructions on how to configure the license with
the dongle. If you wish to use a single license for multiple machines, it is necessary to
purchase a Security Dongle.
3.4.1
Requesting a
System Designer
License
Prior to obtaining a license for System Designer, it is necessary to first install the System
Designer software suite. During installation, System Designer creates the file
LMUTIL.TXT, which is found in the C:\SystemDesigner\ETCdirectory, assuming a
default installation. The LMUTIL.TXTfile contains the hostID of your NIC, and is com-
posed of a combination of twelve alphanumeric characters.
Once you have installed System Designer, proceed to the FPSLIC section of the Atmel
web site and click on the Request License button, alternatively the direct link for the
Note: The Serial Number is located on the white sticker on the underside of the
STK594 board or on the System Designer case.
3-2
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing System Designer
3.4.2
Configuring the
System Designer
License
1. Once you have received your System Designer license from Atmel, place the file
in the C:\SystemDesignerdirectory.
2. Launch the Mentor Graphics License Configuration Utility from Start > Programs
> Atmel > Mentor Graphics Licensing > Configure Licensing.
3. Follow the on-screen instructions. When it prompts you to select Configuration
Option, choose 3.
4. Define the Product License Location and press Next. Use the full path and file-
name when defining the license location, for example
C:\SystemDesigner\fpslic.dat. If you used a different path and/or file-
name, make the necessary changes.
Note: If you are using Windows 95/98/Me it is necessary to reboot the machine prior
to running the System Designer software.
3.4.3
Testing the System
Designer License
Once you have configured your license, you can test it by invoking the Mentor Graphics
programs that require a license.
1. Launch ModelSim from Start > Programs > Atmel > ModelTech > ModelSim. If
ModelSim launches without any licensing errors, the ModelSim license has been
successfully installed.
2. Launch LeonardoSpectrum from Start > Programs > Atmel > Leonardo Spec-
trum > Leonardo Spectrum. If LeonardoSpectrum launches without any licensing
errors, then the LeonardoSpectrum license has been successfully installed.
3.4.4
Troubleshooting
You can access the trouble shooting guide from Start > Programs > Atmel > Trouble
Shooting Guide.
FPSLIC STK594 User Guide
3-3
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing System Designer
3-4
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Section 4
Using System Designer
This tutorial will guide you through the required steps for designing and programming
AT94K series devices using System Designer.
4.1
Preparing the
Example Files
Before starting the tutorial, a few preparations need to be performed:
1. Create a STK594directory under C:\SystemDesigner\Designs\.
2. Download STK594.ZIPfrom the FPSLIC software page of the Atmel web site
and copy STK594.ZIPto C:\SystemDesigner\Designs\STK594.
3. Extract the contents of the STK594.ZIPfile to
C:\SystemDesigner\Designs\STK594.The contents of the zip file are
shown in Table 4-1.
Table 4-1. STK594.ZIP
File
Description
AT94KDEF.INC
COUNTER.PIN
COUNTER.V
COUNTER.VHD
STK594.ASM
Atmel AVR Assembler AT94K FPSLIC Include File
FPGA Pin Lock File
Top Level FPGA Verilog® Counter Source File
Top Level FPGA VHDL® Counter Source File
Atmel AVR Assembler Source File
4.2
Description
The design in this tutorial is composed of a simple AVR microcontroller program and a
loadable counter implemented in the FPGA. When the counter reaches the terminal
value, an interrupt to the microcontroller will be generated using the counter’s carry-out
(RCO) signal. The interrupt is active Low and must be held for three clock cycles prior to
its acknowledgement by the microcontroller. During the Interrupt Service Routine (ISR)
the microcontroller increments the count of interrupt occurrences and places the incre-
mented data on PORTD and the AVR-FPGA Data Bus, triggering the counter’s LOAD
signal. Once the counter has been loaded, counting will commence and the process will
be repeated. Figure 4-1 shows a simplified block diagram of the tutorial design.
FPSLIC STK594 User Guide
4-1
Rev. 2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-1. Tutorial Design Block Diagram
PORTD
AVR
Microcontroller
FPGA
8-bit Counter
IOSELA0
FPGA I/O SELECT 0
AVR Write Enable
LOAD
FIOWEA
aWE
AVR Data Bus 8-bit
D[7:0]
ENABLE
RESET
Q
INTA0
RCO
FPGA Interrupt 0
Global Clock 5
GCLK5
CLOCK
4.3
Design Flow
The design presented in this tutorial, only performs the required steps for designing and
programming an AT94K series device. For more information on the optional steps (i.e.
Simulation and Co-verification) please consult the FPSLIC application notes available
more information on a specific step, consult the appropriate section within this tutorial.
Figure 4-2. Design Flow
Microcontroller
Assembly
AVR <> FPGA
Interface
FPGA
Place & Route
Bitstream
Generation
HDL Synthesis
4.4
Creating a
Project
This tutorial uses the New Project Wizard to assist with the creation of the project. The
New Project Wizard allows you to choose your Project Directory, Target Device, and
desired Tool Flow.
1. Launch System Designer from the desktop icon, or by pointing to Start > Pro-
grams > Atmel > SystemDesigner.
2. Create a new project by selecting New from the Project menu and then pressing
4-2
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-3. New Project Wizard Window - Step 1 of 6
Figure 4-4. New Project Wizard Window - Step 2 of 6
4. Set the Project Directory to C:\SystemDesigner\Designs\STK594, name
the project TUTORIALand press Next. The part selection window appears, see
FPSLIC STK594 User Guide
4-3
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-5. New Project Wizard Window - Step 3 of 6
5. Select AT94K40AL-25DQC from the parts list as this is the part found on the
STK594 development board, and press Next. The software tool flow window
opens, see Figure 4-6.
Figure 4-6. New Project Wizard Window - Step 4 of 6
6. Select either Mentor - VHDL or Mentor - Verilog as the Tool Flow and press Next.
will assume Mentor - Verilog has been selected.
4-4
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-7. New Project Wizard Window - Step 5 of 6
7. Select Done with Parts. System Designer supports multiple part partitioning,
however for this tutorial only one part will be used. Press Next. The last step of
Figure 4-8. New Project Wizard Window - Step 6 of 6
8. Press Finish to exit the New Project Wizard. The project window now contains
the TUTORIALdesign, see Figure 4-9.
FPSLIC STK594 User Guide
4-5
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-9. Project Window
9. From the System Designer desktop, click on the Part Graphic (see Figure 4-9) to
switch to the Design Flow Manager, see Figure 4-10.
Figure 4-10. Design Flow Manager
The Design Flow Manager shows the steps available for designing with Atmel FPSLIC
devices. The red and blue arrows show the dependencies between the various stages
of development. This tutorial will only show the minimum steps in order to complete a
design. The remainder of the steps involves simulation and co-verification. For further
information on simulation and co-verification, please consult the “Quick Start Tutorial”
available on the Atmel web site.
4-6
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
4.5
Assembling the
Microcontroller
Source Code
The Atmel AVR Assembler translates assembly source code into object code. The gen-
erated object code can then be used as an input to a simulator, emulator such as the
Atmel AVR JTAG In-Circuit Emulator (ICE), or used to program the target device. The
Assembler generates fixed code allocations, therefore no linking is necessary.
1. Press the SW Compiler button to open the Atmel AVR Assembler.
2. Go to the File menu and choose Open.
3. Browse to the C:\SystemDesigner\Designs\STK594directory and select
STK594.ASM.
4. Press Assemble and close the Atmel AVR Assembler if assembly was
successful.
Note: If assembly was not successful, make sure the include file AT94KDEF.INCis in
the design directory.
For design entry using assembly language, consult the AT94K datasheet for a summary
of instructions supported by the FPSLIC devices. The complete “AVR Instruction Set
Nomenclature” describes each instruction in detail and has been installed as part of the
System Designer Tool. The AVR Instruction Set Nomenclature and FPSLIC datasheet
can be accessed from the Help menu and choosing Online Resources > Resources.
4.6
Synthesizing the 1. Synthesis translates the VHDL or Verilog source code into gate-level technology-
specific file for use with the target FPGA Place and Route tool.
FPGA Source
File
2. Press the Synthesis Tool button. A dialog box to add VHDL files appears, see
Figure 4-11.
Figure 4-11. Add VHDL Files Dialog Box
3. Press yes. A file selection window appears.
4. Select COUNTER.Vand press OK. LeonardoSpectrum opens.
5. Close the Tip of the Day dialog if shown. Leonardo automatically selects Atmel
AT94K as the Technology and lists COUNTER.Vunder Input. Leonardo® also lists
COUNTER.EDFunder Output.
FPSLIC STK594 User Guide
4-7
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-12. Leonardo Spectrum, Successful Synthesis
7. Close Leonardo Spectrum, when prompted to save your project press No.
4.7
AVR-FPGA
Interface
The AVR-FPGA Interface dialog provides a means for making the connections between
the embedded FPGA and AVR microcontroller.
1. Press the AVR-FPGA Interface button.
2. Select counter and press OK when prompted for Top-Level Entity. The Select
Figure 4-13. Select Ports Dialog
4-8
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
3. Connect the counter's LOAD signal to FPGA-AVR I/O Select 0.
4. Select the AVRIoSelects tab on the right-hand side of the dialog box.
5. Select the LOAD signal from the Input Design Ports and select IOSELA0 from
the AVRIoSelects.
6. Press Connect.
Table 4-2. FPGA-AVR Interface Connections
FPGA I/O
LOAD
RCO
FPGA-AVR I/O
OSELA0
INTA0
Select Ports Tab
AVRIoSelects
FPGAInterrupts
DataFromAVR
AVRControls
D(7:0)
aWE
ADINA(7:0)
FIOWEA
GCLK5
CLK
AVRClocks
8. Uncheck Generate Template Test Bench File on the bottom left-hand side of the
Select Ports dialog. Since we are not performing co-verification, it is not neces-
sary to generate the pre-layout test bench file.
9. Press OK.
4.8
FPGA Place and
Route
The Figaro Integrated Development System (IDS) is used as the FPGA Place &
Route tool. Figaro takes the gate-level technology-specific file generated by the syn-
thesis tool and partitions, places, and routes the FPGA design.
1. Press the Figaro IDS button to open the FPGA Place & Route Tools Settings dia-
log, see Figure 4-14.
Figure 4-14. FPGA Place & Route Tools Settings Dialog
FPSLIC STK594 User Guide
4-9
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
2. Select Open EDIF Netlist and Browse to select COUNTER.EDF, then press OK.
Figaro should open and complete the Open, Map, and Parts steps automatically,
Figure 4-15. Figaro Batch Options Dialog
The Figaro Batch Options allows for the setting of Design Constraints (i.e. Pin Lock-
ing) and Place and Route quality:
Design Constraints
a. Press Import Constraints. Alternatively, we could have used the Assign Pin
Locks GUI to perform the pin locking, but since a *.PINfile is supplied, the
import method will be used.
b. Select COUNTER.PINand press OK.
Place and Route
a. Use the default setting for Quality. Quality sets the trade-off between Figaro’s
speed and the efficiency of the Place & Route result, see the online help for
further information.
b. Use the default setting for Timing Driven Design. Checking the Timing Driven
Design box allows Figaro to take account of critical paths when performing
the Place & Route, see the online help for further information.
c. Press Compile, once completed the Figaro IDS Compile button will turn
green.
d. Select Exit from the File menu, when prompted to save your design select
Yes.
4-10
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
4.9
Bitstream
Generation
The Bitstream Generator takes the outputs from both the FPGA and AVR compilers,
and generates a single programming file for use in configuring the AT94K device.
1. Press Bitstream Generation to open the bitstream utility. The FPSLIC Control
Figure 4-16. FPSLIC Control Register Settings Dialog
2. Check the Include FPGA Bitstream box and select COUNTER.BSTby pressing
Browse.
3. Check the Include AVR Hex File box and select STK594.HEXby pressing
Browse.
FPSLIC STK594 User Guide
4-11
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-17. Control Register Settings Dialog
5. Press OK to generate the combined bitstream file.
Note: It is possible to generate a bitstream for only the FPGA or AVR as you may only
want to program that portion of the FPSLIC device. To include only the AVR
HEX file, simply uncheck the Include FPGA Bitstream box. Programming only
the FPGA portion can be done in a similar fashion.
4.10
Programming
and Design
Execution
The programming file generated by the Bitstream Generator is used to program the con-
figuration memory. When the FPSLIC requests configuration data after a Reset or
Power-On-Reset, the data is clocked out serially.
4.10.1
Hardware Setup
Before programming the configurator and verifying the tutorial design, a few prepara-
tions need to be performed prior to its execution on hardware.
1. Connect the PC’s parallel port to the 25-pin connector of the ATDH2225 Pro-
gramming Dongle.
2. Connect the 10-pin ISP header on the STK594 to the 10-pin ribbon cable of the
ATDH2225. The ATDH2225 is keyed to assure proper orientation, see Figure 4-
18.
4-12
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-18. In-System Programming
3. Place the Programming switch in the PROG position.
4. Using a 10-wire ribbon cable from the STK500, connect PORTD to the LEDS.
5. Using a 2-wire cable from the STK500, connect SW0 and SW1 to FPSLIC pins
177 and 178, respectively.
6. Connect the Power Supply from an AC outlet to the power connector on the
STK500 development board.
7. Turn on the STK500.
Note: Prior to providing power to the STK500 development board it is necessary to
adjust the VTARGET supplied by the STK500 to the STK594, for more informa-
tion on this adjustment please refer to Section 2.1.1.
4.10.2
Software Setup
The CPS utility allows for the programming, reading, and verification of data. CPS sup-
ports Atmel’s AT17F, ATFS and AT17LV series of configuration memories.
FPSLIC STK594 User Guide
4-13
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Using System Designer
Figure 4-19. CPS
2. Select /P: Partition, program, and verify from an Atmel file under Procedure.
3. Select FPSLIC_COUNTER.BSTunder Input File.
4. Select OUT.BSTunder Output File.
5. Select 1M under EEPROM Density.
6. Select Low under Reset Polarity.
7. Select AT40K/AT94K under FPGA Family.
8. Select LPT1 under COMM Port (assuming LPT1 is the parallel port connected to
the ATDH2225 programming adapter).
9. Select Slow under Data Rate.
10. Select Low under A2 Bit Level.
11. Press Start Procedure. When finished a statistics report will be provided in the
CPS log window.
Note: If the CPS utility is being launched for the first time, the clock calibration dialog
will be displayed. Press Yes to proceed with calibration and select High for
accurate calibration. The Checksum is the number of data bits found in the BST
file, and it can be used to check if the data is corrupted during programming.
4.11
Running the
Design
Once programming has completed, it is necessary to move the Programming
Switch to the RUN position for configuration of the FPSLIC device to occur. If the
LEDs on the STK500 begin to count, the configuration has occurred. If the configu-
ration does not occur, press the RESET button found on the STK594 board to
initiate a configuration download. Alternatively, power-cycling the STK500 will also
initiate a configuration download.
4-14
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Section 5
Technical Specifications
System Unit
Physical Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.125” x 2.75”
Weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 oz.
Operating Conditions
Voltage Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VCC = 3.3V, VDD = 1.8/3.3V
Connections
Serial Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-pin D-SUB Female
Serial Communications Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 kbps
FPSLIC STK594 User Guide
5-1
Rev. 2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Technical Specifications
5-2
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Compl
Sch
5
4
3
2
1
c
SW1
1
3
4
6
TOSC1
TOSC2
2
5
TOSC1
TOSC2
D
C
B
A
D
C
B
A
SW DPDT
R1
200K
R2
10M
Y1
32.768 kHz
C1
33 pF
C2
27 pF
Y2
SW2
XT1
XT2
1
3
4
6
XT1
XT2
XTAL1
XTAL2
2
5
XTAL1
XTAL2
5
OUT
OSC8
SW DPDT
Title
ATSTK594 : Clock Circuitry
Size A Document Number
CHW5472
Rev A
Date:
Friday, April 26, 2002
2
Sheet 1of 6
5
4
3
1
Download from Www.Somanuals.com. All Manuals Search And Download.
Complete Schematics
5 2
5 1
5 0
4 9
4 8
4 7
4 6
4 5
4 4
4 3
4 2
4 1
4 0
3 9
3 8
3 7
3 6
3 5
3 4
3 3
3 2
3 1
3 0
2 9
2 8
2 7
2 6
2 5
2 4
2 3
2 2
2 1
2 0
1 9
1 8
1 7
1 6
1 5
1 4
1 3
1 2
1 1
1 0
9
N C
N C
N C
C O N
N C
G N D
( I / O ) G C K 4
5 2
5 1
5 0
4 9
4 8
4 7
4 6
4 5
4 4
4 3
4 2
4 1
4 0
3 9
3 8
3 7
3 6
3 5
3 4
3 3
3 2
3 1
3 0
2 9
2 8
2 7
2 6
2 5
2 4
2 3
2 2
2 1
2 0
1 9
1 8
1 7
1 6
1 5
1 4
1 3
1 2
1 1
1 0
1 5 7
1 5 8
1 5 9
1 6 0
1 6 1
1 6 2
1 6 3
1 6 4
1 6 5
1 6 6
1 6 7
1 6 8
1 6 9
1 7 0
1 7 1
1 7 2
1 7 3
1 7 4
1 7 5
1 7 6
1 7 7
1 7 8
1 7 9
1 8 0
1 8 1
1 0 4
1 0 3
1 0 2
1 0 1
C O N
T E S T C L O C K
G N D
I / O
( I / O ) G C K 7
I / O
I / O
( I / O ) C S 1
G N D
G N D
G C K 4
1 0 0
I / O
I / O
9 9
9 8
9 7
9 6
9 5
9 4
9 3
9 2
9 1
9 0
8 9
8 8
8 7
8 6
8 5
8 4
8 3
8 2
8 1
8 0
7 9
7 8
7 7
7 6
7 5
7 4
7 3
7 2
7 1
7 0
6 9
6 8
6 7
6 6
6 5
6 4
6 3
G C K 7
I / O
I / O
C S 1
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
G N D
G N D
I / O
G N D
G N D
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
G N D
V D D
I / O
G N D
V D D
( I / O ) I N I T
I / O
G N D 1 8 2
V D D
G N D
V D D
I N I T
1 8 3
1 8 4
1 8 5
1 8 6
1 8 7
1 8 8
1 8 9
1 9 0
1 9 1
1 9 2
1 9 3
1 9 4
1 9 5
1 9 6
1 9 7
1 9 8
1 9 9
2 0 0
2 0 1
2 0 2
2 0 3
2 0 4
2 0 5
2 0 6
2 0 7
2 0 8
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
( I / O ) T C K
( I / O ) T M S
I / O
T C K
T M S
I / O
G N D
G N D
I / O
G N D
G N D
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
I / O
( I / O )
( I / O )
L D C / T D O
6 2
T D O L D C
I / O
9
8
7
6
5
4
3
2
1
6 1
8
I / O
6 0
7
I / O
5 9
6
H D C / T D I
5 8
I
D T
H D C
G C K 3
M 2
5
( I / O ) G C K 8
V C C
N C
N C
N C
( I / O ) G C K 3
M 2
V C C
N C
N C
5 7
5 6
5 5
5 4
5 3
G C K 8
V C C
4
3
V C C
2
1
FPSLIC STK594 User Guide
6-3
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Complete Schematics
6-4
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
5
4
3
2
1
VCC
VCC
D
C
B
A
D
C
B
A
R5
2K7
R6
2K7
CCLK
cSCL
D0
U2
D0
CCLK
cSCL
cSDA
2
1
6
cSDA
CLK
DATA
CEO
INIT
SER_EN
3
7
INIT
cSER_EN
RESET/OE
SER_EN
cSER_EN
CON
4
CON
CE
VCC
AT17LV010/LAP
R7
4K7
J14
1
3
5
7
9
2
4
6
8
10
GND
VCC
SW3
12
11
CON10A
10
9
D1
RESET
1
2
8
5
2
RESET
7
1N4001
6
C14
0.003 uF
4
3
1
VCC
SW 4PDT
SW4
C15
0.1 uF
Compl
Title STK594 : In-System Programming Circuitry
Size A Document Number CHW5472
Rev A
Sch
Sheet 4 of 6
Date: Friday, April 26, 2002
2
5
4
3
1
c
Download from Www.Somanuals.com. All Manuals Search And Download.
Compl
5
4
3
2
1
Sch
c
D
C
B
A
D
C
B
A
VCC VDD VOUT
VCC
U3
VOUT
J15
VCC
VDD
VOUT
1
2
3
3
1
2
VIN VOUT
ADJ/GND
CON3
C16
10 uF
C17
10 uF
LT1117-1.8/SOT
TP1
TP2
TP3
GND
VCC
VDD
1
1
1
T POINT F
T POINT F
T POINT F
Title STK594 : Split Power Rail Circuitry
Size A Document Number CHW5472
Rev A
Sheet 5 of 6
Date: Friday, April 26, 2002
2
5
4
3
1
Download from Www.Somanuals.com. All Manuals Search And Download.
5
4
3
2
1
D
C
B
A
D
C
B
A
VCC
C18
0.1 uF
P1
GND
5
9
4
8
3
7
2
6
1
U4
CTS
RXD
9
12
8
13
CTS
RXD
R2OUT
R1OUT
R2IN
R1IN
TXD
RTS
11
10
14
7
TXD
RTS
T1IN
T2IN
T1OUT
T2OUT
C19
0.1 uF
1
3
4
5
C1+
C1-
C2+
C2-
CONNECTOR DB9
2
6
V+
V-
C20
0.1 uF
MAX3232
C21
0.1 uF
VCC
C22
0.1 uF
Compl
Title STK594 : RS-232 Spare #2 Circuitry
Size A Document Number CHW5472
Rev A
Sch
Date: Friday, April 26, 2002
2
Sheet 6 of 6
5
4
3
1
c
Download from Www.Somanuals.com. All Manuals Search And Download.
Complete Schematics
6-8
FPSLIC STK594 User Guide
2819A–FPSLI–07/02
Download from Www.Somanuals.com. All Manuals Search And Download.
Atmel Headquarters
Atmel Operations
Corporate Headquarters
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 487-2600
Memory
RF/Automotive
Theresienstrasse 2
Postfach 3535
74025 Heilbronn, Germany
TEL (49) 71-31-67-0
FAX (49) 71-31-67-2340
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 436-4314
Europe
Atmel Sarl
Route des Arsenaux 41
Case Postale 80
CH-1705 Fribourg
Switzerland
Microcontrollers
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 436-4314
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
TEL (41) 26-426-5555
FAX (41) 26-426-5500
La Chantrerie
BP 70602
44306 Nantes Cedex 3, France
TEL (33) 2-40-18-18-18
FAX (33) 2-40-18-19-60
Asia
Room 1219
Chinachem Golden Plaza
77 Mody Road Tsimhatsui
East Kowloon
BP 123
38521 Saint-Egreve Cedex, France
TEL (33) 4-76-58-30-00
FAX (33) 4-76-58-34-80
ASIC/ASSP/Smart Cards
Zone Industrielle
Hong Kong
TEL (852) 2721-9778
FAX (852) 2722-1369
13106 Rousset Cedex, France
TEL (33) 4-42-53-60-00
FAX (33) 4-42-53-60-01
Japan
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906
TEL 1(719) 576-3300
9F, Tonetsu Shinkawa Bldg.
1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033
Japan
FAX 1(719) 540-1759
TEL (81) 3-3523-3551
FAX (81) 3-3523-7581
Scottish Enterprise Technology Park
Maxwell Building
East Kilbride G75 0QR, Scotland
TEL (44) 1355-803-000
FAX (44) 1355-242-743
Atmel Programmable SLI Hotline
e-mail
(408) 436-4119
Atmel Programmable SLI e-mail
Web Site
FAQ
Available on web site
© 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®, AVR Studio® and Cache Logic® are the registered trademarks of Atmel; FPSLIC™ and Sys-
®
®
®
tem Designer™ are the trademarks of Atmel. Mentor Graphics , ModelSim and Leoanrdo are the regis-
tered trademarks of Mentor Graphics Corporation; LeoanrdoSpectrum™ is the trademark of Mentor Graphics
Corporation; Verilog is the registered trademark of Gateway Design Automation Corporation; VHDL is the
registered trademark of Cadence Design Systems Inc. Microsoft and Microsoft NT are the registered
trademarks of Microsoft Corporation.
Printed on recycled paper.
2819A–FPSLI–07/02
®
®
®
®
/xM
Other terms and product names may be the trademarks of others.
Download from Www.Somanuals.com. All Manuals Search And Download.
|