auto_mitch
Full Member level 3
mega8535 reset pin connect
Hi everyone!
I am working on a project using the mega8535 mcu. I have calibrate its internal oscillator at 8MHz and i have written a few lines of code to control a relay with one push button. When the bush button be pressed once the relay is activated. When the button be pressed again the relay is deactivated. The problem is that i have to press the button for almost or more of 1 sec to activate or deactivate the relay. when i press it fast i can see that the output is going low or high but the relay does not working. I have to press the button again and again to succeed the relay operation each time. The code seems to work but with the upper problem. Is the problem caused by the oscillator i need more MHz or i have made a code problem? Could you please give me an example of set reset in c code?
Thanx
Hi everyone!
I am working on a project using the mega8535 mcu. I have calibrate its internal oscillator at 8MHz and i have written a few lines of code to control a relay with one push button. When the bush button be pressed once the relay is activated. When the button be pressed again the relay is deactivated. The problem is that i have to press the button for almost or more of 1 sec to activate or deactivate the relay. when i press it fast i can see that the output is going low or high but the relay does not working. I have to press the button again and again to succeed the relay operation each time. The code seems to work but with the upper problem. Is the problem caused by the oscillator i need more MHz or i have made a code problem? Could you please give me an example of set reset in c code?
Thanx