Common Microcontroller Peripherals

fiercebunΗλεκτρονική - Συσκευές

2 Νοε 2013 (πριν από 3 χρόνια και 9 μήνες)

97 εμφανίσεις

Common Microcontroller Peripherals


Digital Inputs / Digital Outputs (DIO)


Digital inputs and outputs treat the world as binary, either a 1 or 0 indicating that voltage
is present or voltage is not present. A digital input lets the microcontroller read i
n values
from the real world, while a digital output lets the microcontroller send a value into the
real world. Most microcontrollers let you do either from a single pin.


Analog
to Digital Converter

(ADC)
, Analog Input


ADCs are a way to look at the worl
d
in more detail than 1 or 0. It senses the voltage and
converts it into a digital value. Instead of ‘1
-
bit’ (1 or 0), you can get 8
-
bit, 10
-
bit, 16
-
bit,
24
-
bit… We’ll be using mostly 8
-
bit, which gives 0
-
255 corresponding to the minimum
and maximum vol
tage possible.


USART Aka Serial Port


The microcontroller uses its serial port to communicate with other

intelligent devices and with the computer. We will be using a serial

to USB converter because modern computers don't have serial ports.


PWM Outputs


Pulse
-
width modulation is used to control the speed of motors and

frequency of beepers.


Also useful:

In
-
circuit reprogramming, self
-
reprogramming over serial (Bootloader)

Other serial data methods (SPI, I2C, bit banging, etc.)

Real Time Clock (RTC) / tim
er input

Other mysterious Timer/Counter functions


More Electronics Slang:


VDD, VCC, ‘5V’, ‘3.3V’



Power going into a chip

GND, COMMON



Power leaving a chip

NET, NODE



A wire or logical connection between pins of different devices