Re: AVR tiny13 ADC0 syntax problem



On Sat, 13 Sep 2008 10:24:11 -0700 (PDT), in comp.arch.embedded linnix
<me@xxxxxxxxxxxxxxxxxx> wrote:

On Sep 13, 7:55 am, Martin Griffith <mart_in_med...@xxxxxxxx> wrote:
On Sat, 13 Sep 2008 07:47:52 -0700 (PDT), in comp.arch.embedded linnix





<m...@xxxxxxxxxxxxxxxxxx> wrote:
On Sep 13, 7:34 am, Martin Griffith <mart_in_med...@xxxxxxxx> wrote:
The ADC0 is shared with the external reset pin, and I'm utterly
confused by atmels documentation on now to change it over from rst to
ADC function.

I don't want to set the no external reset fuse

Why not?  As long as you use high voltage programmer (12V to reset),
you can still reprogram it.

I'm using GCC + studio4. Been to avrfreaks, I found nothing there.

Any hints, anyone?

martin

I don't have a HV programmer (yet)


Buy or build one. We will be using the reset pin for ADC or I/O as
well. I know for sure that the core cannot block reset in software
and low voltage ISP needs it to work. So, only HV prog. can work.

I've been reading the tiny13 data*** for hours, and it keeps
mentioning DIEOE,DIEOV etc to change the port function.

I can't see how to set them in any registers, the compiler just
fllags errors when I try and use them.

My gut feeling is that setting the reset fuse wont help one little bit

martin
.