msp430g2553模拟iic接口

时间:2017-09-13 13:25:58
【文件属性】:

文件名称:msp430g2553模拟iic接口

文件大小:5KB

文件格式:TXT

更新时间:2017-09-13 13:25:58

模拟iic接口

msp430g2553模拟iic接口 #include #define SlaveWriteAddress 0xa0 #define SlaveReadAddress 0xa1 #define OwnAddress 0xee #define I2CSDA BIT1 #define I2CSCL BIT2 #define I2CSDA_SET_1 P1OUT |= I2CSDA #define I2CSDA_SET_0 P1OUT &=~ I2CSDA #define I2CSCL_SET_1 P1OUT |= I2CSCL #define I2CSCL_SET_0 P1OUT &=~ I2CSCL #define I2CSDA_INPUT_IN P1IN&I2CSDA


网友评论

  • 有参考价值,可用