Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Microprocessor Based
System
Microcontroller
Advantages of Microcontroller
Over Microprocessor
Power Management
Modern microcontrollers are designed with less
power-hungry Complementary Metal Oxide
Semiconductor (CMOS) technology.
Apart from that most microcontrollers offer
power management modes like, Sleep Mode or
Idle Mode.
In these modes, microcontrollers consume less
power than at the time when they are fully
functional.
Some microcontrollers (like AVR) allows to shut
down their unused sectors (like ADC or DAC)
So that less power could be consumed.
MCS-51 Internal
Architecture
Data Memory
Special Function
Register(SFR)
Accumulator (Register A)
Register B
Stack Pointer
Timer/Counters
The 8051 has two internal sixteen bit hardware Timer/Counters.
Each Timer/Counter can be configured in various modes,
typically based on 8-bit or 16-bit operation.
The 8052 product has an additional (third) Timer/Counter.
The TL1 SFR register (located at 8Bh in Internal RAM) represents the
current value in the 8-bit Timer/Counter.
The Timer/Counter can be programmed by initialising this register with a
number between 0 and 255.
However, there is an interesting automatic reload feature in mode 2, where,
when TL1 overflows (its value reaches 0), the Timer/Counter is
automatically reloaded with the 8-bit value stored in SFR register
TH1 ( The pre-programmed value in TH1 does not change during this
operation).
INTERRUPTS
Interrupt Priority
Examples