8051 Interfacing With DS1307 RTC and Displaying Timestamp in LCD
by embedotronics in Circuits > Microcontrollers
4406 Views, 0 Favorites, 0 Comments
8051 Interfacing With DS1307 RTC and Displaying Timestamp in LCD
In this tutorial we have explained you about how can we interface 8051 microcontroller with ds1307 RTC. Here we are displaying RTC time in lcd using proteus simulation.
Software Used:
As we are showing proteus simulation so FOR CODING AND SIMULATION YOU REQUIRED:
1 Keil uvision: Their are lots of product from keil. so you will be required c51 compiler. You can download that software from here
2 Proteus Software for simulation: This is the software to show simulation. You will get lot of information to download this software.
If you are doing it in hardware then you would require one software that is flash magic to upload the code in your hardware. Remember flash magic is developed by nxp. So you can not upload all 8051 family microcontroleer through this software. So Philips based controller only you can upload.
Components Required:
Here in our demo video we are using proteus simulation but definitely if you are doing it in your hardware you will be required these components for this project:
8051 Development board: So if you have this board it will be better so that you can easily upload the code by yourself.
LCD 16*2: This is 16*2 lcd . In this lcd we have 16 pins.
DS1307 RTC Module: The module based on DS1307, The DS1307 serial real-time clock (RTC) is a low-power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM. Address and data are transferred serially through an I²C, bidirectional bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator. The DS1307 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply. Timekeeping operation continues while the part operates from the backup supply.
We have showed one image above of training kit of 8051, there lcd and rtc module section is already there in the board so if you purchase that board it will be easy for you to interface this ds1307 module, else if you purchase small development board then you have to also buy one lcd and one RTC module with coin cell.
USB to UART converter: CP1202 USB UART converter module, a very simple board to quickly connect USB to Serial or USB to TTL or Serial to USB. You can easily communicate with microcontrollers / microprocessors from your computer through the module.
Circuit Diagram
Code:
You can get the source code from our GitHub link.
Video:
The whole project description is given in the above video.
If you have any doubt regarding this project feel free to comment us below. And if you want to learn more about embedded system you can visit our youtube channel.
Please visit and like our Facebook Page for frequent updates.
Thanks & Regards,
Embedotronics Technologies