sendstartbit.c
来自「AT90S8515读写AT17C010源程序」· C语言 代码 · 共 33 行
C
33 行
// SendStartBit.c
// generates a start bit
// start bit is a 1 to 0 transition on SDA while SCL is high
/*
____________
/
SCL ___/
__________
\
SDA \_____
*/
#include "at17c.h"
extern void WriteSCL(unsigned char state);
extern void WriteSDA(unsigned char state);
extern void BitDelay(void);
extern unsigned char SetSCLHigh(void);
void SendStartBit(void) {
WriteSDA(1);
BitDelay();
SetSCLHigh();
BitDelay();
WriteSDA(0);
BitDelay();
WriteSCL(0);
BitDelay();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?