Jamie Lawson wrote 2011-09-04 04:00: > Hi, > > Having made sure to set the I/O pins of a 12F683 to > the digital configuration; I then proceeded to wrestle with strange > yet reproducible I/O problems for a few hours. > > I glanced at the data sheet... Probably better to actualy *read* the datasheet. > and suddenly noticed the term 'comparator' > seeming to glow on the page. Crap... forgot one. > > I am now curious as to why the PICs analog capable pins generally power u= p > configured in the analog function. Any ideas? > If you have a analog signal connected, analog mode is the best startup mode. If you have a digital signal connected, analog mode doen't do any harm. And besides, this is a complete non-issue of course. What did you thought the grey box labeled "Note:" on the "GPIO PORT" page actualy was trying to tell you ?? "The ANSEL and CMCON0 registers must be initialized to configure an analog channel as a digital input. Pins configured as analog inputs will read =910=92." > Jamie --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .