Microcontrollers, Basics: 16 January 2012 Jonathan A. Titus
Microcontrollers, Basics: 16 January 2012 Jonathan A. Titus
10
11
12
Pulse-Width Modulator
PWM Peripheral Converts a value to a proportional pulse width Operate continuously and independently Motor, LED, servo, and power control
13
14
Analog Comparator
Compare two voltages and... Cause a bit to change state Generate an interrupt Wake an MCU from a sleep state
15
Analog-to-Digital Converter
Convert a voltage to a digital value; 8, 10, 12 bits... Unipolar, 0 volts to MCU V+ (+3.3 or 5 volts) Might require external signal conditioning
16
Digital-to-Analog Converter
Unipolar output, might require external offset High-impedance output, could require buffering 10- and 12-bit DACs common on MCUs
17
UART Communications
Universal Asynchronous Receiver-Transmitter (UART) Serial communications Self-timing operations Usually 8-bit transmissions at standard rates Common on most MCUs
18
19
Serial-Communications
Reference
Serial Port Complete, 2nd ed., by Jan Axelson, Lakeview Research, 2007. ISBN: 978-1931448-06-2.
20
21
22
23
23
24
25
Require a software stack Purchase, license, or create one yourself MCU vendors might have stacks Some MCUs include everything except the physical interface (PHY)
Can demand considerable memory Start with a development kit or reference design
25
26
Interrupts
Cause immediate action
26
An ADC Interrupt
27
28
29
Hed
Text
Bullets If Needed
30