Microcontrollers
Microcontrollers
has only one bus which is used for both data transfers
and instruction fetches, and therefore data transfers
and instruction fetches must be scheduled - they can
not be performed at the same time.
Difference
Memory
Volatile Memory
Retains its contents only so long as the system is
powered on.
SRAM
Chip consists of an array of cells, each capable of
storing one bit of information. To store a bit of
information, a so-called flip-flop is used.
DRAM
The number of transistors needed per bit of
information was brought down to one. This, of
course, reduced the silicon area for a given cell
count. So at the same chip size, a DRAM has
much larger storage capacity compared to an
SRAM.
Non-volatile Memory
Type of memory that retain their content even
when power is cut.
ROM
It is the first types of non-volatile semiconductor
memories. As the name implies, you simply
cannot write to a ROM. If you want to use
ROMs, you have to hand the data over to the
chip manufacturer, where a specific chip is
made containing your data.
PROM
Is read-only memory that can be modified once
by a user. PROM is a way of allowing a user to
tailor a microcode program using a special
machine called a PROM programmer
EPROM
Erasable Programmable Read Only Memory
• Pull Resistors
Many controllers integrate pull resistors into
their input circuitry
• Digital Output
The digital output functionality is used to set
output pins to given voltage levels. The levels
corresponding to high and low are again
specified by the controller and depend on the
controller’s operating voltage.
Mostly VCC = 5V, the maximum output low
voltage is 0.7 V, and the minimum output high
voltage is 4.2 V.
An output pin generally has to sink or source
current, so we can again distinguish between a
sink output and a source output. The maximum
current ratings discussed in the previous section
apply, so we are talking about 4-20 mA
maximum current
Analog I/O
There are situations in which the actual voltage
of the line transports information, for example
when using a photo transistor as light sensor. In
this aspect ,the following are to be considered.
• Analog Comparator
The simplest way to deal with analog inputs in a
microcontroller is to compare them to each
other or to a known reference voltage.
Analog I/O
There are situations in which the actual voltage
of the line transports information, for example
when using a photo transistor as light sensor
Interrupt Control
Two bits form the main interface to the
interrupt logic of the microcontroller: