free hosting   image hosting   hosting reseller   online album   e-shop   famous people 
Free Website Templates
Free Installer

WWW.8051.TK
TUTORIAL MICROCONTROLLER 8051

 

 

 

 

 

BACK

5.3. External Interrupt

In this experiment External Interrupt 0 is enabled and set up to respond to 1-to-0 transitions. When an Interrupt is received, Buzzer is on, and buzzer is off when no interrupt recived.

Microcontroller External Interrupt

Figure 5.3.1. External Interrupt Application

Step 1st
Build the circuit as shown in figure 5.3.1. As you seen on figure 5.3.1. P0 is connected to buzzer. Remember, that all we want to do with this lesson is get buzzer on when interrupt is received.

Step 2nd
In this step, you must tipe the assembly program to make your Interrupt get action, we assume that you have already known the editor, we used MIDE-51 to edit the program. ( Download File : exp53.zip )

          Org 0000h
Ljmp Start
Org 0003h
Ljmp ExtInterrupt
Start:call InitEkstInterrupt
;
Loop: setb P0.0
Sjmp Loop;
;
ExtInterrupt:
clr P0.0
reti
;
InitEkstInterrupt:
Setb IT0 ;negatif transition
Setb EX0 ;External Interrupt Enable
Setb EA ;Master Interrupt Enable
ret
;
End

Step 3rd
Safe your assembly program above, and name it with int4.asm (for example) Compile the program that you have been save by using MIDE-51, see the software instruction.

Step 4th
Download your hex file ( int4.hex ) into the microcontroller by using Microcontroller ATMEL ISP software, see the instruction.After download this hex file you'll see the action of Interruption( of course if your cable connection and your program are corrected ).

 

BACK

 

Programmer
ISP 89s

Free Software

a. Edsim 51
b. MIDE-51
c. ATMEL ISP

Lesson 1:
Architecture

1.1.Memory
1.2.SFR
1.3.Addressing
1.4.Instruction Set
1.5.Assignment

Lesson 2:
Input Output
2.1.LED
2.2.Swicht
2.3.7 Segmen
2.4.LCD Character
2.5.ADC
2.6.DAC
2.7.Motor Stepper
2.8.Keypad
2.9.Assignment

Lesson 3:

Timer Counter

3.1.Basic
3.2.Mode 0
3.3.Mode 1
3.4.Mode 2
3.5.Mode 3
3.5.Assignment

Lesson 4:

Serial Comm.

4.1.Basic
4.2.LED
4.3.Rotate LED
4.2 ADC
4.3.LCD
4.4.Assignment

Lesson 5:
Interuption

5.1.Basic
5.2.Timer
5.2.External

5.3.Assignment