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,
PIC16F877a + I2C Code
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):
- #include<pic.h>
- typedef unsigned char int8;
- int i;
- void delay()
- {
- for(i=0;i<10000;i++);
- }
- void init()
- {
- TRISC=0X18;
- SSPADD=26;...