Meero
Newbie level 1
Hello,
I was wondering could you describe the code i need and the hardware configuration i need to control
input swtiches on a medical device. The switches are driven by 5 volts, could I just attach say P2 on my
AduC812 microcontroller to the switches. I need the code to activate every 10 mins. This is the algorithm:
Switch 1 pressed, delay (1 sec).Switch 2 pressed, delay (1 sec).Switch 4 pressed, delay (1sec). Switch 2 pressed
delay (1 sec). Switch 2 pressed again delay (1sec). Switch 2 pressed once more, delay 1 sec. Switch 3 pressed, delay 15 secs.
Finally, switch 1 pressed. 10 mins later start the process again.
A code example would be great.Thanks.
I was wondering could you describe the code i need and the hardware configuration i need to control
input swtiches on a medical device. The switches are driven by 5 volts, could I just attach say P2 on my
AduC812 microcontroller to the switches. I need the code to activate every 10 mins. This is the algorithm:
Switch 1 pressed, delay (1 sec).Switch 2 pressed, delay (1 sec).Switch 4 pressed, delay (1sec). Switch 2 pressed
delay (1 sec). Switch 2 pressed again delay (1sec). Switch 2 pressed once more, delay 1 sec. Switch 3 pressed, delay 15 secs.
Finally, switch 1 pressed. 10 mins later start the process again.
A code example would be great.Thanks.