Atmel STK594 manual Section Using System Designer, Description

Page 17

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.1Preparing the Before starting the tutorial, a few preparations need to be performed:

Example Files 1. Create a STK594 directory under C:\SystemDesigner\Designs\.

2.Download STK594.ZIP from the FPSLIC software page of the Atmel web site and copy STK594.ZIP to C:\SystemDesigner\Designs\STK594.

3.Extract the contents of the STK594.ZIP file 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

Atmel AVR Assembler AT94K FPSLIC Include File

 

 

COUNTER.PIN

FPGA Pin Lock File

 

 

COUNTER.V

Top Level FPGA Verilog® Counter Source File

COUNTER.VHD

Top Level FPGA VHDL® Counter Source File

STK594.ASM

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

Image 17
Contents STK594 User Guide Page Table of Contents Technical Specifications STK594 Top Module for STK500 Section IntroductionFeatures Adjusting Vtarget for the AT94K Devices Section Using the STK594 Top ModuleConnecting the STK594 to the STK500 Starter Kit Preparing the STK500 for Use with the STK594Port E Port ConnectorsJtag Second RS-232C Port Tosc SwitchUniversal Asynchronous Receiver Transmitter Uart Interrupts Two-Wire Serial Interface TwsiExternal Xtal Switch Split Power Supply SupportRequirements Section Installing System DesignerSystem Licensing System Designer InstallationConfiguration Programming System CPS Installation Configuring the System Designer License Installing System Designer Description Section Using System DesignerCreating a Project Design FlowUsing System Designer Using System Designer Using System Designer Using System Designer File Assembling the Microcontroller Source CodeFpga Source Interface AVR-FPGAFpga I/O FPGA-AVR I/O RoutePlace and Route Design ConstraintsBitstream Generation Programming and Design Execution Hardware SetupUsing System Designer Select Low under A2 Bit Level Running the DesignSystem Unit Section Technical SpecificationsOperating Conditions ConnectionsTechnical Specifications Section Complete Schematics Complete Schematics CON52 GND AUXI0 AUXO0 AUXI1 Cclk VCC VDD Vout Schematics Complete Schematics Atmel Headquarters