I am running the Internal OSC at 16MHz. I did try slowing the clock down and it still didn't work. I am not sure if the Clock is whacked or if my Logic Analyzer is just too slow to capture it (500kHz is as fast as it will run on my computer for some reason).
I am still leaning toward a bug in Picbasic Pro 2.60C (Not because it isn't working at all, but because the value being returned is directly related to to the binary value of the pin it is connected to). If I connect to pin ra.0 I get a return value of 1, ra.1 returns a value of 2, ra.2 = 4... This shouldn't be happening unless I either made some strange mistake with variable ussage, or if there is an internal bug in the compiler. I saw a similar wierd sort of incremental value on the 18f46k22 while reading ADC lines and it turnned out to be a bug in the complier (which got fixed with 2.60c).
One other thing to note is that the EEPROM address on the Shiftin uses two byte variables while the I2Cread/write uses one 16-bit word variable for the address.
Jim
Bookmarks