18F2455 PortC.4 & 5 as input
I added the definition of UCON to the PIC18EXT.BAS file. Which eliminates the compile error. But the PortC.4 and 5 when read with either a high or low applied read zero. What else do i need to do to use these ports as input.
RD
Config Settings for non-USB
The only config setting i see that affects USB is VREGEN. Does this have to be off for the USB to be disabled. From what i read in the data sheet only UCON.3 needs to be turned off to change PortC.4 & 5 to digital.
I am using Micro Code Studios boot loader, do you know if they preset bits in the config to enable USB?
RD
Ucfg.3=1 And Ucon.3=0 Works
Thank You!!
Adding both
UCON var byte EXT
UCFG var byte EXT
to PIC18EXT.BAS
and adding
UCFG.3=1
UCON.3=0
to the code lets PortC.4 and PortC.5 on the 18F2455 operate as inputs.
Now i can sleep tonight!!!!!!!!!!!!!
RD