2
Most read
4
Most read
7
Most read
LPC176x/5x Real-Time
Clock (RTC) and backup
Registers.
Omkar Rane BETB118
Nikhil Patil BETB117
Kaustubh Wankhade BETB129
Block-1 Group –A ENTC
PRTC (PCONP Configuration)
RTC oscillator
The RTC oscillator provides a 1 Hz clock to the RTC and a 32 kHz clock output that can
be used as the clock source for PLL0 and CPU and/or the watchdog timer.
Remark: The RTC oscillator must not be used as a clock source when the PLL0 output is
selected to drive the USB controller. In this case select the main oscillator as clock source
for PLL0
Register in Real Time Clock
The Clock Control Register controls the operation of the clock divide circuit.
Bit 0 – CLKEN : Clock Enable
This bit is written with one to enable time counters and written with zero to disable time counters.
Bit 1 - CTCRST : CTC Reset
When this bit is set to one, the internal oscillator divider are reset.
Bit 3:2 - Reserved
These bits must be set to zero for normal RTC operation.
Bit 4 - CCALEN : Calibration counter enable
To disable calibration counter and reset it to zero, write one to this bit. When written zero, the counter is
enabled and starts counting
Bit 31:5 - Reserved
CCR ( Clock Control Register )
Time Counter Register
The time value consists of the eight counters and there is separate register associated with each counter. To
update the RTC, new values should be written to these registers.
Consolidated Time Registers
The values of the Time Counters can optionally be read in a consolidated format which allows the programmer to read
all time counters with only three read operations.
There are 3 Consolidated Time Registers. The minimum and maximum values of the various fields in these registers
are same as the respective Time Counter Register.
These registers are read only. New values should be written to Time Counter Registers.
Steps for Using RTC
Initialize RTC
•Disable RTC clock using CCR ( Clock Control Register )
•Reset clock using CCR register
•Enable RTC calibration in RTC Calibration Register
•Enable the clock for RTC using CCR register
Set Date and Time
As we saw previously, there are separate Time Counter registers for each time
parameter hour, min, sec and same is the case date. We just need to copy the
required values to these registers.
Read Date and Time
The values of date and time can be read from associated Time Counter
registers. Alternately, date and time can also be read from Consolidated Time
registers.
We will use Time Counter registers for both reading and writing.
Application
1) Digital Clock
2) Timer Controller for water
pumps.
3) Data Logging systems.
References
[1]http://www.exploreembedded.com/wiki/LPC1768:_RTC_Programming
[2]Datasheet LPC1768
[3]Data Sheet CM-3768 Micro embedded.

More Related Content

PDF
USB protocol
PPT
Study on 32-bit Cortex - M3 Powered MCU: STM32F101
PPTX
Xilinx virtex 7 fpga - Semester Presentation
PPTX
Watch-dog Timer in LPC1768
PDF
Embedded C - Lecture 4
PDF
Wireless Communication short talk
DOCX
Evolution of Intel Microprocessors (Consumer Grade)
PPTX
Arduino and its hw architecture
USB protocol
Study on 32-bit Cortex - M3 Powered MCU: STM32F101
Xilinx virtex 7 fpga - Semester Presentation
Watch-dog Timer in LPC1768
Embedded C - Lecture 4
Wireless Communication short talk
Evolution of Intel Microprocessors (Consumer Grade)
Arduino and its hw architecture

What's hot (20)

PPTX
Real Time Operating Systems for Embedded Systems
PPTX
DDR SDRAMs
PPTX
ATMEGA 328
PDF
Displaying Animated Images on GLCD display with LPC2148 Microcontroller
PPTX
Lpc 1768 timers
PPT
Hard ip based SoC design
PDF
Dual port ram
PPT
Clock gating
PPTX
8051 Timers and Counters
PPT
Double data rate (ddr)
PPT
Satellite access
PPT
CAN Networks
PPTX
dual-port RAM (DPRAM)
PPT
8254 PIT
PDF
ARM architcture
PPT
Design challenges in physical design
PPTX
Characteristics of embedded systems
DOCX
Electronic voting machine presentation
PDF
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
Real Time Operating Systems for Embedded Systems
DDR SDRAMs
ATMEGA 328
Displaying Animated Images on GLCD display with LPC2148 Microcontroller
Lpc 1768 timers
Hard ip based SoC design
Dual port ram
Clock gating
8051 Timers and Counters
Double data rate (ddr)
Satellite access
CAN Networks
dual-port RAM (DPRAM)
8254 PIT
ARM architcture
Design challenges in physical design
Characteristics of embedded systems
Electronic voting machine presentation
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
Ad

Similar to LPC 1768 A study on Real Time clock features (20)

PPTX
UNIT III Embedded Systems architecture.pptx
PPT
SIMH multi-system simulator
DOCX
moving message display of lcd
PPT
PDF
Real Time Clock Interfacing for Arduino
PDF
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
PPT
Chp7 pic 16 f84 interfacing - copy
PPTX
Stm32f303 rest and Clock contol
PPTX
rtcinterfacingandprogramming-141016105525-conversion-gate01.pptx
PDF
Assembly programming II
PDF
Assembly programming II
PDF
Assembly programming II
PPT
Overview of LPC214x MCUs
PDF
System on Chip Based RTC in Power Electronics
PPT
power grid synchronization failure detection
PDF
PLC Programming Example - PLC Clock - Answ
PPTX
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
PPTX
STM32 Microcontroller Clocks and RCC block
PPTX
Timer counter in arm7(lpc2148)
PPTX
1708015.pptx
UNIT III Embedded Systems architecture.pptx
SIMH multi-system simulator
moving message display of lcd
Real Time Clock Interfacing for Arduino
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Chp7 pic 16 f84 interfacing - copy
Stm32f303 rest and Clock contol
rtcinterfacingandprogramming-141016105525-conversion-gate01.pptx
Assembly programming II
Assembly programming II
Assembly programming II
Overview of LPC214x MCUs
System on Chip Based RTC in Power Electronics
power grid synchronization failure detection
PLC Programming Example - PLC Clock - Answ
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
STM32 Microcontroller Clocks and RCC block
Timer counter in arm7(lpc2148)
1708015.pptx
Ad

More from Omkar Rane (20)

PDF
Enabling SSL Elasticsearch on server
PDF
Anti lock braking (ABS) Model based Design in MATLAB-Simulink
PPTX
Autosar fundamental
PPTX
Stress Management
PPTX
Bootloaders (U-Boot)
PPTX
Concept of Diversity & Fading (wireless communication)
PPTX
Tata Motors GDC .LTD Internship
PDF
Machine Learning Model for M.S admissions
PDF
Timer 0 programming on LPC 1768
PDF
ADC (Analog to Digital conversion) using LPC 1768
PDF
PWM based motor speed control using LPC 1768
PDF
UART interfacing on LPC1768 (Cortex M3 micro controller)
PDF
LED Blinking logic on LPC1768
PDF
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
PPTX
Vlisi Course project presentation:Keypad Scanner
PDF
VlSI course project report : Keypad Scanner
PDF
Nexys4ddr rm FPGA board Datasheet
PDF
Linear Regression (Machine Learning)
DOCX
transmission gate based design for 2:1 Multiplexer in micro-wind
DOCX
2:1 Multiplexer using NAND gate in Microwind
Enabling SSL Elasticsearch on server
Anti lock braking (ABS) Model based Design in MATLAB-Simulink
Autosar fundamental
Stress Management
Bootloaders (U-Boot)
Concept of Diversity & Fading (wireless communication)
Tata Motors GDC .LTD Internship
Machine Learning Model for M.S admissions
Timer 0 programming on LPC 1768
ADC (Analog to Digital conversion) using LPC 1768
PWM based motor speed control using LPC 1768
UART interfacing on LPC1768 (Cortex M3 micro controller)
LED Blinking logic on LPC1768
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
Vlisi Course project presentation:Keypad Scanner
VlSI course project report : Keypad Scanner
Nexys4ddr rm FPGA board Datasheet
Linear Regression (Machine Learning)
transmission gate based design for 2:1 Multiplexer in micro-wind
2:1 Multiplexer using NAND gate in Microwind

Recently uploaded (20)

PDF
PhD defense presentation in field of Computer Science
PDF
V2500 Owner and Operatore Guide for Airbus
PPTX
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
PDF
ITEC 1010 - Networks and Cloud Computing
PDF
IAE-V2500 Engine Airbus Family A319/320
PPTX
non conventional energy resorses material unit-1
PPTX
Unit I - Mechatronics.pptx presentation
PDF
Application of smart robotics in the supply chain
PDF
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
PPTX
highway-150803160405-lva1-app6891 (1).pptx
PDF
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
PDF
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
PPTX
MODULE 3 SUSTAINABLE DEVELOPMENT GOALSPPT.pptx
PPTX
Soft Skills Unit 2 Listening Speaking Reading Writing.pptx
PDF
Project_Mgmt_Institute_- Marc Marc Marc.pdf
PPTX
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS
PPTX
quantum theory on the next future in.pptx
PDF
Recent Trends in Network Security - 2025
PDF
CB Công Nghiệp Slide .dh bách khoa đà nẵng
PDF
Introduction to Machine Learning -Basic concepts,Models and Description
PhD defense presentation in field of Computer Science
V2500 Owner and Operatore Guide for Airbus
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
ITEC 1010 - Networks and Cloud Computing
IAE-V2500 Engine Airbus Family A319/320
non conventional energy resorses material unit-1
Unit I - Mechatronics.pptx presentation
Application of smart robotics in the supply chain
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
highway-150803160405-lva1-app6891 (1).pptx
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
MODULE 3 SUSTAINABLE DEVELOPMENT GOALSPPT.pptx
Soft Skills Unit 2 Listening Speaking Reading Writing.pptx
Project_Mgmt_Institute_- Marc Marc Marc.pdf
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS
quantum theory on the next future in.pptx
Recent Trends in Network Security - 2025
CB Công Nghiệp Slide .dh bách khoa đà nẵng
Introduction to Machine Learning -Basic concepts,Models and Description

LPC 1768 A study on Real Time clock features

  • 1. LPC176x/5x Real-Time Clock (RTC) and backup Registers. Omkar Rane BETB118 Nikhil Patil BETB117 Kaustubh Wankhade BETB129 Block-1 Group –A ENTC
  • 3. RTC oscillator The RTC oscillator provides a 1 Hz clock to the RTC and a 32 kHz clock output that can be used as the clock source for PLL0 and CPU and/or the watchdog timer. Remark: The RTC oscillator must not be used as a clock source when the PLL0 output is selected to drive the USB controller. In this case select the main oscillator as clock source for PLL0
  • 4. Register in Real Time Clock
  • 5. The Clock Control Register controls the operation of the clock divide circuit. Bit 0 – CLKEN : Clock Enable This bit is written with one to enable time counters and written with zero to disable time counters. Bit 1 - CTCRST : CTC Reset When this bit is set to one, the internal oscillator divider are reset. Bit 3:2 - Reserved These bits must be set to zero for normal RTC operation. Bit 4 - CCALEN : Calibration counter enable To disable calibration counter and reset it to zero, write one to this bit. When written zero, the counter is enabled and starts counting Bit 31:5 - Reserved CCR ( Clock Control Register )
  • 6. Time Counter Register The time value consists of the eight counters and there is separate register associated with each counter. To update the RTC, new values should be written to these registers.
  • 7. Consolidated Time Registers The values of the Time Counters can optionally be read in a consolidated format which allows the programmer to read all time counters with only three read operations. There are 3 Consolidated Time Registers. The minimum and maximum values of the various fields in these registers are same as the respective Time Counter Register. These registers are read only. New values should be written to Time Counter Registers.
  • 8. Steps for Using RTC Initialize RTC •Disable RTC clock using CCR ( Clock Control Register ) •Reset clock using CCR register •Enable RTC calibration in RTC Calibration Register •Enable the clock for RTC using CCR register Set Date and Time As we saw previously, there are separate Time Counter registers for each time parameter hour, min, sec and same is the case date. We just need to copy the required values to these registers. Read Date and Time The values of date and time can be read from associated Time Counter registers. Alternately, date and time can also be read from Consolidated Time registers. We will use Time Counter registers for both reading and writing.
  • 9. Application 1) Digital Clock 2) Timer Controller for water pumps. 3) Data Logging systems.