Scroll to navigation

UISP(1) User Commands UISP(1)

NAME

uisp - Micro In-System Programmer for Atmel's AVR MCUs

SYNOPSIS

uisp [OPTION].. -dprog=TYPE -dpart=AT90XXX --FUNCTION.. [if=SOURCE] [of=DEST]

DESCRIPTION

Programming Methods:

-dprog=<method>

Standard Atmel Serial Programmer/Atmel Low Cost Programmer
http://www.avr1.org/pavr/pavr.html
Atmel STK500
Direct AVR Parallel Access
Parallel Starter Kit STK200, STK300
Altera ByteBlasterMV Parallel Port Download Cable
Atmel-ISP Download Cable (P/N ATDH1150VPC)
Atmel AVR ISP (?)
http://www.bsdhome.com/avrdude/ (parallel)
http://ln.com.ua/~real/avreal/adapters.html (parallel)
http://www.dontronics.com/dt006.html (parallel)
Investment Technologies Maxi (parallel)
Datamekatronik 2004 (parallel)
serial (RESET=RTS SCK=DTR MOSI=TXD MISO=CTS)
serial (RESET=!TXD SCK=RTS MOSI=DTR MISO=CTS)
serial (RESET=!DTR SCK=RTS MOSI=TXD MISO=CTS)

Target Device Selection:

Set target abbreviated name or number. For some programmers, if -dpart is not given programmer's supported devices are listed. Set -dpart=auto for auto-select. Auto-select does not work with all programmers, so it is recommended to always specify a target device explicitly.

Parallel Device Settings:

specify device name (Linux ppdev, FreeBSD ppi, serial) or direct I/O parallel port address (0x378, 0x278, 0x3BC)
Program without data polling (a little slower)
Disable retries of program enable command
Set timing specs according to the power supply voltage in [V] (default 3.0)
Set minimum SCK high/low time in micro-seconds (default 5)
Set FLASH maximum write delay time in micro-seconds
Set EEPROM maximum write delay time in micro-seconds
Set reset inactive (high) time in micro-seconds
Invert specified lines Use -v=3 option to see current settings.
Allow parallel programming of AT89S51 and AT89S52 devices.

Atmel Low Cost Programmer Serial Device Settings:

Set serial interface as /dev/ttyS* (default /dev/avr)
Set speed of the serial interface (default 19200)

Stk500 specific options:

Use Hi-V programming instead of SPI (default is SPI).
Read the ARef Voltage. Note that due to a bug in the stk500 firmware, the read value is sometimes off by 0.1 from the actual value measured with a volt meter.
Set the ARef Voltage. Valid values are 0.0 to 6.0 volts in 0.1 volt increments. Value can not be larger than the VTarget value.
Read the Vtarget Voltage. Note that due to a bug in the stk500 firmware, the read value is sometimes off by 0.1 from the actual value measured with a volt meter.
Set the VTarget Voltage. Valid values are 0.0 to 6.0 volts in 0.1 volt increments. Value can not be smaller than the ARef value.
Read the oscillator frequency in Hertz.
Set the oscillator frequency in Hertz, from 14.06 to 3686400.

Functions:

Upload "input_file" to the AVR memory.
Verify "input_file" (processed after the --upload opt.)
Download AVR memory to "output_file" or stdout.
Erase device.
Set active segment (auto-select for AVA Motorola output)

Fuse/Lock Bit Operations:

Read all fuses and print values to stdout
Write fuse low byte
Write fuse high byte
Write fuse extended byte
Write lock bits. Argument is a byte where each bit is:
Bit5 -> blb12
Bit4 -> blb11
Bit3 -> blb02
Bit2 -> blb01
Bit1 -> lb2
Bit0 -> lb1
Write lock bits [old method; deprecated].

Files:

Input file for the --upload and --verify functions in Motorola S-records (S1 or S2) or 16 bit Intel format
Output file for the --download function in Motorola S-records format, default is standard output

Other Options:

Set verbose level (-v equals -v=2, min/max: 0/4, default 1)
Print hash (default is 32 bytes)
Help
Print version information
Invoke shell-like terminal

AUTHOR

Written by Uros Platise.

REPORTING BUGS

Report bugs to <uisp-dev@nongnu.org>

SEE ALSO

http://savannah.nongnu.org/download/uisp/

COPYRIGHT

(c) 1997-1999 Uros Platise, 2000-2004 Marek Michalkiewicz

uisp is free software, covered by the GNU General Public License. You are welcome to change it and/or distribute copies of it under the conditions of the GNU General Public License.

September, 2022 uisp version 20050207