View previous topic :: View next topic |
Author |
Message |
temp2290
Joined: 07 Apr 2008 Posts: 9
|
Too many inputs = too much current? |
Posted: Sun Apr 20, 2008 1:38 pm |
|
|
I have a PIC16F877A that I have working code for, but when I expand the code to use more inputs (nothing is really different as far as the computation goes), the PIC does nothing. I have 20 inputs going into the pic and 8 outputs. The inputs are all on ports A, B, and C. My inputs are all regular switches that work on the other code.
I'm wondering if too much current may be flowing into the PIC with all the inputs? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Apr 20, 2008 2:22 pm |
|
|
The PIC input pins draw almost no input current. It's more likely that
you forgot to specify the NOLVP fuse, and when you set pin B3 to a high
level, the PIC locked up. You need the following fuse:
|
|
|
temp2290
Joined: 07 Apr 2008 Posts: 9
|
|
Posted: Sun Apr 20, 2008 2:34 pm |
|
|
Alright, thanks, so it's not a current problem. I should have known that.
As for the NOLVP, I have that fuse set.
I'm not sure of the problem, I'll have to try some other stuff out. |
|
|
|