Micro controller programming query
hey frns....hello
i have a question abt micro controller 8051 programming..
suppose a switch is connected to pin p1.6 of 8051 and a buzzer is connected to pin p1.7. when switch toggles from 1 to 0 then buzzer must be on for 1 sec.
but i have a question that....if switch toggles from 1 to 0 or vice versa in nano seconds. then micro controller could not detect this transition as 8051 requires 1.085 us for every machine cycles.
then how to solve this problem..can anyone help me plz?
i have a question abt micro controller 8051 programming..
suppose a switch is connected to pin p1.6 of 8051 and a buzzer is connected to pin p1.7. when switch toggles from 1 to 0 then buzzer must be on for 1 sec.
but i have a question that....if switch toggles from 1 to 0 or vice versa in nano seconds. then micro controller could not detect this transition as 8051 requires 1.085 us for every machine cycles.
then how to solve this problem..can anyone help me plz?
0