Hello,
I am trying, unsuccessuly up to now, to make some I2C communications between a 18F2685, a DAC (MAX517) and two I/O expanders (23008), everybody is on the same I2C bus, the DAC receiving data from the PIC and the I/O expanders being read by the PIC.
I would like to use the PBP commands I2CREAD and I2CWRITE but they look to be written for older PICS.
Do they also work with 18F PICS ? If yes, do I need to make some kind of preliminary initialisation, for example set up the I2C pins via TRISC or configure the MSSP registers ? Do I need to setup the bus speed or anything else (address width for example ?)
I have an other question about the addresses. They are supposed to be 7 bits width, but they look as being left justified. So, do they need to be passed to the PBP instructions as left justified or right justified variables. For example how should I pass the address $2c : $2c or $58 ?
Any help greatly appreciated
Best regards
MikeBZH
Bookmarks