At 12:29 AM 30/12/03 -0500, you wrote:
>
> IN TEMP,ADCH ;GET 8 BIT RESULT
>
>I always get to this point, indicating that I am indeed talking to
>the ADC, since the conversion complete bit does clear.
>At this point, I only ever get 0x00 in ACCUM.
David, ADCH only has the top 2 bits IIRC (bit 8 &9),
so reading a value which is less than 256 would give you
00 as above in ADCH. I think I read ADCL and ADCH
and rotate the value left twice to get an 8 bit value in one
of the applications with the 8535.
Regards
John Samperi
******************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: samperi@ampertronics.com.au
Website http://ampertronics.com.au
* Electronic Design * Technical Services * Contract Assembly
******************************************************Message
Re: [AVR-Chat] M128 ADC problem
2003-12-30 by John Samperi
Attachments
- No local attachments were found for this message.