Microcontrollers: Peripheral Modules in A Typical Microcontroller
Microcontrollers: Peripheral Modules in A Typical Microcontroller
For example:
– On chip sample and hold to accommodate ac signal
sampling.
– Control over the sample clock and synchronization
between channels.
– CPU loading at higher sampling frequencies.
Simple Typical Application
• The microcontroller includes an ADC module
and one of its digital input ports has been
configured (by software) to be an analogue
input channel. The software running on the
microcontroller will perform an Analogue to
Digital conversion of the input signal, then
determine whether the input signal is above
or below some pre-defined limit. It will then
turn on the appropriate LED.
Special Function Units
• Some microcontrollers will contain other
“special function” units such as
– Serial Peripheral Port (SPP).
– Controller Area Network (CAN) interface.
Serial Peripheral Port
• A Serial Peripheral Port (SPP) is a special
interface that can be used to connect the
microcontroller to a particular peripheral
device such as an LDC display or a serial
Analogue to Digital converter. This saves on
valuable I/O pins and leads to a neat interface
between the microcontroller and the
peripheral device.
• The same interface can be used to connect
two microcontrollers together so that they can
pass data between each other. This can allow
a number of microcontrollers in a system to
share data or allow one microcontroller (the
master) to control a number of other
microcontrollers (the slaves).
• Some of the PIC microcontrollers have such a
device called the Synchronous Serial Port
(SSP).