Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

C51: 8051 - I2C BitBang (1 Replies)

$
0
0
Im using I2C bitbang and Im facing an issue. I think I need a delay between SCL and SDA lines. Im not sure how much the delay needs to be. Can someone check my I2C code to see if everything checks out? I want to make sure its not a software mistake. #include <at89c51ic2.h> #include <stdio.h> #define SDA P0_0 #define SCL P0_1 void I2CInit(){ SDA = 1; SCL = 1; } void I2CStart(){ SCL = 1; I2CDel

Viewing all articles
Browse latest Browse all 3049

Trending Articles