Thanks for your help.
Polling continuosly isn't the best (i think) but which serin and serout command?I mean how can both recognize each other?
pcf8574 has a built in address(btw is 01110000) but how about the pics?
roberto
Thanks for your help.
Polling continuosly isn't the best (i think) but which serin and serout command?I mean how can both recognize each other?
pcf8574 has a built in address(btw is 01110000) but how about the pics?
roberto
PICs can only act as MASTER using PICBASICs IC2READ and I2CWRITE commands.
If you want to use a PIC as a SLAVE, then you need to write your own routines to do that. You can then assign whatever address you want to your SLAVE PIC - they don't come with a pre-assigned I2CSLAVE address because they don't come with integral I2CSLAVE software. It's up to YOU to create that software.
I would refer you to Microchip Application Note AN734...
http://ww1.microchip.com/downloads/e...tes/00734a.pdf
But don't blindly copy it without understanding... there's some serious errors and omissions (as most Microchip Application Notes seem to have) that will prevent the code from operating correctly. However the theory is reasonably all in place.
Bookmarks