Menu

PIC as an I2C slave peripheral?

Help
2016-05-10
2016-05-13
  • James Barber

    James Barber - 2016-05-10

    Hello,

    I looked around the forums a bit but didn't see any specific examples of using a PIC as an I2C slave peripheral with code developed in GCB.

    What I would like to do is leverage the GPIO and ADC's on the PIC for use by a host (master) processor. Normally, the slave peripheral would populate and expose a "register map" that the master can read to get to the cheese...

    Has anyone successfully done this with GCB? I have example code in C, but since I deal with a handful of different micros at work and several different C compilers I'd rather use GCB if possible.

    Thanks,
    -audiomath

     
  • Anobium

    Anobium - 2016-05-11

    Hi,

    Examples can be found in the Help file and there are working examples in the demonstration folder of your installation. I am assuming you have the latest build.

     
  • James Barber

    James Barber - 2016-05-13

    I'm sure I don't have the latest build, mine's probably at least a year old
    I'll update and check the docs/demos.

    Thanks!
    - audiomath

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.