Truncated match.
PICList
Thread
'16c74 ADCON1'
2000\04\17@170108
by
Harold M Hallikainen
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
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
|
<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_OUTdwaynerTakeThisOuT
planet.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
On Mon, 17 Apr 2000 20:05:11 -0600 Dwayne Reid <.....dwaynerKILLspam
@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...