On Fri, 28 Aug 2009 21:33:33 +0200, you wrote: >Terry Harris wrote: >> On Fri, 28 Aug 2009 20:33:07 +0200, you wrote: >> >>> I am trying to use the RC4 and RC5 pins of an 18F2550 as inputs. The >>> normal use of these pins is as USB data pins, but the datasheet seems to >>> state that they can also be digital inputs (but not outputs). Has anyone >>> done this succesfully? Any settings required, beyond UCON=0 ? >> >> An old 18F4550 project of mine contains the following >> >> // Undocumented by Microchip the disabled (power on default) USB >> // subsystem must have the internal transceiver disabled to use >> // RC4 and RC5 as digital inputs. >> UCFG = 0x08; >> > >"Undocumented" ? >Isn't that was is described in the PORTC chapter ? It wasn't documented in 2005 which wasted about a day of my life. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist