CFA-533 I2C source code for Microchip PIC 24F microcontroller with CRC

Teej

New member
Hey folks.

In a recent thread, CF TECH pointed me to the AVR-based demo code that implements the CRC checks and does keyboard scanning and screen updating.

I ported the back end calls to PIC routines (intentionally leaving as much of the main routine alone as I could). As always there are many ways to do things, and this is just one of them. I'm making use of some of the data structure and CRC routine, but I prefer to keep things like this interrupt / state machine driven rather than using delay loops. There are some references left to "TWI" (two wire interface) which is what AVR calls I2C (they didn't pay the license fee to call it I2C in their products.)

Hope this helps someone.
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

Attachments

Top