0% found this document useful (0 votes)
178 views11 pages

Real Time Clock (Ds1307)

The document describes a real-time clock (DS1307) chip that provides timekeeping functions. It contains a real-time clock, 56 bytes of non-volatile memory, and interfaces via a 2-wire serial interface or 4-pin SPI. It can output square waves of different frequencies and operates from -40°C to 85°C on a single lithium coin cell battery. MicroSD and SPI interfaces are also discussed along with advantages of SPI such as full duplex communication and flexibility. Future uses of FlexRay protocol and conclusions about learning industrial communication protocols are mentioned.

Uploaded by

Jatin Chotaliya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views11 pages

Real Time Clock (Ds1307)

The document describes a real-time clock (DS1307) chip that provides timekeeping functions. It contains a real-time clock, 56 bytes of non-volatile memory, and interfaces via a 2-wire serial interface or 4-pin SPI. It can output square waves of different frequencies and operates from -40°C to 85°C on a single lithium coin cell battery. MicroSD and SPI interfaces are also discussed along with advantages of SPI such as full duplex communication and flexibility. Future uses of FlexRay protocol and conclusions about learning industrial communication protocols are mentioned.

Uploaded by

Jatin Chotaliya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

REAL TIME CLOCK (DS1307)

VCC, GND DC power is provided to the device on these pins. VCC is the +5V input. VBAT Battery input for any standard 3V lithium cell or other energy source.

SCL (Serial Clock Input) SCL is used to synchronize data movement on the serial interface.
SDA (Serial Data Input/Output) SDA is the input/output pin for the 2-wire serial interface. SQW/OUT (Square Wave/Output Driver) When enabled, the SQWE bit set to 1, the SQW/OUT pinoutputs one of four square wave frequencies (1Hz, 4kHz, 8kHz, 32kHz). X1, X2 Connections for a standard 32.768kHz quartz crystal.

DS1307 ADDRESS MAP

FEATURES:

Real-time clock (RTC) counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation valid up to 2100 56-byte, battery-backed, nonvolatile (NV) RAM for data storage Two-wire serial interface Automatic power-fail detect and switch circuitry Consumes less than 500nA in battery backup mode with oscillator running Optional industrial temperature range: -40C to +85C

MICRO SD CARD INTERFACING


Pin Name I/O Logic Descriptio n Card Select (Neg True) Data In Ground Power Clock Ground Data Out NC (Memory Cards) Interrupt (SDIO Cards) NC

nCS

PP

2 3 4 5 6 7

DI VSS VDD CLK VSS DO

I S S I S O

PP S S PP S PP

NC nIRQ

. O

. OD

NC

SERIAL PERIPHERAL INTERFACE


The SPI bus specifies four logic signals:
SCLK: Serial Clock (output from master); MOSI; SIMO: Master Output, Slave Input (output from master); MISO; SOMI: Master Input, Slave Output (output from slave);

SS: Slave Select (active low, output from master).

DATA TRANSMISSION

During each SPI clock cycle, a full duplex data transmission occurs: 1 . the master sends a bit on the MOSI line; the slave reads it from that same line. 2. the slave sends a bit on the MISO line; the master reads it from that same line.

ADVANTAGES
Full

duplex communication Complete protocol flexibility for the bits transferred Extremely simple hardware interfacing Higher throughput than IC

SOFTWARE TOOLS

PROTEUS DESIGN SUITE

EAGLE LAYOUT EDITOR


MIKROC PRO FOR PIC

Future Scope :

Our system uses CAN Bus Protocols for the communication between two nodes of microcontroller. The baud rate available with this protocol is low which can be overcome with the help of the FLEXRAY which is designed for automotive network communication protocol. It is designed to be faster and more reliable than CAN and TTP, but is also more expensive.

Conclusion :
Through this project, an attempt to demonstrate a protype of live telemetry used in cars has been made. We now have ample knowledge about working of various sensors, different type of industrial automation units and parts and basic knowledge of various industrial communication protocols. Also we in depth working of CAN and CANopen protocols , microcontroller programming and its interfacing with other peripheral has been studied.

You might also like