📄 sendstopbit.c
字号:
// SendStopBit.c
// generates a stop bit
// assumes SCL is low
// stop bit is a 0 to 1 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 SendStopBit(void) {
WriteSDA(0);
BitDelay();
SetSCLHigh();
BitDelay();
WriteSDA(1);
BitDelay();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -