5045的底层操作程序,使用时根据实际接线情况对程序中管脚定义部分做适当修改 //定义管脚 sbit SCK=P3^4 //时钟 sbit SI=P3^5 //CPU--->5045 s
5045的底层操作程序,使用时根据实际接线情况对程序中管脚定义部分做适当修改 //定义管脚 sbit SCK=P3^4 //时钟 sbit SI=P3^5 //CPU--->5045 sbit SO=P3^5 //5045-->CPU sbit CS=P3^6 //片选...
5045的底层操作程序,使用时根据实际接线情况对程序中管脚定义部分做适当修改 //定义管脚 sbit SCK=P3^4 //时钟 sbit SI=P3^5 //CPU--->5045 sbit SO=P3^5 //5045-->CPU sbit CS=P3^6 //片选...
/*SPI规范:Data is always clocked into the device on the rising edge of SCK a-*/ /* nd clocked out of the device on the falling edge of SCK.All instruc...
sbit CS = P1^0 sbit SCK = P1^6 sbit SIN = P1^7 sbit SOUT = P1^5 sbit WP = P1^1 void XReady(void) void XSendByte(unsigned char ...
PIC 16F876A-4MHz 和STH11, data pin =PortA.0, sck pin =PortC.3....
I2C driver for PIC, PICC compiler - bitbanged. Needs pull-up resistor on SCK and SDA and ports set for open collector...