+ All Categories
Home > Documents > Starter Kit User Guide · 2004. 8. 21. · megaAVR™ Starter Kit User Guide 1-1 Section 1...

Starter Kit User Guide · 2004. 8. 21. · megaAVR™ Starter Kit User Guide 1-1 Section 1...

Date post: 03-Feb-2021
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
29
R Starter Kit User Guide ---------------------------------------------------------------- February 1999
Transcript
  • R

    Starter Kit User Guide----------------------------------------------------------------

    February 1999

  • Table of Contents

    Section 1Introduction ........................................................................................... 1-1

    1.1 Device Support .........................................................................................1-1

    Section 2Getting Started...................................................................................... 2-1

    2.1 Unpacking the System ..............................................................................2-12.2 System Requirements...............................................................................2-1

    Section 3Connecting the System......................................................................... 3-1

    Section 4Hardware Description ........................................................................... 4-1

    4.1 Jumpers, Links and their Functions ..........................................................4-24.2 External Connections................................................................................4-2

    Section 5Installing the Software .......................................................................... 5-1

    5.1 Windows 95 ..............................................................................................5-15.2 Windows 3.1 .............................................................................................5-1

    Section 6How to Use the Software ...................................................................... 6-1

    6.1 Projects .....................................................................................................6-16.2 Files ..........................................................................................................6-1

    Section 7Programming Using the Board ............................................................. 7-1

    7.1 Device Orientation ....................................................................................7-17.2 Voltage Selection ......................................................................................7-17.3 Power and Lead Connections...................................................................7-2

    Section 8Brown-Out Detector .............................................................................. 8-1

    Section 9Board Applications................................................................................ 9-1

    9.1 Using Switches and LEDs.........................................................................9-19.2 Using External Connections......................................................................9-1

    i

  • Table of Contents

    ii

    9.2.1 Misc. Header ......................................................................................9-2

    9.3 Using Analog Functions ............................................................................9-2

    9.3.1 Analog Port: Marked on Board ...........................................................9-2

    9.3.2 Using Internal Reference....................................................................9-2

    9.3.3 Using External Reference...................................................................9-3

    9.4 Using External RAM..................................................................................9-3

    9.4.1 RAM Recommendations.....................................................................9-3

    9.4.2 RAM Socket Pin Layout......................................................................9-3

    9.4.3 Address Latch.....................................................................................9-3

    9.5 Using LCD Connections............................................................................9-39.6 Using RS232.............................................................................................9-49.7 Programming In-System ...........................................................................9-49.8 ISP Header Layout....................................................................................9-59.9 Interface Using Resistors..........................................................................9-59.10 Using an Analogue Multiplexer IC.............................................................9-5

    9.10.1 Using Real Time Clock .......................................................................9-6

  • megaAVR™ Starter Kit User Guide 1-1

    Section 1

    Introduction

    Welcome to the megaAVR™ Starter Kit.

    This system incorporates an applications board and in-system programming hardwarekey for programming AVR® devices in your application. Be sure to check theREADME.TXT file included with the software for installation information.

    1.1 Device Support The system software currently has support for the following devices.� ATmega603

    � ATmega603L

    � ATmega103

    � ATmega103L

    Software upgrades for new devices will be available in the AVR section of the Atmelwebsite, which is located at http://www.atmel.com.

  • Introduction

    1-2 megaAVR™ Starter Kit User Guide

  • megaAVR™ Starter Kit User Guide 2-1

    Section 2

    Getting Started

    2.1 Unpacking the System

    Contents of box:

    � Evaluation Board

    � Disk set consisting of AVR ISP software and STK300 Application Builder

    � In-System Programming (ISP) Dongle

    � ISP Ribbon Cable

    2.2 System Requirements

    The minimum hardware and software requirements are:

    � 80386 Processor or Above

    � 1MB Ram

    � 1MB Free Hard Disk Space

    � Windows 3.1 or Windows 95

  • Getting Started

    2-2 megaAVR™ Starter Kit User Guide

  • megaAVR™ Starter Kit User Guide 3-1

    Section 3

    Connecting the System

    A Power Supply is required with a standard 2.1mm barrel connector. It can be AC 7 -12V or DC 9 - 15V. The connector is inserted into the power connection socket asshown, above.

    The programming lead supplied is fitted into the Dongle case and the other end isinserted into the programming interface on the board as shown.

    The Dongle case is connected to one of the printer ports on the PC. If this is not LPT1,then you will need to change the printer port setting in the software—see software sec-tion for details.

    PLUG HEADER ON LEAD INTO PROGRAMMING INTERFACE - KEY WAY GIVES ORIENTATION

    CONNECT LEADSUPPLIED TO DONGLE

    AND INSERT INPC PRINTER PORT

    POWER SUPPLY9 - 15V DC7 - 12V AC

    ON-OFF SWITCH

    RS 232 CONNECTORNOT USED FORPROGRAMMING

    POWER CONNECTOR5.5/2.1 BARREL

  • Connecting the System

    3-2 megaAVR™ Starter Kit User Guide

  • Section 4

    Hardware Description

    The main features of the board are shown in the diagram below.

    Note: There are a number of jumpers on the board which are used to select different operations and voltages. The default jumper settings are for programming oper-ations at 5V JP1 Closed, with brown-out also set to 5V JP2 Open. To carry out other operations, some jumpers may have to be removed—refer to the relevant section for details. A full list of the jumpers and links are given in the following table.

    LCD CONNECTOR

    ANALOG REFERENCEVOLTAGE ADJUSTMENT

    PLUG IN MEGABOARD HERE

    ANALOG I/P

    PORT A DIGITAL

    4 MHz CRYSTAL

    PORT B HEADER

    PORT C HEADER

    PORT D JUMPERSDISABLE SWITCHES

    PORT D HEADER

    MISC. HEADERFOR NON-PORT PINS

    JP2 - JUMPER FOR BROWN-OUT AT 2.9V OR 4.5V

    8 LEDS ONPORT B

    8 SWITCHESON PORT DJP1 JUMPER FOR

    3.3 OR 5V VCC SELECT

    ON-OFFSWITCH

    POWER INPUT9-15V DC

    OR 7-12 AC

    RS232

    PORT B JUMPERSDISABLE LEDS

    POWER ON ANDPROG LIGHTS

    SELECTOR FOR RS232

    ISP INTERFACE

    ADDRESS LATCHIC FOR RAM

    EXTERNALSRAM SOCKET

    EXTERNALMEMORY EXPANSION

    LCD CONTRASTADJUSTMENT

    LK1 - CUT FOR A/DEXTERNAL REFERENCE

    O/P PINS FOR -VESUPPLY TOOPAMP ETC.

    PORT E HEADER

    megaAVR™ Starter Kit User Guide 4-1

  • Hardware Description

    4.1 Jumpers, Links and their Functions

    4.2 External Connections

    All Ports are brought out to edge of board on to headers. Each header has a VCC andGround pin for power supply to external circuits. Port F is the Analog input port and is onthe header marked “Analog”. There is an extra six-pin header for miscellaneous func-tions—Read, Write, ALE, Reset, Ground and VCC.

    See sections “Using External Connections” on page 9-1 and “Using Analog Functions”on page 9-2 for details.

    Jumper Function Open Closed Default

    JP1 Voltage select 5V 3.3V Open

    JP2 Brown-out select 2.9V 4.5V Closed

    PE0 RS232 RXD Port E.0 RXD Port E.0

    PE1 RS232 TXD Port E.1 TXD Port E.1

    Port B LEDs LEDs Disabled LEDs Enabled Closed

    Port D Switches Switches Disabled Switches Enabled Closed

    LK1 Analog Reference

    If LK1 cut, then EXTERNAL REF from header

    ONBOARD POT Closed

    CUT Under Board

    LCD Contrast If Cut, add extra resistor

    Contrast Pot Closed

    4-2 megaAVR™ Starter Kit User Guide

  • megaAVR™ Starter Kit User Guide 5-1

    Section 5

    Installing the Software

    5.1 Windows 95 To install the software, insert the supplied disk or CD-ROM into your computer and per-form the following steps:

    1. Click on the “Start” button.

    2. Select “Settings”.

    3. Select “Control Panel”.

    4. Choose “Add/Remove Programs”.

    5. Click the “Install” button.

    6. Follow On-Screen prompts.

    The software will then be installed onto your computer and an Icon will be added to yourstart menu.

    5.2 Windows 3.1 Choose “RUN” from Program Manager, and enter A:\SETUP.EXE as the filename. Press the “OK” button and the software installation program will begin.

    The software will then be installed onto your computer and an Icon and Program Groupwill be added to Program Manager.

    Note: On some PCs, especially laptops, programming problems may occur if the BIOS Parallel Port settings are set to EPP Version 1.7. If programming prob-lems do happen, ensure that the Parallel Port settings in your BIOS are set to EPP V1.9 not V1.7. This applies to both Windows 95 and Windows 3.1 based PCs.

    In the unlikely event that you have any problems installing the software or suspect thatyou have faulty media, please contact the Atmel Starter Kit hotline:

    Telephone Number: (44) 1970 621 049Fax Number: (44) 1970 621 040Email: [email protected]

  • Installing the Software

    5-2 megaAVR™ Starter Kit User Guide

  • Section 6

    How to Use the Software

    The software is fully context sensitive. This means that pressing F1 at any time will bringup help information about the current option that you have selected.

    Please note that the toolbar icons referred to in the text have ToolTip’s, so if you want toknow the function of any particular button, hold your mouse pointer over the button inquestion and its function will be displayed.

    � Starting a Project

    � In-System Programming (ISP)

    � Hardware Requirements

    � Projects

    � Data Files

    � Editing Data

    6.1 Projects If you have used a high-end professional development system, you will be familiar withthe project concept. Essentially, this is a collection of details and data which are man-aged by the program on your behalf. In the AVR, you have both Program Memory andnon volatile Data Memory (EEPROM), with various security and device options. Theproject manager keeps this information together for you so you don't have to rememberand reload all the various files every time you use the programmer.

    The project manager will allow you to store information like the project name and theproject identifier. It also has a small notepad for you to store comments about theproject.

    Before you can start a programming session, you must either open an existing project orstart a new project. You can open a project, or create a new one, by either going to theProject menu and selecting “New” or “Open”, or by using the “New Project” or “OpenProject” buttons on the toolbar.

    6.2 Files Once a project is open, you can load the files that you need to program into the device.Files may be loaded by either using the “Load” command in the File menu or by usingthe “Open” icon on the toolbar.

    The program will automatically decode your files whether they are in Intel Hex format,Atmel Generic, Binary or Motorola S record. The file you choose will be loaded into thewindow, then it is displayed on the top of the desktop. Therefore, if you have theEEPROM Data Memory window on top, it will load the data into that window.

    megaAVR™ Starter Kit User Guide 6-1

  • How to Use the Software

    6-2 megaAVR™ Starter Kit User Guide

  • Section 7

    Programming Using the Board

    7.1 Device Orientation

    Before programming a device using the programming module, the device adapter mustbe inserted correctly into the programming unit. The adapter itself has a corner cut-off,which locates pin 1 of the device and matches the marking on the main unit. Thisadapter should be prefitted, but can be replaced if the device programming life isexceeded—refer to your supplier to obtain a new device adapter.

    The orientation of the device is vitally important. If you put it in the wrong way then youmay damage the device. DO NOT PLUG A DEVICE ADAPTER IN WITH THE POWERSWITCHED ON or you may damage it. Similarly, never remove the device adapter withthe power on.

    7.2 Voltage Selection

    Jumper JP1 is used to select either 3.3V or 5V programming.

    For VCC = 5V, remove jumper JP1 - jumper open

    For VCC = 3.3V, insert JP1 - jumper closed

    Jumper JP2 is used to set Brown-Out detector voltage.

    For Brown-Out = 4.5V, insert jumper JP2 - jumper closed

    For Brown-Out = 2.9V, remove jumper JP2 - jumper open

    This should be set to the same voltage as VCC. If VCC is set to 3.3V and Brown-Out is setto 4.5V, then the device will be held in reset and will NOT program. See “Brown-OutDetector” on page 8-1 for more details.

    JP1

    JP2

    megaAVR™ Starter Kit User Guide 7-1

  • Programming Using the Board

    7.3 Power and Lead Connections

    The 10-way programming lead is inserted in the box header—the key-way ensures cor-rect orientation. The computer connections are shown in “Connecting the System” onpage 3-1.

    The power supply 9-15V DC or 7-12V AC is plugged into the power connector 5.5/2.1Barrel.

    The Power On/Off switch is located next to the power connector. Insert the deviceadapter before switching the power on. The power on LED should light when the poweris correctly applied.

    Your hardware is now ready for programming. Refer to “How to Use the Software” onpage 6-1 for details of programming operations. A programming LED indicates program-ming is happening.

    7-2 megaAVR™ Starter Kit User Guide

  • megaAVR™ Starter Kit User Guide 8-1

    Section 8

    Brown-Out Detector

    The brown-out detector circuit is used to detect voltage drops. If a short glitch occurs inthe power, this circuit ensures that the processor resets properly rather than operatingrandomly.

    The brown-out detector must be set to the same voltage as the circuit voltage, VCC—3.3V or 5V. For 3.3V operation, jumper JP2 must be removed (jumper open) and for 5Voperation it must be closed.

    These values are approximate and may vary with temperature and other factors.

    Voltage Operating Voltage Hysteresis

    5 Volts 4.5 Volts 200 mV

    3.3 Volts 2.9 Volts 200 mV

  • Brown-Out Detector

    8-2 megaAVR™ Starter Kit User Guide

  • Section 9

    Board Applications

    9.1 Using Switches and LEDs

    The LEDs are connected through a 1K resistor network to Port B.

    The switches are connected to Port D.

    The switches and LEDs can be disconnected, if required. To use them, ensure that thejumpers labeled “Port B” and “Port D” are closed. The board is also marked with the portpin connection for each switch and LED.

    The ports must be correctly set in software as input or output. This is accomplished bysetting the direction control registers to 0 for input and 1 for output. Typical set-up codewould be:

    ldi r16,$ff ;move immediate into temporary store register

    out DDRB,r16 ;set direction register to ones for output -

    LEDs

    out PORTB,r16 ;switch all the LEDs on

    ldi r16,$00 ;move immediate into temporary store register

    out DDRD,r16 ;set direction register to zeros for input

    Switches

    9.2 Using External Connections

    All the ports are brought out to headers on the edge of the board. In addition to the portpins, each header has a connection for ground and VCC to supply external circuits. Notethis voltage, VCC, will be either 3.3V or 5V depending on the setting of jumper 1, JP1,and the brown-out detector will operate.

    Note: If your circuit is to draw significant current (>150 mA) then a heat sink will be required on the on-board regulator—LM317. This device is rated at 1.5 amps but it does need a heat sink to supply this current. If your circuit will draw more than 1 amp, you may need a separate power supply. The ports on the device are connected to the headers marked Port A, Port B, Port C, Port D, Port E and Analog, Port F. The layout of all the headers is the same and is shown in the fol-lowing diagram.

    megaAVR™ Starter Kit User Guide 9-1

  • Board Applications

    9.2.1 Misc. Header The last header labeled “Misc.” has connections to processor pins other than theport pins.

    If external operations do not want pull-ups on the port pin, both the switches and theLEDs can be disconnected from the processor. To isolate the LEDs, remove the jumperset labeled “Port B”, and to isolate the switches, remove the jumper set labeled “Port D”.

    9.3 Using Analog Functions

    The A/D converters use the header labeled “Analog” for the A/D inputs on Port F, whichis input only. A +10V to -10V supply is provided on the connector marked “Op-Amp” nextto the crystal. A lead from this connector can be used for an external amplifier for theA/D inputs. The layout of the Analog header is shown below.

    9.3.1 Analog Port: Marked on Board

    The A/D converters can use either the on-board (Internal) Voltage Reference or anexternal Voltage Reference.

    9.3.2 Using Internal Reference

    To use the internal, on-board Voltage Reference, the pot marked “AREF” is used to setthe voltage level. The voltage level can be measured with a DVM connected to the

    BIT 7 OF PORT.SAME FOR ALL PORTS

    EXTRA CONNECTIONFOR VCC

    CUT CORNERSHOWN ON BOARDFOR ORIENTATION

    BIT 0 OF PORT.SAME FOR ALL PORTS

    EXTRA CONNECTIONFOR GROUND

    EXTRA CONNECTIONFOR VCC

    CUT OUT MARKED ON BOARD

    FOR ORIENTATION

    EXTRA CONNECTIONFOR GROUND

    READRD

    WRITEWR

    CUT OUT MARKED ON BOARD

    FOR ORIENTATION

    ADC0 - ADC7 CONNECTED TO PORT FPF0 - PF7

    9-2 megaAVR™ Starter Kit User Guide

  • Board Applications

    header pins labeled “Analog Ref” and “Analog Gnd” in the previous diagram or from thetwo holes marked Meter + and -.

    9.3.3 Using External Reference

    To use the A/D converters with an external Voltage Reference, the link marked “LK1”must be cut. The voltage is applied to the pins marked “Analog Ref” and “Analog Gnd”on the Analog header—see previous diagram.

    9.4 Using External RAM

    The ATmega103 can be used with external SRAM. A socket is provided for a 28-pinRAM chip and for an address latch chip. These are next to the device adapter at the topof the board. There is also a header for further memory expansion, which is connectedthrough the address latch. The pin functions are marked on the board, including chipselect (CS).

    9.4.1 RAM Recommendations

    A low power 62256 SRAM is suggested with an access time of 70 nS. If a very fast RAMis required, the crystal frequency may need to be increased. If a much slower SRAM isused, the SRAM Wait State bit must be enabled in user software–—see data book. Thelayout of the 28-pin RAM socket is shown below, and any RAM with this pin-out couldbe used.

    9.4.2 RAM Socket Pin Layout

    9.4.3 Address Latch The board connections are for a 74HC573 device. This device will operate reliably withthe 4 MHz crystal supplied but if a faster crystal is inserted, a faster version of thisdevice may be required—74AHC573 or 74FHC573. Note that this option will alter theEMC characterist ics of the board and the CE mark wi l l no longer be val idwithout retesting.

    9.5 Using LCD Connections

    The header marked LCD interface is for a standard 2 x 16 LCD. The connections areshown on the board and in the following table.

    1234567891011121314

    2827262524232221201918171615

    A14A12

    A7A6A5A4A3A2A1A0

    I/O0I/O1I/O2VSS

    VCCWEA13A8A9A11OEA10CSI/O7I/O6I/O5I/O4I/O3

    Connection Name Function

    0V Ground

    +5 VCC - must be 5V

    Vo Contrast

    RS Register Select- A14

    Wr Not Write

    E Enable

    D0 Data Bit 0

    megaAVR™ Starter Kit User Guide 9-3

  • Board Applications

    The board is designed for use with a LCD with a Hitachi driver chip built-in, with a con-trast pin voltage of 0 to 5 Volts. The pot next to the LCD connector is used for contrastadjustment.

    If you use a different LCD driver, it may have a different voltage contrast range. In orderto accommodate this, add a resistor to the board (shown on board) and cut track onunderside of board—marked cut.

    This board is not designed for use with back lit LCD modules, so the extra connectionsneeded are not included and the power supply will not supply the current required.

    The LCD must be driven in Memory Mapped Mode as Read and Write are descite pinson the Mega parts—see data sheet. If the crystal has been changed to a faster crystalfrequency, memory mapped operations will not work.

    9.6 Using RS232 The connection supplied is a 9-way female D-type, so a straight-through lead isrequired, not a null-modem cable.

    The Jumpers in the middle of the board, marked PE0 and PE1 must be set to RS232,not Port or RXD and TXD will be disabled.

    As this board has a 4 MHz crystal, the percentage error on the Baud Rate will bebetween 0.2 and 7.8%. Replacing the crystal with a 3.6846 MHz or 4.608 MHz crystalwill reduce this error to zero but may have EMC implications.

    A standard (straight-through) lead is required, NOT a null-modem cable.

    9.7 Programming In-System

    Devices can be programmed in your circuit rather than on the board.

    For In-System Programming, ISP, the 10-conductor ribbon cable is connected to a dualrow 10-pin 0.1" pitch header on your circuit.

    You will need to use either a multiplexer chip, such as a 4053, or wire directly to the pinsof the device. Without a multiplexer chip, Serial Communications and SPI port will beunusable.

    In addition, the system 5 Volts and Ground needs to be connected to the programminglead.

    DO NOT EXCEED 5 VOLTS ± 5% (4.75V TO 5.25V). YOU MAY DAMAGE YOURCOMPUTER. THIS WARNING APPLIES TO ANY ISP SYSTEM.

    D1 Data Bit 1

    D2 Data Bit 2

    D3 Data Bit 3

    D4 Data Bit 4

    D5 Data Bit 5

    D6 Data Bit 6

    D7 Data Bit 7

    Connection Name Function

    9-4 megaAVR™ Starter Kit User Guide

  • Board Applications

    9.8 ISP Header Layout

    9.9 Interface Using Resistors

    Typical resistor values would be 1K. This circuit is fine if ports PB7, PE0 and PE1 areused as inputs in your circuit and no communication is required. If Outputs are neededor RS232 connections, especially higher than a few milliamps, then the multiplexed cir-cuit is preferable.

    9.10 Using an Analogue Multiplexer IC

    The multiplexer select can be driven from the LED connection on the programming lead,as can a low power LED with its cathode connected to the LED connection via a suitableresistor. 1KΩ is fine. If you use this connectio, then the output will be low 0 during pro-gramming and a 1 at all other times. Note that it will float if the programmer is not active,i.e., the software is not running, so you may need to use a pull-up resistor.

    KEY WAY

    OPTIONAL PROGRAMINDICATOR CICRUIT

    PROGRAMMING HEADER MISO IS CALLED PDO ANDMOSI IS PDI ON MEGADEVICES - PORT E BITS 0 AND 1NOT PINS ON PORT B.

    USERCIRCUIT

    TO ISPCONNECTOR

    TO USERCIRCUIT

    megaAVR™ Starter Kit User Guide 9-5

  • Board Applications

    Note: All the pins except ground will float if the programmer is not active. The device may then be programmed in the normal way.

    9.10.1 Using Real Time Clock

    A 32.768 kHz crystal is connected to TOSC1 and TOSC2 pins—Pin 18 and Pin 19. Thiscan be used to generate a 1 second pulse—see data book for details.

    9-6 megaAVR™ Starter Kit User Guide

  • Board Applications

    RS

    232

    Cir

    cuit

    An

    alo

    gu

    e R

    efer

    ence

    Dec

    ou

    plin

    g C

    apac

    itors

    Act

    ive

    0 o

    n S

    wit

    ches

    Act

    ive

    0 o

    n L

    ED

    s

    3V3

    GN

    DG

    ND

    AG

    ND

    Ex

    tern

    al P

    ow

    er

    So

    urc

    e(D

    C o

    r A

    C)

    LC

    D T

    imin

    g C

    iru

    it

    EN

    LC

    D In

    terf

    ace

    Lig

    hts

    an

    d S

    wit

    ches

    Bro

    wn

    ou

    t D

    etec

    tor

    Cir

    cuit

    Pro

    gra

    mm

    ing

    Inte

    rfac

    e

    PE

    0

    PE

    1

    +5V

    +5V

    VC

    C

    VC

    C

    +5

    VC

    C

    VC

    C

    +5

    +5

    +5

    +5

    C10

    10uF

    +C

    9

    10uF

    +C

    12

    10uF

    +C

    11

    10uF

    +

    U4

    MA

    X20

    2CP

    E

    C1+

    1

    V+

    2

    C1-

    3

    C2+

    4

    C2-

    5

    V-

    6

    T2O

    UT

    7

    R2I

    N8

    R2O

    UT

    9T

    2IN

    10T

    1IN

    11R

    1OU

    T12

    R1I

    N13

    T1O

    UT

    14G

    ND

    15V

    cc16

    VR

    1

    10K

    C20

    100n

    F

    C13

    100n

    F

    C14

    100n

    F

    C15

    100n

    F

    C16

    100n

    F

    C17

    100n

    F

    C18

    100n

    F

    C19

    100n

    F

    HE

    AD

    ER

    8X

    2

    PD

    0P

    D1

    PD

    2P

    D3

    PD

    4P

    D5

    PD

    6P

    D7

    12

    34

    56

    78

    910

    1112

    1314

    1516

    10K

    Res

    net P

    D0

    10K

    Res

    net

    PB

    0

    PB

    1

    PB

    2

    PB

    3

    PB

    4

    PB

    5

    PB

    6

    PB

    7

    HE

    AD

    ER

    8X

    2

    PB

    0P

    B1

    PB

    2P

    B3

    PB

    4P

    B5

    PB

    6P

    B7

    12

    34

    56

    78

    910

    1112

    1314

    1516

    RE

    G1

    LM31

    7T

    VIN

    3

    ADJ1

    VO

    UT

    2

    R6

    240R

    R7

    820R

    R5

    39R

    R4

    680R

    C5

    470n

    F

    C6

    100n

    fC

    4

    470n

    F

    C3

    220u

    F

    BR

    IDG

    E

    -+

    S1

    SW

    SP

    ST

    U3C 7

    4HC

    00

    9

    108

    U3A

    74H

    C00

    1 23

    U3D

    74H

    C00

    12 1311

    C8

    33pF

    D2

    BA

    T85

    R3

    10K

    Data 07

    Data 18

    Data 29

    Data 310

    Data 411

    Data 512

    Data 613

    Data 714

    GND1

    +5V2

    Cont3

    Reg Sel4

    R/W5

    Enable6

    Q2

    BC

    182

    1

    2

    3

    R10

    18K

    R11

    10K

    R12

    10K

    C7

    100n

    F

    5V

    Bro

    wno

    ut

    R8

    43K

    R14

    1M

    Q1

    BC

    182

    1

    2

    3

    U3B

    74H

    C00

    4 56

    R15

    100R

    R13

    1K

    U2

    4053X0

    12

    X1

    13

    Y0

    2

    Y1

    1

    Z0

    5

    Z1

    3

    INH

    6

    A11

    B10

    C9

    X14

    Y15

    Z4

    R16

    1K

    PD

    3

    R2

    1K

    PD

    4

    P9

    RS

    232

    5 9 4 8 3 7 2 6 1

    PD

    7

    BC

    212

    1

    2

    3

    HE

    AD

    ER

    5X

    2

    12

    34

    56

    78

    910

    PD

    2

    PD

    5

    PB

    0

    R1

    1KR

    EG

    2

    LM

    78

    L0

    5A

    CH

    VIN

    3V

    OU

    T1

    GND2

    PD

    6

    R9

    11K

    PD

    1V

    RE

    F

    AG

    ND

    TX

    D

    RX

    D

    VC

    C

    A15

    WR

    RD

    VC

    C

    P-R

    ES

    ET

    RE

    SE

    T

    EX

    T R

    ES

    ET

    ISP

    MO

    SI

    ISP

    MIS

    O

    ISP

    LE

    D

    ISP

    RS

    T

    ISP

    SC

    K

    MO

    SI (

    ISP

    )

    ME

    GA

    Pin

    3 (

    PE

    1)

    SC

    K (

    ISP

    )

    ME

    GA

    Pin

    11

    (S

    CK

    ME

    GA

    Pin

    2 (

    PE

    0)

    MO

    SI (

    ISP

    )

    PO

    RT

    B B

    it 1

    LE

    D E

    na

    ble

    (IS

    P)

    PO

    RT

    PIN

    RS

    232

    PO

    RT

    PIN

    RS

    232

    RS

    T +

    BR

    OW

    NO

    UT

    RS

    T (

    ISP

    )

    CS

    -10V

    +10V

    megaAVR™ Starter Kit User Guide 9-7

  • Board Applications

    9-8 megaAVR™ Starter Kit User Guide

  • © Atmel Corporation 1999.Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company’s standard war-ranty which is detailed in Atmel’s Terms and Conditions located on the Company’s web site. The Company assumes no responsibility forany errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time withoutnotice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual prop-erty of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel’s products arenot authorized for use as critical components in life support devices or systems.

    Atmel Headquarters Atmel Operations

    Corporate Headquarters2325 Orchard ParkwaySan Jose, CA 95131TEL (408) 441-0311FAX (408) 487-2600

    EuropeAtmel U.K., Ltd.Coliseum Business CentreRiverside WayCamberley, Surrey GU15 3YLEnglandTEL (44) 1276-686677FAX (44) 1276-686697

    AsiaAtmel Asia, Ltd.Room 1219Chinachem Golden Plaza77 Mody RoadTsimshatsui EastKowloon, Hong KongTEL (852) 27219778FAX (852) 27221369

    JapanAtmel Japan K.K.Tonetsu Shinkawa Bldg., 9F1-24-8 ShinkawaChuo-ku, Tokyo 104-0033JapanTEL (81) 3-3523-3551FAX (81) 3-3523-7581

    Atmel Colorado Springs1150 E. Cheyenne Mtn. Blvd.Colorado Springs, CO 80906TEL (719) 576-3300FAX (719) 540-1759

    Atmel RoussetZone Industrielle13106 Rousset Cedex, FranceTEL (33) 4 42 53 60 00FAX (33) 4 42 53 60 01

    Fax-on-DemandNorth America:1-(800) 292-8635

    International:1-(408) 441-0732

    [email protected]

    Web Sitehttp://www.atmel.com

    BBS1-(408) 436-4309

    Printed on recycled paper.

    1149A–02/99/2M

    Marks bearing ® and/or ™ are registered trademarks and trademarks of Atmel Corporation.

    Terms and product names in this document may be trademarks of others.

    Introduction1.1 Device Support

    Getting Started2.1 Unpacking the System2.2 System Requirements

    Connecting the SystemHardware Description4.1 Jumpers, Links and their Functions4.2 External Connections

    Installing the Software5.1 Windows 955.2 Windows 3.1

    How to Use the Software6.1 Projects6.2 Files

    Programming Using the Board7.1 Device Orientation7.2 Voltage Selection7.3 Power and Lead Connections

    Brown-Out DetectorBoard Applications9.1 Using Switches and LEDs9.2 Using External Connections9.2.1 Misc. Header

    9.3 Using Analog Functions9.3.1 Analog Port: Marked on Board9.3.2 Using Internal Reference9.3.3 Using External Reference

    9.4 Using External RAM9.4.1 RAM Recommendations9.4.2 RAM Socket Pin Layout9.4.3 Address Latch

    9.5 Using LCD Connections9.6 Using RS2329.7 Programming In- System9.8 ISP Header Layout9.9 Interface Using Resistors9.10 Using an Analogue Multiplexer IC9.10.1 Using Real Time Clock


Recommended