Lec1 DC ppt shortcut
Lec1 DC ppt shortcut
For example:
• The (555) IC
• The (7447) IC
Microcontroller (MC)
• Microcontrollers: Is a small computer
on a single integrated circuit used for
a single tasking purpose, contain
-memory,
It needs external hardware to control Used in instructions, traffic light control etc.
anything, like sensors and motors etc.
The heart of this device is the CPU Same as MC
• MC Pins Properties:
2) The pins are functionally the same, as long as their names are same
The pins of the (PIC16F877)
2) Each I/O port is under control of another SFR, if register bit is:
1) Instruction Decoder
3) Accumulator
I2C UART
SPI
(Two wire System) (Universal
(Serial Peripheral
Asynchronous
Interface Bus)
Receiver/Transmitter)
Brown out
1) MC is turned off
• Counters: are like timers in a microcontroller. But instead of measuring time, they count pulses
from an external source. So, they're not good for measuring time intervals.
• Watchdog Timer: safety feature in a microcontroller. It has its timer and works separately
from the main system. If the main program stops working, the Watchdog Timer resets the
system, keeping it running smoothly and preventing problems.
Q/ How interrupt signal is generated by timers?
1) If the timer register consists of (8-bits), the largest number the timer can count is 255
2) If this number is exceeded, the timer will be automatically reset and counting will start from zero
(overflow condition)
3) If overflow condition is enabled within the program, this causes interrupt signal.