App note: Slave I2C communication and setup on PIC devices with MSSP modules

Posted on Saturday, August 4th, 2012 in app notes by DP

Here is an app note from Microchip describing how to setup, and implement slave I2C communication on Pic devices with MSSP modules. It also features assembler code for PIC18s and PIC16s.

Many devices in the PICmicro family have a Synchronous Serial Port (SSP) or Master Synchronous Serial Port (MSSP). These peripherals can be used to implement the SPI TM or I2C communication protocols. The purpose of this application note is to provide the reader with a better understanding of the I2C protocol and to show how PICmicro devices with the SSP or MSSP modules are used as a Slave device on an I 2 C bus.

This entry was posted on Saturday, August 4th, 2012 at 1:00 pm and is filed under app notes. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

3 Responses to “App note: Slave I2C communication and setup on PIC devices with MSSP modules”

  1. dccharacter says:

    Be careful with the source code provided. Also note differences in different versions of MSSP realization in PIC devices (some flags do not go off in newer MSSP module used eg in some PIC18s and PIC24th). Check conditions, be careful with clock stretching and learn exactly when to release the clock line – otherwize it’s not going to work.

  2. pokey says:

    Seconded. Read the app note carefully, determine if your pic has an SSP or MSSP, and study the sample code. It’s better to follow the state machine model given than to be clever and roll your own.

  3. Regena says:

    Hi, its nice article about media print, we all be familiar with media is a impressive source of information.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Jack: I hope everyone at Dangerous Prototypes wins a share of the MegaMillions jackpot tonight.
  • Edward Mallon: While I loved the Nokia 5110 LCD's readability in full sun, the pressure sensitivity was a real problem for the underwater units. So I started...
  • ConnyCola: I like this article a lot! And in contrast to Max I love to hear what you guys are doing in Shenzen and Hong Kong....
  • Max: Thanks for the writeup, it's always interesting to read about a different culture. Other than that though I'm afraid I was spoiled by living neither...
  • Tepa: Heps keikkaa