1302 时钟显示程序和仿真图.docVIP

  • 2
  • 0
  • 约1.15万字
  • 约 13页
  • 2019-10-29 发布于江苏
  • 举报
#includereg52.h #includeabsacc.h #define uchar unsigned char #define uint unsigned int unsigned second,minute,hour,day,month,week,year; char cashe[4]; /*****************************************************************************************************/ /*sbit ds=P0^0; //数据打入口 sbit E1=P2^4; //74HC154-E1 为0开列输出 显示允许控制信号端口 sbit stcp=P0^2; //74HC595-ST_CP 上升沿--移位寄存器的数据进入数据存储寄存器 输出锁存器的时钟信号端口 sbit shcp=P0^1; //移位数据脉冲位数据脉冲位数据脉冲位数据脉冲 sbit MR=P0^3; //74HC595-MR 为0将移位寄存器的数据清0 /*****************************************************************************************************/ /

文档评论(0)

1亿VIP精品文档

相关文档