L3G4200D测试程序.docVIP

  • 14
  • 0
  • 约 13页
  • 2017-02-08 发布于河南
  • 举报
L3G4200D测试程序

//*************************************** // L3G4200D IIC测试程序 // 使用单片机STC89C51 // 晶振:11.0592M // 显示:LCD1602 // 编译环境 Keil uVision2 // 参考宏晶网站24c04通信程序 // 时间:2011年3月1日 // http:// //**************************************** #include REG51.H #include math.h //Keil lirary #include stdio.h //Keil lirary #include INTRINS.H #define uchar unsigned char #define uint unsigned int #define DataPort P0 //LCD1602数据端口 sit SCL=P1^0; //IIC时钟引脚定义 sit SDA=P1^1; //IIC数据引脚定义 sit LCM_RS=P2^5; //LCD1602命令端口 sit LCM_RW=P2^6; //LCD1602命令端口 sit L

文档评论(0)

1亿VIP精品文档

相关文档