electricano
New Member
i am a PIC newbie and i have some questions.plz help me
if i use the switch shown below, and connect it to a pull up resistor, the pin will see a binary 1 at the pin at most of the time. and when i press the switch and release it, the input to the pin will momentarily go to zero (since another end is connected to ground) and then high again . if i write the code like this:
if PORTA.0=0 then
.
.
endif
can the PIC read the "momentary low signal" at the moment i press the button and release it?
if i use the switch shown below, and connect it to a pull up resistor, the pin will see a binary 1 at the pin at most of the time. and when i press the switch and release it, the input to the pin will momentarily go to zero (since another end is connected to ground) and then high again . if i write the code like this:
if PORTA.0=0 then
.
.
endif
can the PIC read the "momentary low signal" at the moment i press the button and release it?