Basics-Wrapup

View on GitHub

Timers

timers are counters connected to a certain clock and can trigger an interrupt and can be configured to work as PWM or input capture to measure a signal frequency

types of counters

for our stm kit it have three types of Timers

each type has different features according to our usage and application but for now the main features we gona need is delay, timers interrupts, PWM and Input capture

Some Notes

Clock Divider Circuit Diagram

it is used on register PSC to divide input clock to timer peripheral

Clock Divider Diagram

Clock Multiplier

it is used on RCC to increase the clock

PLL Diagram this circuit consists of

this frequency generated through VCO is divided by n (multiplied frequency value) and passed to phase detector to identify the error in phase between the input and output signal then try to correct the phase by generating apropriate voltage level to generate apropriate frequency with VCO