Helping in an External Interrupt!!

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
aseer
Posts: 2
Joined: 02 Jun 2010 02:44

Helping in an External Interrupt!!

#1 Post by aseer » 02 Jun 2010 03:11

I have a project that needs an external interrupt, I tried this code in mikroC PRO for 8051 but it does not work:

void INT0ISR0() org 0x0003 ilevel 0 {
EX0_bit = 0;
P1=0xDC;
Delay_ms(10000);
EX0_bit = 1;
}
void main(){
EX0_bit=1;
do{
}while(1);
}

can anyone help me?

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: Helping in an External Interrupt!!

#2 Post by slavisa.zlatanovic » 03 Jun 2010 10:41

Hi!

Please send me your complete project to my email slavisa.zlatanovic@mikroe.com and I'll try to deduce what's wrong.

Best regards
Slavisa
Best regards
Slavisa

Mike Brearley
Posts: 173
Joined: 09 Apr 2008 12:56

Re: Helping in an External Interrupt!!

#3 Post by Mike Brearley » 03 Jun 2010 10:45

It looks like you have forgotten to enable the global interrupt !!!
When all else fails .... Read the fu**ing Manual.!!

aseer
Posts: 2
Joined: 02 Jun 2010 02:44

Re: Helping in an External Interrupt!!

#4 Post by aseer » 03 Jun 2010 22:51

Hallo everybody!!

I am using an intel 8031 microcontroller with an external EPROM, everything is going right except the external interrupt. When compiling this extrnal interrupt no error found, but when putting this program on EEPROM it does not work.

I can not find the problem!

Can anybody help me?

Post Reply

Return to “mikroC PRO for 8051 General”