i2c rtc interfacing with lpc2129 arm7 tyro


Posted on Feb 5, 2014

The I2C (Inter-IC) bus is a bi-directional two-wire serial bus that provides a communication link between integrated circuits (ICs). I2C is a synchronous protocol that allows a master device to initiate communication with a slave device. Data is exchanged between these devices. The DS1307 Serial Real-Time Clock is a low-power; full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM.


i2c rtc interfacing with lpc2129 arm7 tyro
Click here to download the full size of the above Circuit.

Address and data are transferred serially via a 2-wire, bi-directional 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. Fig. 1 shows how to interface the EEPROM with microcontroller through I2C. I2C is a Master-Slave protocol. I2C has a clock pulse along with the data. The master device controls the clock line, SCL. This line dictates the timing of all transfers on the I2C bus. No data will be transferred unless the clock is manipulated. I2c bus supports many devices, each device is recognized by a unique address ”whether it`s a micro-controller, LCD Driver, memory or keyboard interface and can operate as transmitter or receiver based on the functioning of the device. The controller designed controls the RTC ds1307 device through I2C protocol. The I2C Controller here acts as a master device and controls RTC ds1307 which acts as a slave. The read operation is accomplished by sending a set of control signals including the address and/or data bits. The control signals must be accompanied with proper clock signals. We now want to read date & time by using I2C - RTC in LPC2129 Tyro Board. Wiring up an I2C based RTC to the I2C port is relatively simple. The RTC also makes the...




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Active Filter Design with OpAmps
    Voltage Multiplier for Power LED Driver
    Simple Schematic for VCA mixer
    A common collector amplifier
    Before power is in the hold state holding brake one circuit
    555 meter frequency meter schematic
    Circuit having a high school bass tone function



    Top