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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/25/08 09:17
Read: times


 
#157726 - Obvious Reason
Responding to: ???'s previous message
Dear Priyam,

Have a look at your exo_isr.

It says something like this

void ex0_isr (void) interrupt 0
{
if(l1 == 1) on led
else off led
}
also by defination l1 is p3.2 (i.e. int0 pin)

is it really necessary to check pin to glow led (if PC reached int0 isr, what does it means?)

Main reason why led is not going off everytime is obvious, you are checking pin after entering isr, but check compilers output (many compilers does a lot of pushing etc... before actually starting with your code)

Find out for time duration of the -ve pulses. Most probably the pin goes to logic 1 before PC reaching jb / jnb 0xB2, rel

Regards,
Mahesh

List of 24 messages in thread
TopicAuthorDate
pls help....8051 external interrupts            01/01/70 00:00      
   show definition of "a" variable            01/01/70 00:00      
      definiton : sbit a=P3^2;            01/01/70 00:00      
   Need more information            01/01/70 00:00      
      the entire code            01/01/70 00:00      
         keyscan            01/01/70 00:00      
         How the LED are connected?            01/01/70 00:00      
         One tip            01/01/70 00:00      
   P3.2= iNT0            01/01/70 00:00      
      P3.2= INT0            01/01/70 00:00      
         pin 3.2            01/01/70 00:00      
            P3.2= INT0..1            01/01/70 00:00      
   Obvious Reason            01/01/70 00:00      
      time duration            01/01/70 00:00      
         mistake            01/01/70 00:00      
            ok thanks alot            01/01/70 00:00      
               ?            01/01/70 00:00      
   GATE0/1 ?            01/01/70 00:00      
      no            01/01/70 00:00      
      try            01/01/70 00:00      
         Debounce maybe?            01/01/70 00:00      
      Solution            01/01/70 00:00      
   interrupt flag bit clear            01/01/70 00:00      
      Detecting Both Edges - A very old trick            01/01/70 00:00      

Back to Subject List