microcontrollers shit Flashcards
Timers
Count time in the background so that programming code can continue to be executed (multitasking)
Clocks
count the number of seconds
timers count the number of Tcy
PWM Purpose
Stimulates an analog output using a digital signal
Duty Cycle
Percentage of time a signal is ON verses Off in 1 Cycle
Oscillator frequency (fosc)
How fast the microcontroller runs
Prescaler
A setting that slows down the timer to make longer time intervals
Post Scaler
A setting that makes a timer overflow less often
Duty value
Controls how long the PWM signal stays ON during each cycle
Period Parameter (T2PR)
Controls how long one full PWM cycle lasts
Clock Source (Int vs Ext)
Decides whether the timer runs from the chip’s clock or an outside signal
Roll-Over
When the timer reaches its maximum count and starts over
Overflow flag (TMR01f)
A signal that tells the program the timer has restarted
Capacitor
A device that stores and releases electricity,
like a small battery
Capacitance (C)
A measure of how much charge a capacitor can store
Charge (Q)
The amount of electricity stored in a capacitor
Voltage Across Capacitor (V-C)
The amount of electrical
pressure in the capacitor
ADC
Process of converting continuous analog signals into stepwise digital signals
ADC bits
Determines the number of bins (steps) that are used to separate an analog signal. More ADL bits= finer resolution
How does the ADC sort the analog signal into the correct bin ?
Comparator
Voltages to compare to (via voltage divider)
Algorithm
Acquisition Time
Time taken to capture an analog voltage before conversion
Sample and Hold Circuit
A circuit that stabilizes an analog signal before ADC processing