实验四动态显示实验.docVIP

  • 4
  • 0
  • 约小于1千字
  • 约 2页
  • 2017-06-07 发布于重庆
  • 举报
实验四动态显示实验

图1 动态显示实验电路原理图 #include #define uint unsigned int #define uchar unsigned char uchar code table[] 0xc0,0xf9,0xa4,0xb0, 0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x83, 0xc6,0xa1,0x86,0x8e, 0xa3,0xa1 ; void delay uint z uint x,y; for x z;x 0;x-- for y 110;y 0;y-- ; void main while 1 P2 0x01; P0 table[9]; delay 5 ; P2 0x00; P2 0x02; P0 table[16]; delay 5 ; P2 0x00; P2 0x04; P0 table[16]; delay 5 ; P2 0x00; P2 0x08; P0 table[17]; delay 5 ; P2 0x00; P2 0x10; P0 table[9]; delay 5 ; P2 0x00; P2 0x20; P0 table[16]; delay 5 ; P2 0x00; P2 0x40; P0 table[16]; delay 5

文档评论(0)

1亿VIP精品文档

相关文档