Closed seanshpark closed 4 weeks ago
Datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/doc0368.pdf
Programming algorithm is described in 11. Programming The Flash
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,
MCP23017 control test
rpigpio2
repo for testingGPB1 | GPB0 | Out |
---|---|---|
L | L | 5V |
L | H | 0V |
H | L | 12V |
H | H | 12V |
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
done
Build a programmer with Raspberry Pi.
why?