Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Problem interfacing pic16f1936 with i2c serial eeprom 24lc01b

$
0
0
I'm trying to read and write to an i2c serial eeprom (24lc01b) from a pic16f1936 to test functionality on an existing PCB design that has been implemented already. I'm using a library I got from the microchip website that was intended for the 16f877 using the hitech c compiler (Lite Mode). I just renamed constants (e.g. PSPIF to SSPIF; STAT_CKE to CKE) in the header file so it could compile. It compiles, I upload it to the board and no joy... Here's the header file:

Code (Text):
  1. ...
Problem interfacing pic16f1936 with i2c serial eeprom 24lc01b

Viewing all articles
Browse latest Browse all 4923

Trending Articles