Real Time Clock (Ds1307)
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.
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
nCS
PP
2 3 4 5 6 7
I S S I S O
PP S S PP S PP
NC nIRQ
. O
. OD
NC
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
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.