The clock consists of 4 parts
1: CLKSRC: 01 in the example
Select the clock source of PLL0 as follows:
00 Select the internal RC oscillator as the clock source of PLL0 (default)
01 Select the main oscillator as the clock source of PLL0
10 Select the RTC oscillator as the clock source of PLL0
11 Reserved, do not use this value
2: PLL0 configuration register (PLL0CFG – 0x400F C084)
FCCO = (2×M×FIN) / N // In the example, FCCO = 2×100×12Mhz / 6 = 100MHz
FIN The frequency of the PLL input clock in the clock source selection multiplexer
FCCO The system clock frequency (the output of the PLL current controlled oscillator)
N: The PLL0 prescaler value of the NSEL0 bit in the PLL0CFG register (PLL0CFG NSEL0 field + 1). N is an integer between 1 and 32
M: The PLL0 multiplier value of the MSEL0 bit in the PLL0CFG register (PLL0CFG MSEL0 field + 1).
Not all possible M values are supported.
3: Re-division: CPU clock configuration register (CCLKCFG – 0x400F C104), the example here is 5 or 6 division. The division
value CCLKSEL can only be 0 and odd values (1, 3, 5…, 255). CCLK is obtained from the output signal of PLL0 and divided by CCLKSEL+1
4: The clock input to the timer is divided again, in this case it is divided by 4
//
//
// <0=> Pclk = Cclk / 4
// <1=> Pclk = Cclk
// <2=> Pclk = Cclk / 2
// <3=> Pclk = Hclk / 8
//
// <0=> Pclk = Cclk / 4
// <1=> Pclk = Cclk
// <2=> Pclk = Cclk / 2
// <3=> Pclk = Hclk / 8
5: The clock obtained by the timer is 25mhz,
The timer can use PC and PR for re-division. In the example, here is 0, which means no more frequency division.
MR0 is the preset value. When a pulse comes, TC will increase by 1. When TC and MR0 are equal, the timer is triggered.
————》PR and PC ————> TC and MR0 --> Trigger
Previous article:Differences in clock configuration between LPC1788 and LPC1768
Next article:LPC23XX Timer Function Examples
Recommended ReadingLatest update time:2024-11-16 16:34
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- LOTO Lesson 4: Practice of the common emitter amplifier circuit of transistor 2N3904
- Ahhhh urgent help, please help me analyze the simple circuit diagram
- 4G Small Base Station
- [AT-START-F403A Review] Part 1: Newbie Unboxing Experience
- Radar microwave division table
- Today's Live: Creating an Electrified Future with Sitara AM263x MCUs
- RFID multi-card identification antenna design
- Why is the output impedance of the common emitter amplifier circuit Rc itself?
- [Erha Image Recognition Artificial Intelligence Vision Sensor] 1. Unboxing and Review
- STM32MP157A-DK1 Review