Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Off-topic

???
06/16/04 11:18
Read: times


 
Msg Score: -1
 -1 Message Not Useful
#72580 - Using 89C51 external interrupts
Hi ,
I'm facing problem with external interrupts of 89C51
Both the external interrupts i want for edge trigger.
I'm applying clock on both of the INT0 and INT1 pin
I'm getting sharp pulse on P2 at the falling edge of the
clock it means INT1 is working for edge trigger But for
INT0 I'm getting many transitions on P0 during the low clock period
This shows INT0 is working as level trigger.
Both of the External Interrupts can be made edge trigger on not ?
Can anybody suggest me any solution to this problem ?

following is the assembly code :
	org	0h
	ljmp	main
	org	03h
	mov	P0,#00h
	reti
	org	13h
	mov	P2,#00h
	reti
	org	100h
main:	setb	IE.0		;enable INT0
	setb	IE.2		;enable INT1
	setb	IE.7		;enable intr flag
	setb	IE0		;edge trigger INT0
	setb	IE1		;edge trigger INT1
st:	mov	P0,#ffh
	mov	P2,#ffh
	sjmp	st


thanks
Sanjay


List of 4 messages in thread
TopicAuthorDate
Using 89C51 external interrupts            01/01/70 00:00      
   RE: Using 89C51 external interrupts            01/01/70 00:00      
   RE: Using 89C51 external interrupts            01/01/70 00:00      
      RE: Using 89C51 external interrupts            01/01/70 00:00      

Back to Subject List