Skip to content

Commit

Permalink
avr_isp: add dump to test sigrokproject/libsigrokdecode#113
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomnetmarc committed Mar 5, 2024
1 parent e2c49eb commit 2b1af0d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions avr_isp/atmega48/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-------------------------------------------------------------------------------
AVR ISP / Atmel ATmega48
-------------------------------------------------------------------------------

This is an example capture of the AVR in-system programming (ISP) protocol.

The device used for ISP was a ESP32-S2 containing code to progam the target using ISP.

The target was a board with an Atmel ATmega48 chip.

The capture contains the serial programming instructions:
- Programming enable
- Chip erase
- Poll RDY/nBSY
- Load program memory page, high byte
- Load program memory page, low byte
- Read signature byte
- Read program memory, low byte
- Read lock bits
- Read fuse bits
- Read fuse high bits
- Read extended fuse bits
- Read calibration byte
- Write program memory page
- Write fuse bits
- Write fuse high bits
- Write extended fuse bits

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

The logic analyzer used was a Cypress FX2 development board (at 2MHz):

Probe AVR ISP header
-------------------------
0 (black) SCK
1 (brown) MISO
2 (red) MOSI
3 (orange) CS
Binary file added avr_isp/atmega48/atmega48.sr
Binary file not shown.

0 comments on commit 2b1af0d

Please sign in to comment.