Richard, thanks once again.
The final version will be under a 12V power supply. So there is no problem thinking about power consumption.
Physically the final version might have resistors to unused pins pulled to +5V.
At the moment i'm testing the circuit on breadboard for 3 days and there is no problem at all.
P.S.
So if you use for example the "if"/Henrik.
EDIT: One more thing: You're clearly reading PORTB which must mean you're using those five low bits as inputs, yet, at the top of the program you have TRISB = %00000000 which makes all of PORTB outputs...
that mean that we make the port as input? If that so, then what is the way to read the status of the port...."high" or "low" or even the value of the port?Code:if LATB.0 = 0
In the mean time im reading the manual.




Bookmarks