I am using a PIC18f14K50 to source current to 4 LEDS. The data sheet says that each I/O pin can source/sink 25mA. However, all the ports combined can not source more than 95mA. I am using current limiting resistors to limit each LED to a max of 15mA per I/O. Well within the pin as well as entire PIC specs.
Anyway, after programming and testing the PIC, I am only receiving approx 2V from two of the pins and 0V at the other two. Right now, I am thinking I may have messed up the pin addressing for the two pins at 0V, but as for the other two pins I am not sure why their output is only 2V. The data sheet says when running a high output, Vdd will be at that pin.
Am I missing something here? Any suggestions/troubleshooting for the 2V out of a high (Vdd) output pin?
Anyway, after programming and testing the PIC, I am only receiving approx 2V from two of the pins and 0V at the other two. Right now, I am thinking I may have messed up the pin addressing for the two pins at 0V, but as for the other two pins I am not sure why their output is only 2V. The data sheet says when running a high output, Vdd will be at that pin.
Am I missing something here? Any suggestions/troubleshooting for the 2V out of a high (Vdd) output pin?