background image

MikroElektronika

3

StartUSB for AVR

How to program the microcontroller?

A .hex code is loaded into the microcontroller via the bootloader program stored in the microcontroller memory. The 

Atmel FLIP 

application is used to transfer the .hex code from the PC to the microcontroller.

Follow the steps below in order to program the microcontroller properly:

R27  27

FB1

FERRITE

R26  27

C15

100nF

PB0

PD4

PB1

PD3

PD5 PD6 PD7

PB2

PD2

PB3

PD1

PD0

PB4 PB5

PC7

PB7

PC5

PC2

PB6

PC6

PC1

PC4

VCC

C24

C13

100nF

2.2uF

E5

10uF

R41

4K7

R15

2K2

LD2

LD3

J1

J3

J2

PD5

PD7

PD6

VCC

R3

4K7

LD1

POWER

VCC

VCC

CN3

CN4

CN2

D-

RESET

D+

USB MINI 

B

USBDN

USBDP

R17

10K

R1

10K

RESET

VCC

VCC

14

C

100nF

T1

X1

8MHz

C10
22pF

C 1

1

22pF

AT90USB162

AV

CC

PD3

PD

4

PD

5

PD

6

PD

7

PB0

PB1

PB2

UVCC

D-/SD

AT

A

D+/SC

K

UGND

UCA

P

PC

4

PC

5

XTAL1

RESET/PC1

PC6
PC7
PB7
PB6
PB5
PB4
PB3

PC0(XTAL2)
GND
VCC
PC2
PD0
PD1
PD2

Figure 2

: The StartUSB for AVR development system connection schematic

STEP 1: 

Install Atmel FLIP

Download the 

Atmel FLIP 

program from Atmel’s website at:

http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3886   (FLIP 3.4.2 for Windows (Java Runtime Environment 

included))

After download is completed double click on the FLIP installation icon

Follow on-screen instructions and install the program on your PC.

Содержание StartUSB for AVR

Страница 1: ...ully chosen components and the use of machines of the last generation for mounting and testing thereof are the best guarantee of high reliability of our devices Due to simple design a large number of...

Страница 2: ...ectors CN3 and CN4 An LED labelled POWER is used to indicate whether the board is turned on or off whereas LEDs PD5 and PD6 can be configured to indicate the logic state on the PD5 and PD6 pins In ord...

Страница 3: ...J3 J2 PD5 PD7 PD6 VCC R3 4K7 LD1 POWER VCC VCC CN3 CN4 CN2 D RESET D USB MINI B USBDN USBDP R17 10K R1 10K RESET VCC VCC 14 C 100nF T1 X1 8MHz C10 22pF C 1 1 22pF AT90USB162 AVCC PD3 PD4 PD5 PD6 PD7 P...

Страница 4: ...USB cable Figure 3 A PC will automatically start driver installation for a new hardware If the driver installation fails go one step back and find driver manually in the Program files Atmel Flip fold...

Страница 5: ...R development board Click on the Select a Target Device button Click on the Select a Communication Medium icon A drop down menu will appear The Device Selection window will open Select AT90USB162 from...

Страница 6: ...6 StartUSB for AVR STEP 5 Browse for hex code After the link is established all options and buttons will become active Click on the Load HEX File icon In the pop up window browse for a hex file Click...

Страница 7: ...Click on the Start Application button Information that hex file verification is passed Information that link with StartUSB for AVR is disabled Communication OFF After the MCU programming is completed...

Страница 8: ...2 on keyboard STEP 1 Open tools menu Figure 5 Options window Adding FLIP to mikroC PRO for AVR compiler Follow the next few steps to add FLIP to mikroC PRO for AVR tools list By doing so you can start...

Страница 9: ...the C Program Files Atmel Flip 3 4 2 bin folder Click on the Open button A path to batchisp exe file will appear in the File Name box NOTE If you copy command line path retype every quotation mark In...

Страница 10: ...le it When the source code is compiled the hex file is generated and ready to be uploaded into the MCU STEP 3 Compile source code Click on the Build option or press Ctrl F9 on keyboard To upload hex f...

Страница 11: ...MikroElektronika 11 StartUSB for AVR After uploading is over a command line window figure 6 will disappear which means that hex file is uploaded Figure 6 Uploading hex file...

Страница 12: ...ite at www mikroe com If you are experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com en support If you have any questions...

Отзывы: