Course On Microcontrollers (IICT - BUET)
Course On Microcontrollers (IICT - BUET)
Course On Microcontrollers (IICT - BUET)
By
Zubayer Al Billal Khan
zubayer_007@yahoo.com
01913469663
What is Embedded System ?
Billions of units
Available uC in Bangladesh
AT89C51 AT89C52 AT89S51 AT89S52
ATMEGA-8 AT89C2051 AT89C4051
AT89C55WD AT89S8252 AT90S2313
AT90S8515 AT90S8535 ATMEGA-16
ATMEGA-32 ATMEGA-64 ATMEGA-88
ATTINY-13
ATTINY-15 ATTINY-26 AT89C51ED2
AT89C51RD2 AT91RM9200
AT91SAM256 ATMEGA-128 ATMEGA-162
W78E052B40DL
Available uC in Bangladesh
PIC16F72 PIC16F73
PIC16F74 PIC16F76
PIC16F77 PIC16F88
PIC10F200 PIC12F508
PIC12F629 PIC12F675
PIC16C54C PIC16C57C
PIC16C65B PIC16C923
PIC16F676 PIC16F84A
PIC18F452 PIC16C622A
PIC16F628A PIC16F648A
PIC16F873A PIC16F876A
PIC16F877A PIC18F2550
PIC18F4550
About Microchip(PIC)
PIC= Peripheral Interface Controller
PIC is a Family of Harvard Architecture
Microcontrollers made by Microchip
Technology.
Microchip Technology is an American
Manufacture of microcontroller. memory
and analog semiconductors.
The company founded in 1987.
PIC16F877A
40-Pin Pin Enhanced Flash, 8-Bit
CMOS Microcontrollers with
Nano Watt Technology
1. MPLab
2. Programmer Software
3. Proteus
END OF CLASS -1
Open MPLAB
Project -> Project Wizard… from MPLAB IDE and this will
launch the project wizard, just continue with Next
Give Project Name
Creating the .C file
else if (PORTA0 == 1)
{
PORTC = 1;
}
}
}
Open ISIS Professional from
Proteus Program
Draw the circuit
Specify HEX file to Microcontroller
Simulate the Circuit with
Microcontroller Program
Output current caution
Ensure that the output current <20mA
Maximum output current sunk by any I/O
pin .................................................................................................... 25 mA
Configure
TRISB0=1
ADCON1=0b00000110; for digital input
Mode Selection
INTERRUPT External interrupt on
RB0/INT pin is edge-triggered;
◦ either rising if the INTEDG bit (REGISTER
5-1: OPTION_REG REGISTER) is set,
◦ or falling, if the INTEDG bit is clear.
Initializing Flag bit
When a valid edge appears on the RA2/INT
pin, the INTF bit (INTCON<1>) is set.
……………………………………..
INTF=0;
}
END OF CLASS
Timer/ Counter
3timers/Counters
Two 8-bit timers and One 16-bit timer
Easily selectable clock source
How timer works?