ADC0808运用总线.docVIP

  • 14
  • 0
  • 约小于1千字
  • 约 3页
  • 2018-05-18 发布于河南
  • 举报
ADC0808运用总线

程序 #include reg51.h #include intrins.h #include absacc.h #include stdio.h #include stdlib.h #include string.h #include math.h #define ADC0808 0xf000 unsigned char Adbuf[8]; float Dy[8]; float T[8]; code char LEDTAB[]= { 0x3f,0x06,0x5b,0x4f,0x66, 0x6d,0x7d,0x07,0x7f,0x6f, }; void Delayms(unsigned int ms) { while(ms) { unsigned char i; for (i=0; i240; i++); ms--; } } void ex0int() interrupt 0 { } unsigned char Ad(char loop) { char c; XBYTE[ADC0808]=loop; Delayms(1); c=XBYTE[ADC0808]; XBYTE[ADC0808]=loop; Delayms(1); c=XBYTE[ADC0808]; return c; } void Ads() {

文档评论(0)

1亿VIP精品文档

相关文档