summaryrefslogtreecommitdiff
path: root/avr_isp/atmega88/README
blob: 3c262df66a2515eecb1dd342ef102f5aa4b8a910 (plain)
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
-------------------------------------------------------------------------------
AVR ISP / Atmel ATmega88
-------------------------------------------------------------------------------

This is a set of example captures of the AVR in-system programming (ISP)
protocol.

The device used for ISP was a USBprog with AVRISP mkII compatible firmware.

The target was a board with an Atmel ATmega88 chip.

The PC software used for controlling the programmer was avrdude 5.11.1.

Details:
http://www.atmel.com/images/doc0943.pdf ("AVR910: In-System Programming")
http://www.usbprog.org
http://www.atmel.com/devices/atmega88.aspx
http://www.nongnu.org/avrdude/


Logic analyzer setup
--------------------

The logic analyzer used was a Saleae Logic (at 4MHz):

  Probe       AVR ISP header
  -------------------------
  1 (black)   MOSI
  2 (brown)   RST
  3 (red)     SCK
  4 (orange)  MISO


Data
----

The following avrdude commands were captured:

  avrdude -c avrisp2 -P usb -p m88 -vvv
  avrdude -c avrisp2 -P usb -p m88 -e -vvv
  avrdude -c avrisp2 -P usb -p m88 -U lfuse:r:lfuse.hex:i -vvv
  avrdude -c avrisp2 -P usb -p m88 -U flash:r:empty.dd:r -vvv

The respective avrdude output is available in avrdude_log*.txt and lfuse.hex.

The sigrok command line used was:

  sigrok-cli -d fx2lafw:samplerate=4mhz -p 1=MOSI,2=RST,3=SCK,4=MISO \
             -o <file> --time <time>