AVR Programmer
At-Prog for
Win95/98/NT/2000/ME/XP
Overview
It is my intent to
provide error-free software, but it is possible that incompatibilities could
arise when it is used in certain configurations.
If you do experience problems when using the At-prog software, I should
be very grateful if you would e-mail me the details.
You should check my home page regularly for the latest
additions.
DISCLAIMER:
I do not accept any responsibility for damage resulting from building or operation of AT-Prog and the interface circuits.
Programs AVR's in the
Low-voltage Serial Programming Mode
In-system Programming
Connects via Parallel- or Com-Port
Write, readback and verify Flash- and EEProm Memory
Direct connection between Parallel Port and AVR
Loads files with Intel- and Readback-Format
To ensure TTL-compatibility, the supply voltage to the AVR chip being
programmed must be close to 5 V.
|
Read |
|
All locations will be stored in the file "readback.txt |
|
|
Write |
|
Programs the flash- or eeprom-memory |
|
|
Erase before Write |
|
This option normaly should be checked to erase the memory before writing |
|
|
Verify |
|
The hex- or eep-file will be compared with the memory |
|
|
Check |
|
The device code will be read and displayed |
|
|
Autodetection |
|
If the avr has no device code, this option should be unchecked |
|
|
Reset |
|
The reset line is pulled down for 100ms and goes high then |
|
Open
Choose the 'hex' or 'eep' data file to be programmed or
compared.
*.hex is the program file
*.eep is the data file
At present only files in Intel format can be processed.
Between opening the file and programming, the hex/eep data can be
repeatedly changed. The files do not have to be opened each time.
Choose the Computer output
Parallel port (direct
connection from PC to AVR)
Windows NT does not permit the direct connection of a user program to
the parallel port, and so a Driver is required: "DLPORTIO".
Parallelport: 0278, 0378, 03BC (Win95/98/NT but not Win2000!)
PC-Parallel-S. |
|
Contoller |
|
Reset - Pin 5 |
----------------------->------------------------------ |
RESET |
|
Data out - Pin 2 |
----------------------->--1k ------------------------- |
MOSI |
|
Clock - Pin 3 |
----------------------->--1k ------------------------- |
SCK |
|
Data in - Pin 10 |
-----------------------<------------------------------ |
MISO |
|
Gnd - Pin 18 |
------------------------------------------------------ |
GND |
|
COM1, COM2 (Win95/98/NT/2000/ME/XP)
At-Prog works with:
A separate stable 5V supply will be needed. |
|
If the controller is programmed "in system", a separate stable 5V supply will be needed if the current requirement exceeds a few milliamps. If the current demand is small, the Com port can supply it. |
|
A separate stable 5V supply will be needed. |
Disable Code Protection
The code protection is removed, and the AVR can be
re-programmed.
This command erases the data, even if code protection was not enabled.
Bulk Erase Data
Data memory is initialized with 'FF' in all locations.
Data Window
Direct access to data memory via a memory display.
Speed
Before each data transfer, the speed of the PC is determined, and the data rate set accordingly. However, certain configurations may require further adjustments.
Two bytes of command/data can be typed in to set or clear
fuse and lock bits.
Only commands for serial downloading are allowed.
An exampe for setting/clearing the FSRT bit of the AT90S2323:
Program FSRT:
Byte1: AC
Byte2: BE (program FSRT=clear bit)
Check FSRT bit:
Byte1: 58
Byte2: 00 (read lock and fuse bits)
in: 00DE (bit FSRT is cleared).
Unprogram FSRT:
Byte1: AC
Byte2: BF (unprogram FSRT=set bit)
Check FSRT bit:
Byte1: 58
Byte2: 00 (read lock and fuse bits)
in: 00DF (bit FSRT is set).
You can find all commands for serial downloading in the AVR datasheet.
Look for new Version
The Download page of the At-Prog is opened.
The price for one registered version is 25 Euro (use on
one computer).
For more registrations please ask.
Payment can be sent in cash or post draft, (NO CHECKS PLEASE) via
regular, or Air Mail. Please send me an email to get more information.
http://jaichi.virtualave.net/contact-e.htm
Sometimes there are difficulties in programming AVR's (AT90S1200).
The following should help:
* a 1nF (1000pF) capacitor from the SCK pin to ground closest to the
AVR.
* choose "low" speed
* manually select the controller
Copyright: Johann Aichinger
http://jaichi.virtualave.net/