temtronic
Joined: 01 Jul 2010 Posts: 9221 Location: Greensville,Ontario
|
|
Posted: Fri Jan 08, 2021 5:45 pm |
|
|
as a start...
1st program to run would be PCM P's 'I2C scanner' from the code library. It will confirm your PIC can 'see' the device.
2nd use the datasheet and confirm you can read the various registers and that they contain the default values.
Creating the driver depends on how many features you need. Usually the mfr will have 'basic test code' that you can use as a 'template' to at least test the device.
Try asking Google for a driver ! Often, others have written one, for another micro, different language BUT by it's not that hard to 'transpose' or 'recode' into CCS C. Start with a basic function, get it working, then add others. Do NOT code the entire driver in one sitting. |
|