First I wrote an Arduino script to test the display (a 1602A display, 16 characters, 2 lines, as you can get cheap on eBay), but without any display library, to make it easier to port to the C64, see the file arduino-test.c. Then I used a NOR gate and a 8 bit latch and soldered it to my cart-proto board, as you can see in this circuit diagram:
You can download the Gerber files for the board from here and e.g. buy boards from Electrow or any other PCB manufacturer. The finished test setup with display looks like this:
Then I ported the program to a C program for cc65 for the C64, see the file lcd-test.c. Instructions how to compile it are at the top. The compiled program is lcd-test.prg, which I copied to a SD-card and the load from a SD2IEC drive to my C64. The result:
Some interesting notes: if you use a "poke" command from BASIC, then a "STA($14),y" is executed, which results curiously in two impulses on the IO1 line:
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.