Skip to content

Embedded experiments and interfaces. Contains different embedded interfaces and projects which spices up once embedded knowledge

Notifications You must be signed in to change notification settings

Bggopal/Embedded-projects

Repository files navigation

Embedded_lab_mtech

Lab files for embedded lab Mtech

DS1307RTC-Interface-with-PIC16F877A

This page shows, interface of DS1307 RTC with PIC16F877A microcontroller and display time, date and day on a 16x2 LCD

DS1307

Real Time Clock or RTC is a system that keeps track of the current time and can be used in any device which needs to keep accurate time. DS1307 module is one of the most affordable and common RTCs modules. It can accurately keep track of seconds, minutes, hours, days, months, and years. DS1307 RTC communicates with the microcontroller using I2C protocol.

DATASHEET for DS1307 Here

I2C Communication in PIC16F877A

I2C is a multi-master, multi-slave (half-duplex) communication protocol. On an I2C bus, one can have more than 1 Master and multiple slaves. It communicates over two lines and can handle data speeds of several kHz. SDA and SCL, or Serial data and Serial clock, are the two pins for I2C communication in most microcontrollers. The SDA line transmits and receives data, whereas the SCL line generates clock pulses for required communication.

PIC16f887A provides an MSSP(Master synchronous Serial port) module which can be configured to work either as SPI or an I2C. In all, there are 6 registers associated with the MSSP module including 2 control registers and 1 status register. These registers have individual bits for SPI as well as I2C, with certain bits having functions for both. Typical I2C ciruit connection in PIC16F877A

More details on PIC I2C regeisters Can be found HERE and in DATE SHEET page num 74

Circuit Diagram to Interface DS1307 with PIC16F877A

DOWNLOADS

DOWNLOAD THE PROJECT FOLDER and SIMULATION FILES
HERE

About

Embedded experiments and interfaces. Contains different embedded interfaces and projects which spices up once embedded knowledge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published