Set up instruction array, called vRAM[], like this:
byte vRAM[5] = {0xc4, 0xc4, 0xc4, 0xc4, 0x00}; //Vram[] holds instructions
Note 1802 is reset, then fetches first $c4, then second etc. When adr = 5 it comes to instruction 0x00, that is IDL = idle, just step on spot and repeat IDL.
Worked as expected. Good. Should end all instruction arrays with IDL as it's a good and predictable stopper.
Subscribe to:
Post Comments (Atom)
Pi Pico and other Boards
Got a new Pi Pico and it looks very promising. Want to use Oled display with it.
-
Think I've got it. On 1802 I/O is almost like DMA. For OUT 1 (0x61) the byte cycle after instruction fetch puts the address in R(x) ...
-
Where we are at 23/3/2020 with 1802 project. Have 1802 hooked up to Arduino Mega2650 and running little programs that, for instance turn Q ...
-
JUst completed Mega 2650 board shield with 1802 on it. Used EasyEDA and sent design to JLPCB. Here's Schematic: and here's the p...
No comments:
Post a Comment