Another place this might be useful is on the reference input to the A/D. Say you want to read a pot, but you don't want to be dumping power into the pot all the time (especially when the system sleeps). Drive the high end of the pot with RA3 configured BOTH as a digital output AND as the reference input of the A/D. Harold > When a PIC input is configured as an analog input, then the digital input > buffer is disconnected from the pin and held at ground. This will result > in > the digital input reading zero, no matter what voltage is on the pin, and > it > also avoids the issue of excessive (more than data sheet) current draw > caused by 'shoot through' in the digital input buffer. > > OTOH, if you configure a pin to be both an AD input and a digital output, > then the AD will convert the digital output voltage. This could be a > useful > way of checking for shorts or other problems on the pin. > > Bob Ammerman > RAm Systems > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > -- FCC Rules Online at http://www.hallikainen.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads