CC2530 Timer Configuration Steps

Chapter 1 CC2530 Clock Source

(1) Clock source

1. Internal RC oscillator (32KHz, 16MHz)

2. External quartz crystal (32.768KHz, 32MHz)

Note: The external quartz crystal oscillator is relatively stable, and the external quartz crystal oscillator is used in wireless transceiver

(2) Switching of clock source

Used to judge whether the clock source is switched successfully

img

img

img

Chapter 2 Basic Principles of Timing/Technical Devices

A timer/counter is a peripheral that can count an internal clock signal or an external input signal. When the count value reaches the set requirement, an interrupt processing request is made to the CPU to realize the timing or counting function.

The most basic working principle of a timer/counter is to count. Whether it is a timer or a counter, it is essentially a counter, which can be counted by adding 1 (subtracting 1). Every time a counting signal appears, the counter will automatically add 1 (automatically subtract 1). When the count value changes from 0 to the maximum value (or from the maximum value to 0) overflow, the timer / counter will make an interrupt request to the CPU.

Guess you like

Origin blog.csdn.net/xiaolong1126626497/article/details/131456897