Hello everyone. I have started to work on PIC16F72 with Hi-Tech compiler .. Now i have a problem of interfacing two switches with it .
please help me in this topic.
Thank you
Hello everyone. I have started to work on PIC16F72 with Hi-Tech compiler .. Now i have a problem of interfacing two switches with it .
please help me in this topic.
Thank you
A schematic, or at least a photo of the physical circuit would help us in a large way in helping you resolve your issues. Since we're dealing with a microcontroller, it may also help for the code to be posted. Also, I have three questions for you: What is it doing? And what is it not doing? What is it suppose to do?
Also, what kind of switches are these? If these are physical switches, then the most foreseeable issue that I can imagine is that they are not being de-bounced. A microcontroller is fast enough that it can detect those micro-second bounces when a switch is flipped or a button is pressed. The symptom of this is that a microcontroller, such as your PIC, will think the button has been pressed a couple dozen times when it's only been pressed once.
A schematic, or at least a photo of the physical circuit would help us in a large way in helping you resolve your issues. Since we're dealing with a microcontroller, it may also help for the code to be posted. Also, I have three questions for you: What is it doing? And what is it not doing? What is it suppose to do?
Also, what kind of switches are these? If these are physical switches, then the most foreseeable issue that I can imagine is that they are not being de-bounced. A microcontroller is fast enough that it can detect those micro-second bounces when a switch is flipped or a button is pressed. The symptom of this is that a microcontroller, such as your PIC, will think the button has been pressed a couple dozen times when it's only been pressed once.