1
AVRDude / AT89LP4052 and opcode preamble
This is what the write instruction format would need to look like:
Code: [Select]
memory "flash"
size = 4096;
...
write = " 1 0 1 0 1 0 1 0", # Preamble
" 0 1 0 1 0 0 0 0", # Opcode
" 1 1 1 1 a11 a10 a9 a8", # Addr High
" a7 a6 a5 a4 a3 a2 a1 a0", # Addr Low
" i i i i i i i i"; # DataLn 0 .. DataLn N (up to 32)
# ... but now it's 40 bytes
...
My Setup, but I haven't actually been able to test it yet because of the Part Definition issue.
Code: [Select]
Bus Pirate <> AT89LP4052I'm a little worried about the AUX pin behaving correctly. Is there anything else I need to change in the avrdude.config file or on the Bus Pirate?
GND -- 10 (GND)
+5V -- 20 (VCC)
AUX -- 1 (RST)
CLK -- 19 (P1.7 - SCK: SPI Clock)
MISO -- 18 (P1.6 - MISO: SPI master-in/slave-out)
MOSI -- 17 (P1.5 - MOSI: SPI master-out/slave-in)
CS -- 16 (P1.4 - SS: SPI slave select)