Switches issue?
Posted: Fri Jan 22, 2010 9:49 am
Hi, im still quite new to flowcode v3 so im guessing im doing something wrong.
Basically im making some code to produce an LCD display thats controlled using different inputs to the P16F873. What i have set up is an LCD display that comes on when a switch is "read as high". Im storing it in a spare variable and connecting it to the correct port and bit on the PIC. Running the simulation works perfectly (press the switch, LCD is initialised). However when i complile to .hex and program with MPLAB nothing happens when i apply 5v to the correct bit on the pic (makes the switch).
The LCD programs and works fine without the switch.
Is there another way to simulate inputs to the pic?
Basically im making some code to produce an LCD display thats controlled using different inputs to the P16F873. What i have set up is an LCD display that comes on when a switch is "read as high". Im storing it in a spare variable and connecting it to the correct port and bit on the PIC. Running the simulation works perfectly (press the switch, LCD is initialised). However when i complile to .hex and program with MPLAB nothing happens when i apply 5v to the correct bit on the pic (makes the switch).
The LCD programs and works fine without the switch.
Is there another way to simulate inputs to the pic?