Hey guys,
I have a 8051 from silabs ( f330 ) . I wrote a program for ISR on it with edge trigger and it was working PERFECTLY !
but today my boss told me to change it to Level trigger which i did , except the LED is not blinking properly. The pin is set to High , So when there is a level trigger , THE led would turn off !!
But rather than this happening, The LED is in ON state before the interrupt , except - the light is not as bright.
and when I give it an interrupt , the led sometimes turns off, sometimes it becomes bright.
doesn't make sense ..
It should just toggle between NO led and LED. !! i can't understand why this would happen.
please give some inputs from your experience or why you think this would happen, I really appreciate your help.
I have a 8051 from silabs ( f330 ) . I wrote a program for ISR on it with edge trigger and it was working PERFECTLY !
but today my boss told me to change it to Level trigger which i did , except the LED is not blinking properly. The pin is set to High , So when there is a level trigger , THE led would turn off !!
But rather than this happening, The LED is in ON state before the interrupt , except - the light is not as bright.
and when I give it an interrupt , the led sometimes turns off, sometimes it becomes bright.
doesn't make sense ..
It should just toggle between NO led and LED. !! i can't understand why this would happen.
please give some inputs from your experience or why you think this would happen, I really appreciate your help.