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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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