seanshpark / at89c2051

play with AT89C2051 and AT89C4051
Apache License 2.0
0 stars 0 forks source link

Programmer with RPi #1

Closed seanshpark closed 4 weeks ago

seanshpark commented 1 month ago

Build a programmer with Raspberry Pi.

why?

seanshpark commented 1 month ago

Datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/doc0368.pdf

Programming algorithm is described in 11. Programming The Flash

seanshpark commented 1 month ago

Programming needs +12v

Anyway, we need a logic signal controlled 0V-5V-12V circuit.

--> https://www.embedic.com/technology/details/manufacturing-and-debugging-of-microchip-at89c2051-programmer shows a circuit with 2 NPN + 1 PNP TR for this.

--> with some little touch,

seanshpark commented 1 month ago

MCP23017 control test

GPB1 GPB0 Out
L L 5V
L H 0V
H L 12V
H H 12V
seanshpark commented 1 month ago

Invert GPB0

GPB1 GPB0 Out Etc
L L 12V
L H 12V don't use
H L 5V
H H 0V

Output of 0V is necessary with H H input as power on reset state of MCP23017 will be H

seanshpark commented 4 weeks ago

done