JohnDMcMaster / open-tl866

Open Programming Firmware for the TL866A Programmer.
BSD 2-Clause "Simplified" License
131 stars 22 forks source link

Misc cleanup #42

Closed JohnDMcMaster closed 6 years ago

JohnDMcMaster commented 6 years ago

Changes:

TODO (future commits):

Sample help output:

CMD> ?
open-tl866 (bitbang)
VPP
E val      VPP: enable and/or disable (VPP_DISABLE/VPP_ENABLE)
V val      VPP: set voltage enum (VPP_SET)
p val      VPP: set active pins (VPP_WRITE)
VDD
e val      VDD: enable and/or disable (VDD_DISABLE/VDD_ENABLE)
v val      VDD: set voltage enum (VDD_SET)
d val      VDD: set active pins (VDD_WRITE)
GND
g val      GND: set active pins (GND_WRITE)
I/O
t val      I/O: set ZIF tristate setting (ZIF_DIR)
T          I/O: get ZIF tristate setting (ZIF_DIR_READ)
z val      I/O: set ZIF pins (ZIF_WRITE)
Z          I/O: get ZIF pins (ZIF_READ)
Misc
l val      LED on/off (LED_ON/LED_OFF)
m z val    Set pullup/pulldown (MYSTERY_ON/MYSTERY_OFF}
s          Print misc status
b          Reset to bootloader (RESET_BOOTLOADER)

Sample EPROM app output:

$ python3 examples/eprom_read.py 0 64
00000000  00 00 F0 08 79 FF 00 F9  00 50 FC 00 7C 00 00 7C  |....y....P..|..||
00000010  F0 08 C9 FC 00 00 71 B9  00 02 B9 00 06 B9 00 0A  |......q.........|
00000020  B9 00 0E 79 00 00 79 00  12 FC F0 E6 74 FC F0 E2  |...y..y.....t...|
00000030  7C F9 F7 00 7C 0A 01 7C  26 03 7C 0B 01 7C 40 03  ||...|..|&.|..|@.|
Read 64 bytes in 0.6 seconds (109.0 bytes/sec)
Kiboneu commented 6 years ago

From a high-level overview the PR looks good to me. No significant notes to add.