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

PIC16F877a + I2C Code

$
0
0
Hai,

Here i am trying to communicate sensor ad7156 thorugh I2C communication in pic.
1. Before doing i am checking the status of SDA and SCL, its is still in ideal stage. there was no change of signal in logic analyzer
2. USing MPLAB IDE for coding it was build successful. still not owrking.
somebody can help on this
uploading code here,
Code (C):
  1. #include<pic.h>
  2.  
  3. typedef unsigned char int8;
  4. int i;
  5. void delay()
  6. {
  7.     for(i=0;i<10000;i++);
  8. }
  9. void init()
  10. {
  11.     TRISC=0X18;
  12.     SSPADD=26;...
PIC16F877a + I2C Code

Viewing all articles
Browse latest Browse all 4923

Trending Articles