Applied Robotics/Microcontrollers/Getting Started

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Basics of Microcontrollers[edit | edit source]

A microcontroller is a programmable integrated circuit containing a microprocessor, memory, and I/O peripherals for general purpose control in embedded applications.

Typical Peripherals[edit | edit source]

Timer/Counters[edit | edit source]

Most microcontrollers contain timer/counter peripherals that increment a counter register on each cycle of an input clock (internally or externally generated). These peripherals are used for numerous purposes including program timing, timing external signals (i.e. encoders or pulse widths), and generating PWM signals.

Analog-to-Digital Converters[edit | edit source]

Microcontrollers often contain analog-to-digital converters to read in analog voltages. These peripherals convert a voltage on command or periodically into a digital code that is readable by the processor. Some microcontroller ADCs contain an internal reference voltage, however some may require an external reference to operate.

Digital-to-Analog Converters[edit | edit source]

Serial Transceivers (USARTs)[edit | edit source]

Serial Peripheral Interfaces[edit | edit source]

I2C Interfaces[edit | edit source]

Clock/Timing Control[edit | edit source]

Real Time Clocks[edit | edit source]

USB Host/Node Controllers[edit | edit source]

Interrupt Controllers[edit | edit source]

Common Microcontroller Families[edit | edit source]