当前位置:网站首页>[proteus simulation] lcd1602+ds1307 key setting simple clock

[proteus simulation] lcd1602+ds1307 key setting simple clock

2022-06-23 21:41:00 perseverance52

【Proteus Simulation 】LCD1602+DS1307 Press the key to set a simple clock


  • Proteus Simulation demonstration
     Insert picture description here

Functional specifications

Set the current time by pressing the key , Pressing the key to adjust the time only realizes the setting of time, minutes and seconds , The date and week are written in the program code , The key cannot be adjusted , The function needs to be improved by itself .

Sample code

/* Main.c file generated by New Project wizard * * Created:  Thursday  6 month  23 2022 * Processor: AT89C51 * Compiler: Keil for 8051 */

/****************************************************  Circuit diagram description :  Turn the microcontroller on P2.7 and P1.0 Respectively with RTC( Real time clock ) The clock signal of SCL End   And data signals SDA End to end , RTC Of sout Pin and MCU P3.2 Connected to a ,RTC Of   The address is 11010000(0xD0) Independent keyboard k0~K3 Pick up P1.1~P1.3  Program function :  Use a clock chip ds1307 Make a real-time clock  *****
原网站

版权声明
本文为[perseverance52]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231853162946.html