<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1469838082587_13537">Hi list, first post here in a few years..</div><div id="yui_3_16_0_ym19_1_1469838082587_13433"><br></div><div id="yui_3_16_0_ym19_1_1469838082587_13545" dir="ltr">So i'm trying to revive my old Arp Quadra again. The original computer was dead and i couldn't find a new one so i wrote an operating system for it back a few years ago. Well it seems that the old MPLAB i used with my PIC isn't really compatible anymore so i'm trying to transfer the code to an Arduino instead since it'll be more portable anyway and i can more easily share it with other folks. But i'm running into some problems interfacing the Intel 8243 I/O Expander chip. In theory it seems really straight forward but for some reason the arduino won't do what the old pic did (and still does) - so i need a bit of a sanity check. The datasheet for the IC can be found here (http://www.cpu-galaxy.at/cpu/ram%20rom%20eprom/other_intel_chips/other_intel-Dateien/8243_Datasheet.pdf) and my thinking for the proper interfacing sequence is as follows:</div><div id="yui_3_16_0_ym19_1_1469838082587_14096" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1469838082587_14085" dir="ltr">set PROG HIGH (since the port number is transfered on the first high-to-low transition)<br></div><div id="yui_3_16_0_ym19_1_1469838082587_13956" dir="ltr">set ~CS HIGH (disable the chip)<br></div><div id="yui_3_16_0_ym19_1_1469838082587_14052" dir="ltr">set the port address ORed with the 3rd bit HIGH for write mode</div><div dir="ltr">set ~CS LOW (enable the chip)</div><div dir="ltr">set PROG LOW (to transfer the port address and instruction)</div><div dir="ltr">set data to be written to the address</div><div id="yui_3_16_0_ym19_1_1469838082587_14088" dir="ltr">set PROG HIGH (to transfer the data to the port)</div><div id="yui_3_16_0_ym19_1_1469838082587_14087" dir="ltr">set ~CS HIGH (to disable the chip from changing output)<br></div><div id="yui_3_16_0_ym19_1_1469838082587_14086"><br></div><div id="yui_3_16_0_ym19_1_1469838082587_14106" dir="ltr">everything with the appropriate timing delays of course - am i missing something? This is how i did it in my PIC code and it works but for the life of me it won't work with my arduino....</div><div dir="ltr"><br></div><div dir="ltr">Thanks</div><div dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1469838082587_14098" dir="ltr">Karl<br></div></div></body></html>