Jan-Erik Soderholm 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 ? Maybe not in de older versions, those grey boxes are sometimes added lateron Anyway, thanx! I did not find the PORT chapter where I assumed it to be (near the start of the document, where it is in 16F datahseets), so I looked only in the USB chapter. Now I know the 18F datasheets do have a PORT chapter, so in the future I sure will find it! -- Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist