ARM LPC2138/48 Mini Development Board – Internal Real Time Clock (RTC)

Sample code to use the internal RTC of LPC 2138/48 is given below. Here seconds, minutes & hour are initialized to 0. Time gets updated every second and is displayed on LCD in the format hh:mm:ss.

Changing the initial time : To change the initial time, just load the desired values into the corresponding registers HOUR, MIN & SEC.

Running the RTC : If you want to run the RTC forever after loading the initial values, follow these steps

  1. Ensure that the RTC battery is placed in battery holder.
  2. Flash the code.
  3. Comment the lines which load the initial values of time. 
  4. Build the code & flash it again

Sample Code

  Topics related to ARM LPC2138/48 Mini Development Board

  1. ARM LPC2138/48 Mini Development Board – Overview
  2. ARM LPC2138/48 Mini Development Board – LED Interfacing
  3. ARM LPC2138/48 Mini Development Board – LCD Interfacing
  4. ARM LPC2138/48 Mini Development Board – UART0 Interfacing
  5. ARM LPC2138/48 Mini Development Board – UART1 Interfacing
  6. ARM LPC2138/48 Mini Development Board – Switches Interfacing
  7. ARM LPC2138/48 Mini Development Board – BUZZER Interfacing
  8. ARM LPC2138/48 Mini Development Board – POT Interfacing (ADC)
  9. ARM LPC2138/48 Mini Development Board – Temperature Sensor Interfacing(ADC)
  10. ARM LPC2138/48 Mini Development Board – Interfacing Servo motor
  11. ARM LPC2138/48 Mini Development Board – Internal Real Time Clock (RTC)
  12. ARM LPC2148 Mini Development Board – USB Interfacing (Human Interface Device)

Resources

 How to buy?

SupportPlease share your ideas with us, visit our forum for discussion

Leave a Reply to ARM LPC2138/48 Mini Development Board – UART1 Interfacing Cancel reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">