background image

i

Table of Contents

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

1.1

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

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

2.1

Unpacking the System ..............................................................................2-1

2.2

System Requirements...............................................................................2-1

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

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

4.1

Jumpers, Links and their Functions ..........................................................4-2

4.2

External Connections ................................................................................4-2

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

5.1

Windows 95 ..............................................................................................5-1

5.2

Windows 3.1 .............................................................................................5-1

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

6.1

Projects .....................................................................................................6-1

6.2

Files ..........................................................................................................6-1

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

7.1

Device Orientation ....................................................................................7-1

7.2

Voltage Selection ......................................................................................7-1

7.3

Power and Lead Connections ...................................................................7-2

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

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

9.1

Using Switches and LEDs.........................................................................9-1

9.2

Using External Connections......................................................................9-1

Summary of Contents for megaAVR

Page 1: ...ir Functions 4 2 4 2 External Connections 4 2 Section 5 Installing the Software 5 1 5 1 Windows 95 5 1 5 2 Windows 3 1 5 1 Section 6 How to Use the Software 6 1 6 1 Projects 6 1 6 2 Files 6 1 Section 7 Programming Using the Board 7 1 7 1 Device Orientation 7 1 7 2 Voltage Selection 7 1 7 3 Power and Lead Connections 7 2 Section 8 Brown Out Detector 8 1 Section 9 Board Applications 9 1 9 1 Using Sw...

Page 2: ...sing 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 3 9 6 Using RS232 9 4 9 7 Programming In System 9 4 9 8 ISP Header Layout 9 5 9 9 Interface Using Resistors 9 5 9 10 Using an Analogue Multiplexer IC 9 5 9 10 1 Using Real Time Clock 9 6 ...

Page 3: ...ing AVR devices in your application Be sure to check the README 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 Atmel website which is located at http www atmel com ...

Page 4: ...Introduction 1 2 megaAVR Starter Kit Manual ...

Page 5: ...x 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 ...

Page 6: ...Getting Started 2 2 megaAVR Starter Kit Manual ...

Page 7: ...nd is inserted 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 LEAD SUPPLIED TO DONGLE AND INSERT IN PC PRINTER PORT POWER ...

Page 8: ...Connecting the System 3 2 megaAVR Starter Kit Manual ...

Page 9: ...inks are given in the following table LCD CONNECTOR ANALOG REFERENCE VOLTAGE ADJUSTMENT PLUG IN MEGA BOARD HERE ANALOG I P PORT A DIGITAL 4 MHz CRYSTAL PORT B HEADER PORT C HEADER PORT D JUMPERS DISABLE SWITCHES PORT D HEADER MISC HEADER FOR NON PORT PINS JP2 JUMPER FOR BROWN OUT AT 2 9V OR 4 5V 8 LEDS ON PORT B 8 SWITCHES ON PORT D JP1 JUMPER FOR 3 3 OR 5V VCC SELECT ON OFF SWITCH POWER INPUT 9 1...

Page 10: ... 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 Sw...

Page 11: ...ss the OK button and the software installation program will begin The software will then be installed onto your computer and an Icon and Program Group will 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 ...

Page 12: ...Installing the Software 5 2 megaAVR Starter Kit Manual ...

Page 13: ...s information together for you so you don t have to remember and 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 the project identifier It also has a small notepad for you to store comments about the project Before you can start a programming session you must either open an existing project or start a ...

Page 14: ...How to Use the Software 6 2 megaAVR Starter Kit Manual ...

Page 15: ...ant If you put it in the wrong way then you may damage the device DO NOT PLUG A DEVICE ADAPTER IN WITH THE POWER SWITCHED ON or you may damage it Similarly never remove the device adapter with the 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 Ou...

Page 16: ... 3 1 The power supply 9 15V DC or 7 12V AC is plugged into the power connector 5 5 2 1 Barrel The Power On Off switch is located next to the power connector Insert the device adapter before switching the power on The power on LED should light when the power is correctly applied Your hardware is now ready for programming Refer to How to Use the Software on page 6 1 for details of programming operat...

Page 17: ...resets properly rather than operating randomly 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 5V operation 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 ...

Page 18: ...Brown Out Detector 8 2 megaAVR Starter Kit Manual ...

Page 19: ... 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 port pins each header has a connection for ground and VCC to supply external circuits Note this voltage VCC will be either 3 3V or 5V depending on the setting of j...

Page 20: ...al A lead from this connector can be used for an external amplifier for the A 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 an external Voltage Reference 9 3 2 Using Internal Reference To use the internal on board Voltage Reference the pot marked AREF is used to set the voltage ...

Page 21: ...ystal frequency may need to be increased If a much slower SRAM is used the SRAM Wait State bit must be enabled in user software see data book The layout of the 28 pin RAM socket is shown below and any RAM with this pin out could be 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 with the 4 MHz crystal supplied bu...

Page 22: ...em 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 be between 0 2 and 7 8 Replacing the crystal with a 3 6846 MHz or 4 608 MHz crystal will reduce this error to zero but may have EMC implications A standard straight through lead is required NOT ...

Page 23: ... 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 suitable resistor 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 ...

Page 24: ...round 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 This can be used to generate a 1 second pulse see data book for details ...

Page 25: ...5 6 7 8 9 10 11 12 13 14 15 16 REG1 LM317T VIN 3 ADJ 1 VOUT 2 R6 240R R7 820R R5 39R R4 680R C5 470nF C6 100nf C4 470nF C3 220uF BRIDGE S1 SW SPST U3C 74HC00 9 10 8 U3A 74HC00 1 2 3 U3D 74HC00 12 13 11 C8 33pF D2 BAT85 R3 10K Data 0 7 Data 1 8 Data 2 9 Data 3 10 Data 4 11 Data 5 12 Data 6 13 Data 7 14 GND 1 5V 2 Cont 3 Reg Sel 4 R W 5 Enable 6 Q2 BC182 1 2 3 R10 18K R11 10K R12 10K C7 100nF 5V Br ...

Page 26: ...Board Applications megaAVR Starter Kit Manual 9 8 ...

Page 27: ...Board Applications 9 9 megaAVR Starter Kit Manual ...

Page 28: ...uarters 2325 Orchard Parkway San Jose CA 95131 TEL 408 441 0311 FAX 408 487 2600 Europe Atmel U K Ltd Coliseum Business Centre Riverside Way Camberley Surrey GU15 3YL England TEL 44 1276 686677 FAX 44 1276 686697 Asia Atmel Asia Ltd Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong TEL 852 27219778 FAX 852 27221369 Japan Atmel Japan K K Tonetsu Shinkawa Bldg 9F 1 24 ...

Reviews: