Searching \ for '16c74 ADCON1' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=adc
Search entire site for: '16c74 ADCON1'.

Truncated match.
PICList Thread
'16c74 ADCON1'
2000\04\17@170108 by Harold M Hallikainen

picon face
       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



FCC Rules Online at http://hallikainen.com/FccRules
Lighting control for theatre and television at http://www.dovesystems.com

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
dl.http://www.juno.com/get/tagj.

2000\04\17@194513 by Dan Michaels

flavicon
face
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.

2000\04\17@221045 by Dwayne Reid

flavicon
face
<x-flowed>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   <spam_OUTdwaynerTakeThisOuTspamplanet.eon.net>
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.

</x-flowed>

2000\04\18@010850 by Harold M Hallikainen

picon face
On Mon, 17 Apr 2000 20:05:11 -0600 Dwayne Reid <.....dwaynerKILLspamspam@spam@PLANET.EON.NET>
writes:
>
> 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.
>
>

       Good point!  Since the read-modify-write will not actually be able to
read the pin!  Time for shadow registers!  Nice that the 18c series has
lata, latb, latc, etc. where you actually read the output latch.

Thanks!

Harold
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
dl.http://www.juno.com/get/tagj.

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...