]> sigrok.org Git - sigrok-dumps.git/blob - avr_isp/atmega88/README
Samples for the decoder for STM8 series MCUs SWIM protocol.
[sigrok-dumps.git] / avr_isp / atmega88 / README
1 -------------------------------------------------------------------------------
2 AVR ISP / Atmel ATmega88
3 -------------------------------------------------------------------------------
4
5 This is a set of example captures of the AVR in-system programming (ISP)
6 protocol.
7
8 The device used for ISP was a USBprog with AVRISP mkII compatible firmware.
9
10 The target was a board with an Atmel ATmega88 chip.
11
12 The PC software used for controlling the programmer was avrdude 5.11.1.
13
14 Details:
15 http://www.atmel.com/images/doc0943.pdf ("AVR910: In-System Programming")
16 http://www.usbprog.org
17 http://www.atmel.com/devices/atmega88.aspx
18 http://www.nongnu.org/avrdude/
19
20
21 Logic analyzer setup
22 --------------------
23
24 The logic analyzer used was a Saleae Logic (at 4MHz):
25
26   Probe       AVR ISP header
27   -------------------------
28   1 (black)   MOSI
29   2 (brown)   RST
30   3 (red)     SCK
31   4 (orange)  MISO
32
33
34 Data
35 ----
36
37 The following avrdude commands were captured:
38
39   avrdude -c avrisp2 -P usb -p m88 -vvv
40   avrdude -c avrisp2 -P usb -p m88 -e -vvv
41   avrdude -c avrisp2 -P usb -p m88 -U lfuse:r:lfuse.hex:i -vvv
42   avrdude -c avrisp2 -P usb -p m88 -U flash:r:empty.dd:r -vvv
43
44 The respective avrdude output is available in avrdude_log*.txt and lfuse.hex.
45
46 The sigrok command line used was:
47
48   sigrok-cli -d fx2lafw:samplerate=4mhz -p 1=MOSI,2=RST,3=SCK,4=MISO \
49              -o <file> --time <time>
50