Professional Documents
Culture Documents
MPMC UnitIII 8051 RealtimeControl Part5
MPMC UnitIII 8051 RealtimeControl Part5
B.Tech, ETM,
II Year, II Semester
N.Ramakrishna
Dept. of Electronics and Telematics
GNITS, Hyderabad
15 June 2022 MPMC- N.Ramakrishna
Syllabus
Unit IV
8051 Real Time Control: (Chapter 13, Lyla B. Das)
• Timer/ Counter
• Programming 8051 timers and counters
• Interrupts
• Programming Timer Interrupts
• Programming external hardware interrupts
• Serial communication
• Programming the serial communication
interrupts
15 June 2022 MPMC- N.Ramakrishna
8051 Interrupts
8051 Inerrupts
Six interrupts
(i) Two external hardware interrupts EX0, EX1
(Pins INT0, INT1 )
(ii) Two timer interrupts for Timer 0 and Timer 1
(iii) One interrupt for serial communication
- Serial transmission and reception
(iv) Reset
- IE.6 Unused
- IE.5 Unused
ES IE.4 ES = 1 enables serial communication
interrupt
ET1 IE.3 ET1 = 1 enables timer interrupt 1
EX1 IE.2 EX1 = 1 enables external interrupt 1
ET0 IE.1 ET0 = 1 enables timer interrupt 0
EX0 IE.0 EX0 = 1 enables external interrupt 0
Answer:
Waveform
Generated by
T0 interrupt
Waveform
Generated by
T1 interrupt
TCON register
TxD
Pin 11, P3.1
TI
/32
TI