1. Basic Configuration
1. RTC power control: In register PCONP, set bit PCRTC. Note: The value of PCRTC is also "1" during reset. (Note that all pin operations in ARM are completed by reading and writing registers. Each pin corresponds to a bit in the register. The pin cannot be set or reset directly.)
2. Clock source: RTC obtains 1HZ from the RTC crystal as the internal function clock, and the external clock is used to receive the value of the RTC register (I have not fully understood it yet, and will continue to study it in the future)
3. Interruption: Interruption will be discussed later, so I won’t go into details here.
2. Features
* Maintain the accuracy of calendars and clocks by the time that has passed. You can get the year, month, day, hour, minute, second, day of the week
* Ultra-low power design, operating current is less than 1 microampere, automatically switches to mains power when the system is powered on, and uses battery power when the system is powered off
* The system has a 20-byte backup register specifically used to backup the timer power supply (not quite clear )
* Dedicated very low power 32KHZ oscillator
* Dedicated power supply pin Vbat
* The RTC power supply is isolated from other components of the MCU
* The standard counter is RTC with an accuracy better than +/- 1 second per day
* The count increase of the time register will periodically trigger an interrupt
* You can set the alarm time (equivalent to setting an alarm clock)
3. Description
When the system is powered on, a clock count reference can be set for the RTC, and the RTC will work according to this reference, even when the system is powered off. When there is no CPU to obtain data, the RTC works at extremely low power consumption, especially in power saving mode. The RTC in LPC1788 uses an external 32KHZ crystal to generate an internal 1HZ clock reference for accurate operation. It is powered by an independent pin, which can use a battery when powered off, and an external 3.3V power supply when powered on.
4. Block Diagram Description
This is a block diagram of the RTC power supply function. From this diagram, we can clearly see that the RTC has a power selector to select the power supply to be used. There is also a backupregister register. I am not sure what this register is used for.
Previous article:ARM Learning Notes--RTC Programming (Part 2)
Next article:ARM Learning Notes--LPC1788 Pin Analysis
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- On the first day back to work, the company CEO wants to fire me? Can I get N+1 compensation?
- Hard disk control and encryption based on FPGA
- Causes of color difference between different batches of LCDs
- Is there no one in the forum?
- What exactly are S parameters?
- Can the current direction of a MOS tube be reversed? How much current can a body diode carry?
- EEWORLD University ---- TI Battery Management In-depth Analysis Series
- Introduction to FPGA CLB LUT to implement logic functions
- Is the IoT card a data card? What is the difference between it and a mobile phone data card?
- Introduction to 10G Ethernet Test Solution