1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
##
## $Id: mk2-protocol.txt 110 2005-05-27 20:42:13Z joerg_wunsch $
##
## Contrubuted by Colin O'Flynn <coflynn@newae.com>
##
##
## NB: This file has only historical value.
## Refer to doc2587 from Atmel (Appnote AVR067).
##
Get Voltages
1B aa 00 02 00 00 00 0E 03 06 bb cc
aa seems to increase after each command
General Command Syntax
[Sync Byte] [Message Count] [Data] [Checksum LSB] [Checksum MSB]
Sync Byte: 1B
Message Count: Computer increments this every time it sends a message, JTAG responds
with same value that was sent to it.
Checkmsum: CRC16,
"initial: 0xFFFF
poly: 0x1021
mode: reflect input, reflect remainder
The CRC is calculated over all bytes(including 0x1B), byte order is LSB, MSB"
^^ Thanks to "springbob" on AVRFreaks for this!
--------DATA SENT TO JTAG-----------
COMMANDS
00 01 00 00 00 0E 01: Sync
00 01 00 00 00 0E 13: Erase Device
00 01 00 00 00 0E 14: Enter Programming Mode
00 01 00 00 00 0E 15: Leave Programming Mode
--------RESPONSES FROM JTAG---------
00 1C 00 00 00 0E 86 01 FF s1L s1h 00 FF s2L s2H 00 00: Sync response including versin info
00 01 00 00 00 0E 80: OK
|