Matt,
Not trying to be sarchastic, but why do you want to take in an
analog voltage, convert it to a digital word (byte), and then
send it right back out of the processor? If that's what you
need, just get a standalone A/D, and go from there.
From my point of view, the whole point of having an A/D on board
is to be able to sample an analog signal, convert it to digital,
then use that result inside the uC to be able to make decisions
on what to do next, such as turn on or off an output to control
a lamp for instance.
And if you're bent on getting the digital word out of the processor,
you'll either have to take it 4 bits at a time or do it serially.
The reason being you only have 6 'Input' pins and 5 'Output' pins,
so naturally, you can't send 8 bits out of a 5 bit port.
Regards,
Jim
On Thu, 13 July 2000, Matt Willman wrote:
{Quote hidden}>
> I've had no experience with PIC's before, but I am trying to use a PIC12C672
> to do A/D conversions. My problem is that I'm unsure of how to set up the I/O
> pins so that I can tranfer the results from the ADRES register to them. I am
> only using 1 pin for an analog input (CH0) and I think my code is correct so
> far. I just need some kind of a detailed example of how I should output my
> results. I've looked in the data sheets, but that really doesn't help a first
> time user, who has never programmed in assembly before.
>
> Thanks,
> Matt Willman
>
> ____________________________________________________________________
> Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
>
> --
>
http://www.piclist.com hint: PICList Posts must start with ONE topic:
> [PIC]: PIC only [EE]: engineering [OT]: off topic [AD]: advertisements
spam_OUTjimTakeThisOuT
jpes.com
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]: PIC only [EE]: engineering [OT]: off topic [AD]: advertisements