V unit
V unit
Semester: VI
Instruction Set and Interrupts: Addressing modes of 8086, instruction set of 8086,
assembly language programs (example programs), interrupts and interrupt service
routines, interrupt cycle of 8086, non-maskable interrupt, maskable interrupt (INTR).
Programming 8051 Timers and Serial Port: Basic registers of timer, modes
of operation, programming timers in C (examples), Basics of serial
communication, baud rate in 8051, SBUF, SCON, serial port programming in C
(examples).
3. Muhammad Ali Mazidi, Sarmad Naimi, SepehrNaimi, Janice Mazidi, ARM Assembly
Language Programming &Architecture, Pearson Education, 2002
References:
1. Barry B. Brey, The Intel Microprocessors: Architecture, Programming and Interfacing, 8/e,
Pearson Education, 2008.
2. Kenneth J. Ayala, 8086 Micro Processor: Programming and Interfacing the PC, 1/e, Delmar
Cengage Learning, 2007.
3. Douglas V Hall, Microprocessors and Interfacing: Programming and Hardware, 2/e, Tata Mc
Graw Hill, 2006.
Applications
▪ Motor speed controls
▪ Programmable gain amplifiers
▪ Digitally controlled gains etc
#include <reg51.h>;
void delay(void);
void main(void)
{
while(1)
{
P3^=(1<<0);
delay();
}
}
void delay()
{
TMOD=0x20;
TH1=0xA4;
TR1=1;
while(TF1==0);
TR1=0;
TF1=0;
}