At 05:42 PM 4/17/00 -0600, Dan Michaels wrote: >At 01:58 PM 4/17/00 -0700, you wrote: > > I've got a project where RA0..RA5, and RE0..RE1 are set as digital > >outputs and RE2 is a digital input. I'd now like to change the digital > >input on RE2 to an analog input. It LOOKS like I can clear ADCON1, making > >all INPUTS analog. Since the TRIS bits still set all the lines to digital > >output EXCEPT RE2, it seems I can continue to use these as digital > >outputs and read my analog input on RE2 (using Vcc as reference). > > Agreed? > > > >Thanks! > > > >Harold > > > >This situation is actually discussed *somewhere* in the datasheet. >I do this on '73/'76 chips on port A. Works fine there. Cannot >use the bits as digital input, but output s/b ok, if RE works >the same as RA. You can use the pins as output so long as you are careful with Read Modify Write instructions. Eg. bsf RE,0 will set all other analog RE output pins LO. dwayne Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 16 years of Engineering Innovation (1984 - 2000) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email.