Originally Posted by
Qacer
I am using a PIC12F675. My datapin is GP0. The clockpin is GP1. The I2C device that I want to use is characterized as a slave-transceiver. The datasheet states that its "IC address C0: 1100000." Looking through the PBP manual, it says I2CWRITE DataPin,ClockPin,Control, {Address,}, Value, Label.
I am not quite sure what to put down in the Control option. I do not see any references to the Control option in the datasheet.
Use the adress of the slave-device as control.
Originally Posted by
Qacer
Also, if I want to read data from the I2C device, do I need to set TRISIO and GPIO to inputs before invoking the I2CREAD routine?
No.
Originally Posted by
Qacer
Another thing, the I2C datasheet does not state any pause between writing, so am I right to assume that I can just send multiple bytes in one I2CWRITE statement?
Yes. It depends on your slave-device what does happen....
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Bookmarks