It's not revelant to your problem but ss you probably have PBP, you don't need to use PEEK or POKE. just use
Code:
MyVar var byte
MyVar=PORTB
BUT
fOR EXAMPLE when i had 5 volts only at RB0 (and the others had no voltage)
By NO VOLTAGE do you mean that those pin are left floating??? IF so pull-down resistor will help.
A PIC can't read nothing... it's 1 or 0. So you must set your pin to VDD or VSS with jumper or with resistor. Common val;ue for pull-down/pull-up 10K or less. AND, personally, when i use to set a pin to VDD or VSS i add a resistor in serie for current limiting.
Last edited by mister_e; - 27th August 2005 at 12:04.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks