Andy1845c
Active Member
I am finishing up the first actul project I have ever done that uses a PIC.
I am using 5 of the I/O ports and a rotory switch to select what part of the program I want the pict to run. The switch will pull them low.
It dawn on my lastnight that leaving the pins floating will likly just cause eratic operation and that I should use pullup resistors to hold them high.
Is this correct thinking? The sad part is I didn't figure in pull ups when I laid everything out on stripboard. Now I'll have to figure outhow to jam them in.
And my other question is what value works good as a pull up in this situation and is the value that critical? I have seen 10K used in other projects, but I don't know if I have 5 10K on hand. What kind of range of values can be used? Do they even have to match?
I am using 5 of the I/O ports and a rotory switch to select what part of the program I want the pict to run. The switch will pull them low.
It dawn on my lastnight that leaving the pins floating will likly just cause eratic operation and that I should use pullup resistors to hold them high.
Is this correct thinking? The sad part is I didn't figure in pull ups when I laid everything out on stripboard. Now I'll have to figure outhow to jam them in.
And my other question is what value works good as a pull up in this situation and is the value that critical? I have seen 10K used in other projects, but I don't know if I have 5 10K on hand. What kind of range of values can be used? Do they even have to match?