Anda di halaman 1dari 11

Email: info@sunrom.

com
Visit us at http://www.sunrom.com

Document: Datasheet

Date: 5-Jan-12

Model #: 1138

Products Page: www.sunrom.com/p-1072.html

AVR ISP USB Programmer


The AVRISP is a professional low cost InSystem Programmer covering all AVR 8-bit
RISC Micro Controllers. The programmer
connects to a PC through a standard USB
and draws the necessary power from the PC
USB port eliminating the need for an
additional power supply. It can also power
your target board upto 100ma from USB.
AVR Studio is used as front-end software,
giving you a highly integrated development
solution.
Programmer also supports AT89S51 and AT89S52 ICs along with all other AVR ICs.

Features

AVR Studio Interface


ISP Programming of all AVR Devices
Programs both Flash and EEPROM
Supports Fuses and Lock Bit Programming
Supports RC Oscillator Calibration
Upgradeable to Support Future Devices by upgrading AVR studio software
Operates at Target Voltages from 2.7V to 5.5V
Adjustable Speed. Supports all Target Boards Running at Speeds Higher than 8kHz
USB Interface to PC for Programming and Control
Takes Power from USB. No need for Additional Power Supply
Can power target boards upto 100ma

The AVR ISP is fully supported by AVR Studio. We recommend using the latest available
version of AVR Studio 4.

Our Package Includes

Tested & Ready to use AVR-ISP USB Programmer covering 1 year warranty
CDROM containing AVR Studio programming software, USB Driver & PDF manual.
USB Cable for connecting to PC
10 pin Flat Cable connector for connecting to target boards

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Supported Devices
It supports all AVR devices which can be programmed through ISP interface in AVR Studio.
Note: Programmer also supports AT89S51 and AT89S52 IC along with all other AVR ICs.
Classic
AT90S1200
AT90S2313
AT90S2323
AT90S2343
AT90S2333
AT90S4414
AT90S4433
AT90S4434
AT90S8515
AT90S8535

Tiny
ATtiny12
ATtiny13
ATtiny15
ATtiny22
ATtiny2313
ATtiny24
ATtiny25
ATtiny26
ATtiny261
ATtiny44
ATtiny45
ATtiny461
ATtiny48
ATtiny84
ATtiny85
ATtiny861
ATtiny88
ATtiny167

Mega
ATmega8
ATmega16 / A
ATmega32 / A,C1,M1,U4,HVB
ATmega48 / P
ATmega88 / P
ATmega103
ATmega128
ATmega1280
ATmega1281
ATmega1284P
ATmega16HVA
ATmega161
ATmega162
ATmega163
ATmega164P
ATmega165 / P
ATmega168 / P
ATmega169 / P
ATmega323
ATmega324 / P
ATmega325 / P
ATmega328 / P
ATmega329 / P
ATmega644 / P
ATmega645
ATmega649
ATmega2560
ATmega2561
ATmega3250 / P
ATmega3290 / P
ATmega6450
ATmega6490
ATmega85158535
ATmega43U

Other
AT89S51
AT89S52
AT86RF401
AT90CAN32
AT90CAN64
AT90CAN128
AT90PWM2 / B
AT90PWM3 / B
AT90USB82

Future devices supported on update of AVR Studio software from Atmel. Click here to see latest
version of available AVR Studio http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Getting started for first time use


Step #1 Connect Device to USB Port
Plug in one end of USB Cable to PCs USB Port and another end to Programmer. Please note that
USB driver requires the hardware to be connected to PC else it will fail setup.
Step #2 Install USB Driver
Insert the CDROM provided with programmer.
There will be a folder called 1. USB Driver. It
contains a file README.TXT with instructions
related to install of USB Driver as per your
operating system.
Just to check, Now you should be able to see a Virtual COM port
in your Device manager as shown here. It will be called USB
Communications Port(COMx).
To open device manager right click My Computer and click properties. In this window see Hardware > Device Manager > Ports.

Step #3 Install Programming Software AVR Studio


Run setup by clicking AvrStudio4Setup.exe file from CDROM.
Follow onscreen instructions to setup leaving everything as default. This will install AVR Studio in
Start Menu.
Now you are done installing software and setup. In following section we will see how to prepare
target board and start using AVR Studio.

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Understanding ICSP Connector


The programming connector is 2x5 type 10 pin Box Header. This connector is in the programmer as
well required in target
rget board. The connector has polarity protection slot to prevent accidently
reverse connection and damage to programmer or target board.
Target Board connector is same as on programmer which is connected through 10 way FRC cable.

Connector on Programmer

Sunrom Technologies

------ FRC10 Cable(Pin#1 arrow) ------

Your Source for Embedded Systems

Target board connector


Same as programmer
rogrammer

Visit us at www.sunrom.com

Target Board
The programmer needs a target board with supported chip to load program into. The programmer
will check though VCC pin, if your target board is powered on though external power supply, If it
fails to detect +5V on VCC pin, it will give +5V to your target board limited to 100mA. If your target
board takes more than 100mA, then it is advisable to use external power supply to your target
board. VCC connection (pin 2 of ICSP) is optional and can be left out to keep voltage from
programmer and target board separate.
Crystal can be of any value. Once programming is finished the reset pin is released and target chip
is put to run mode.
Minimum required schematic for your target board is described below for 40 pin AVR chip
ATMEGA16 or similar IC. Your target board can have a 10 pin connector for ICSP. Make sure that
the MOSI, MISO, SCK pins are not connected in your target hardware to other units so that it would
not affect the programming signals.

VCC
C2
100n

VCC
R1
10K

10

IC1
ATMega16/32-DIP40
1
PB0/(XCK/T0) 2
PB1/(T1) 3
PB2/(INT2/AIN0)
4
PB3/(OC0/AIN1)
5
PB4/(SS) 6
PB5/(MOSI) 7
PB6/(MISO) 8
PB7/(SCK)

PA0/(ADC0)
PA1/(ADC1)
PA2/(ADC2)
PA3/(ADC3)
PA4/(ADC4)
PA5/(ADC5)
PA6/(ADC6)
PA7/(ADC7)

RESET
32
30

XTAL2

SW1
RESET SW
PB5
PB6
PB7

In System Programming

9
12

C9
33p

AREF
Y1
8 Mhz

AVCC
XTAL1
PD0/(RXD)
PD1/(TXD)
PD2/(INT0)
PD3/(INT1)
PD4/(OC1B)
PD5/(OC1A)
PD6/(ICP)
PD7/(OC2)

GND
GND

PC7/(TOSC2)
PC6/(TOSC1)
PC5/(TDI)
PC4/(TDO)
PC3/(TMS)
PC2/(TCK)
PC1/(SDA)
PC0/(SCL)

C10
33p

VCC

CN3
BH10
MOSI
RST
SCK
MISO

1
3
5
7
9

2
4
6
8
10

13
14
15
16
17
18
19
20
21

Atmel 10-way ISP Header

31
11

29
28
27
26
25
24
23
22

C3
100n

VCC

40
39
38
37
36
35
34
33

Note for 3V target boards: If your target board is working from 3V then do not connect VCC pin
from programmer ISP to your target board because programmer can only provide 5V. In this case
you have to provide 3V externally to your target board with three 100R resistor in series for signals
of MOSI, RST and SCK to drop down ISP signal voltage. MISO does not need this resistor.

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Using Programmer with AVR programming adapter


You can use this programmer with our AVR Programming
Adapter board which can be purchased separately.

AVR Programming Adapter


Schematic is given in its datasheet
http://www.sunrom.com/p-529.html

It can be used instead of your target board for quick


programming of many AVR ICs. It has IC sockets which
supports many AVR ICs. You cannot run programs in this
adapter but you can only program various ICs.
Programmer will automatically power this adapter board.

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Using Programmer with AVR Development Board


You can easily use it with any development board like below to load programs. If your development
board uses more than 100mA then power external power to development board else programmer
will automatically power your target development board.
It supports development board or all AVR ICs as well as AT89S51/AT89S52

Using Programmer with 89Sxx programming adapter


You can use this programmer with our 89Sxx Programming
Adapter board which can be purchased separately to program
AT89S51 and AT89S52 ICs. Programmer will automatically power
this adapter board.
100n

P1.0/T2
P1.1/T2EX
P1.2
P1.3
P1.4/SS
P1.5/MOSI
P1.6/MISO
P1.7/SCK
EA/VPP

1
2
3
4
5
6
7
8
31

PSEN
ALE/PROG

In System Programming
CN1
BH10
MOSI

VCC

RST
SCK
MISO

VCC

1
3
5
7
9

VCC
2
4
6
8
10

GND

C2
10uF 16V

19

18

XTAL2

29
30

P3.0/RXD
P3.1/TXD
P3.2/INT0
P3.3/INT1
P3.4/T0
P3.5/T1
P3.6/WR
P3.7/RD

U1
AT89S51/52
39
P0.0/AD0
38
P0.1/AD1
37
P0.2/AD2
36
P0.3/AD3
35
P0.4/AD4
34
P0.5/AD5
33
P0.6/AD6
32
P0.7/AD7

20

10
11
12
13
14
15
16
17

P2.0/A8
P2.1/A9
P2.2/A10
P2.3/A11
P2.4/A12
P2.5/A13
P2.6/A14
P2.7/A15

XTAL1

21
22
23
24
25
26
27
28

40

VCC

VCC

C1

89Sxx Programming Adapter


Product Page
http://www.sunrom.com/p-939.html

RST

Atmel 10-way ISP Header


R1
10K

Y1
C4
33p

12 Mhz

C3
33p

Sunrom Technologies

Title 89Sxx ICSP Adapter


Code 1204
Date: Friday, November 11, 2011

Sunrom Technologies

http://www.sunrom.com
Sheet 1

Rev
of

1
1

Your Source for Embedded Systems

Visit us at www.sunrom.com

Using AVR Studio to load program


You can start programming software from going to Start Menu > AVR Studio.

Click Connect
From next time use you can
use AutoConnect option to
quick start the interface.

Select AVRISP and


Click Connect

Troubleshooting Note: If you are getting this Connect Fail screen again and again after clicking
connect means software is not able to connect to your programmer. It is possible that USB virtual
com port is not installed or hardware is not connected. Also your COM port should be between
COM1 to COM9. You can change the com port from your Device Manager.
Also if our target board is drawing more current the USB voltage could drop. Try removing target
hardware and connect. You can check target voltage with meter.

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Select your target


device and try reading
signature. If it reads
ok without error,
connection is ok.

Browse for a HEX file


and click Program. It
should finish without
errors.

10

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

LED Blink Program


LED Test folder on CDROM contains sample project source code in WinAVR compiler. It also
includes compiled HEX file which you can load into any AVR controller.
The HEX file is compiled for ATMEGA8 controller.
Hex file is located at LED Test\output\BlinkLED.hex
To use this HEX with other AVR controller you have to recompile it. See
steps below
BlinkLED.aps is project file for AVR Studio, You can click it to open and
compile in AVR Studio. If you want to change the target
chip

Select your target chip


and click OK

Right click the project


tree and select this
option.
Recompile the project
for generating new
HEX file

Related Links
Atmel AVR Studio Latest Version http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725
WinAVR C Compiler
http://winavr.sourceforge.net/

11

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Anda mungkin juga menyukai