Cant get switch to work?
Posted: Thu Nov 13, 2014 11:55 pm
I'm hoping somebody will be able to point out where I have gone wrong.
All I am trying to achieve is when SW1 makes PIN 5 go HIGH, the program runs and the two led's flash twice together. I'm using a 16F688 PIC. Is it possibly something to do with shorting Vdd and PIN 5 together is not working? If it is, I really would appreciate somebody showIng me a better way of doing this.
I've attached datasheet, schematic and flowchart.
Thanks a lot......JDR04
All I am trying to achieve is when SW1 makes PIN 5 go HIGH, the program runs and the two led's flash twice together. I'm using a 16F688 PIC. Is it possibly something to do with shorting Vdd and PIN 5 together is not working? If it is, I really would appreciate somebody showIng me a better way of doing this.
I've attached datasheet, schematic and flowchart.
Thanks a lot......JDR04