Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | AVR tiny13 ADC0 syntax problem

There are 23 messages in this thread.

You are currently looking at messages 0 to 10.

AVR tiny13 ADC0 syntax problem - Martin Griffith - 10:34 13-09-08

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

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

Any hints, anyone?

martin



Re: AVR tiny13 ADC0 syntax problem - linnix - 10:47 13-09-08

On Sep 13, 7:34 am, Martin Griffith <mart_in_med...@yah00.es> 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


Re: AVR tiny13 ADC0 syntax problem - Martin Griffith - 10:55 13-09-08

On Sat, 13 Sep 2008 07:47:52 -0700 (PDT), in comp.arch.embedded linnix
<m...@linnix.info-for.us> wrote:

>On Sep 13, 7:34 am, Martin Griffith <mart_in_med...@yah00.es> 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)

martin

Re: AVR tiny13 ADC0 syntax problem - linnix - 13:24 13-09-08

On Sep 13, 7:55=A0am, Martin Griffith <mart_in_med...@yah00.es> wrote:
> On Sat, 13 Sep 2008 07:47:52 -0700 (PDT), in comp.arch.embedded linnix
>
>
>
>
>
> <m...@linnix.info-for.us> wrote:
> >On Sep 13, 7:34 am, Martin Griffith <mart_in_med...@yah00.es> 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? =A0As 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.


Re: AVR tiny13 ADC0 syntax problem - Martin Griffith - 14:01 13-09-08

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

>On Sep 13, 7:55 am, Martin Griffith <mart_in_med...@yah00.es> wrote:
>> On Sat, 13 Sep 2008 07:47:52 -0700 (PDT), in comp.arch.embedded linnix
>>
>>
>>
>>
>>
>> <m...@linnix.info-for.us> wrote:
>> >On Sep 13, 7:34 am, Martin Griffith <mart_in_med...@yah00.es> 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 datasheet 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

Re: AVR tiny13 ADC0 syntax problem - linnix - 15:43 13-09-08

On Sep 13, 11:01 am, Martin Griffith <mart_in_med...@yah00.es> wrote:
> On Sat, 13 Sep 2008 10:24:11 -0700 (PDT), in comp.arch.embedded linnix
>
>
>
> <m...@linnix.info-for.us> wrote:
> >On Sep 13, 7:55 am, Martin Griffith <mart_in_med...@yah00.es> wrote:
> >> On Sat, 13 Sep 2008 07:47:52 -0700 (PDT), in comp.arch.embedded linnix
>
> >> <m...@linnix.info-for.us> wrote:
> >> >On Sep 13, 7:34 am, Martin Griffith <mart_in_med...@yah00.es> 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 datasheet for hours, and it keeps
> mentioning DIEOE,DIEOV etc to change the port function.

That's an internal signal derived from ADC port enable and DDRB5
direction.  It will not override the reset signal.

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

The fuses are controlling the core hardware.  I believe it is the
first step for using alternate functions of pin 1.

>
> martin


Re: AVR tiny13 ADC0 syntax problem - Frank-Christian Kruegel - 16:03 13-09-08

On Sat, 13 Sep 2008 20:01:44 +0200, Martin Griffith
<m...@yah00.es> wrote:

>>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 datasheet for hours, and it keeps
>mentioning DIEOE,DIEOV etc to change the port function.

These are internal bits explained on figure 24. They are not softwware
accessible.

For using the reset pin for something else then reset you MUST burn the
fuse, and you MUST have a HV programmer for reprogramming.

I'll never understand why people hesitate buying proper tools. The STK500 is
just 80¤.

Mit freundlichen Grüßen

Frank-Christian Krügel

Re: AVR tiny13 ADC0 syntax problem - Martin Griffith - 16:22 13-09-08

On Sat, 13 Sep 2008 12:43:57 -0700 (PDT), in comp.arch.embedded linnix
<m...@linnix.info-for.us> wrote:

>On Sep 13, 11:01 am, Martin Griffith <mart_in_med...@yah00.es> wrote:
>> On Sat, 13 Sep 2008 10:24:11 -0700 (PDT), in comp.arch.embedded linnix
>>
>>
>>
>> <m...@linnix.info-for.us> wrote:
>> >On Sep 13, 7:55 am, Martin Griffith <mart_in_med...@yah00.es> wrote:
>> >> On Sat, 13 Sep 2008 07:47:52 -0700 (PDT), in comp.arch.embedded linnix
>>
>> >> <m...@linnix.info-for.us> wrote:
>> >> >On Sep 13, 7:34 am, Martin Griffith <mart_in_med...@yah00.es> 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 datasheet for hours, and it keeps
>> mentioning DIEOE,DIEOV etc to change the port function.
>
>That's an internal signal derived from ADC port enable and DDRB5
>direction.  It will not override the reset signal.
>
>>
>>  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
>
>The fuses are controlling the core hardware.  I believe it is the
>first step for using alternate functions of pin 1.
>
>>
>> martin
Thanks linnix, I'll disorganise a HV programmer, I just wish the whole
thing was better documented, or even documented  in the first place.

 Alf....?

I really would have liked to get that ADC0 up and running by dawn

Frustatredly (I'm only trying to do a 555++)  yours.. etc.etc

martin

Re: AVR tiny13 ADC0 syntax problem - Martin Griffith - 16:42 13-09-08

On Sat, 13 Sep 2008 22:03:54 +0200, in comp.arch.embedded
Frank-Christian Kruegel <d...@news.invalid> wrote:

>On Sat, 13 Sep 2008 20:01:44 +0200, Martin Griffith
><m...@yah00.es> wrote:
>
>>>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 datasheet for hours, and it keeps
>>mentioning DIEOE,DIEOV etc to change the port function.
>
>These are internal bits explained on figure 24. They are not softwware
>accessible.
>
>For using the reset pin for something else then reset you MUST burn the
>fuse, and you MUST have a HV programmer for reprogramming.
>
>I'll never understand why people hesitate buying proper tools. The STK500 is
>just 80€.
>
>Mit freundlichen Grüßen
>
>Frank-Christian Krügel
Hi, 
I was just trying to replace a 555 with an AVR controlled by a 89s52
for more flexibility, and was utterly confused by the documentation,
which would not have been resolved by having "proper tools".

I did get a proper tool once , the Atmel 89s51 programmer, the
software crashes about 3 times a day

And it is great if you can build  proper tools yourself, which is
essential with the spanish postal system.

My AVR programmer, with Lancos/ponyprog software is less than a 0.50
Euro, absolutely perfect for my needs, I put it on the final PCB's





martin

Re: AVR tiny13 ADC0 syntax problem - Jim Granville - 17:09 13-09-08

Martin Griffith 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
> 
> I'm using GCC + studio4. Been to avrfreaks, I found nothing there.
> 
> Any hints, anyone?

Choose a part with more pins :)

Having realised the jump to 8 pins was not super-clever, the
industry is seeing more 14/16 pin SO/TSSOP controllers.

In your case, that means tiny24/44/84 choices.

-jg


| 1 | 2 | 3 | next