I have two switches attached to pic18f452
one is on PORTA pin 0 other on PORTA pin 1.
I want to monitor timing for how much long they are on (both , single and none).
LCD is attached to show count of the loop so i can calculate time with the help of machine cycle.
I tried first only to send a character after recording values of the events(switch on off or both ) four times and then averaging it.
Both i need help on proteus circuit and code. Kindly tell me the errors.
one is on PORTA pin 0 other on PORTA pin 1.
I want to monitor timing for how much long they are on (both , single and none).
LCD is attached to show count of the loop so i can calculate time with the help of machine cycle.
I tried first only to send a character after recording values of the events(switch on off or both ) four times and then averaging it.
Both i need help on proteus circuit and code. Kindly tell me the errors.
Attachments
-
15.9 KB Views: 11