brid0030
- 10th September 2009, 23:08
I've been trying to implement I2C communication with a PIC10F222 and an EEPROM with no success. I've reached the end of my mental resources (it was a short trip), and hope that someone in picforumland will help. I have the device working in terms of inputs and outputs (blinky and button response programs are OK). But when I try to do I2CWRITE and I2CREAD I get nothing. I tried using MPLAB SIM only to learn that it cannot display I2C commands at all (not with the two PICs I tried anyway). So then I hooked up a logic analyzer and was able to visualize I2C with a PIC16F688, but there was just a flatline with the PIC10F222.
So, are PICBASIC I2C commands possible with this PIC? If not is there some possibility of implementing a rudimentary I2C subroutine in PICBASIC (If only I could do assembly...)
I know I should just choose another PIC, but I really want to use that tiny SOT23 package.
Thanks for any help...
So, are PICBASIC I2C commands possible with this PIC? If not is there some possibility of implementing a rudimentary I2C subroutine in PICBASIC (If only I could do assembly...)
I know I should just choose another PIC, but I really want to use that tiny SOT23 package.
Thanks for any help...