PIC32MX: I2C External RAM

From Mech
Jump to navigationJump to search

Original Assignment

Do not erase this section!

Your assignment is to use I2C communication to send data from the PIC32 to a PCF8570P SRAM chip.

Overview

This page discusses work toward sending data to a PCF8570P SRAM chip. Basic I2C communication information, chip data, circuit diagram, and a partially functioning code are given. Prior to the code is a brief explanation of where the code is failing and why no data is being transmitted between the PIC 32 and the PCF8570P.

Circuit

Include a schematic and give any part numbers. A photo of your circuit is OK, but not as a replacement for a schematic.

Code

Where possible, make it a single piece of well-commented cut-and-pastable code, or at least make each function that way, so others can easily copy it. Most comments should be in the code itself; outside the code (on the wiki) should only be explanatory comments that are too cumbersome to include in the code.