新手__单片机LCD时钟(带时间设置功能有注释).docVIP

  • 1
  • 0
  • 约1.32万字
  • 约 14页
  • 2019-10-15 发布于湖北
  • 举报

新手__单片机LCD时钟(带时间设置功能有注释).doc

#include reg52.h sbit RS = P2^6; sbit RW = P2^5; sbit LCDEN = P2^7; sbit key1 = P1^0; sbit key2 = P1^1; sbit key3 = P1^2; sbit key4 = P1^3; sbit key5 = P1^4; sbit key6 = P1^5; sbit key7 = P1^6; sbit key8 = P1^7; #define N 50000 int count = 0; int year = 2000, month = 1, day = 1; int hour = 0, minute = 0, second = 0; unsigned char set_date_0[]=press key to set date; unsigned char set_date_1[]=2000.01.01; unsigned char set_time_0[]=00:00:00; unsigned char finish_set[]=setup complete; unsigned char year_1, year_2, year_3, year_4; unsigned char month_1, month_2; unsigned char day_1, day_2; unsig

文档评论(0)

1亿VIP精品文档

相关文档