AVR Fuse bits - ATtiny12

From: scrodchunk (scrodchunk_at_hotmail.com)
Date: 08/30/04


Date: 30 Aug 2004 14:05:15 -0700

I'm having some pretty good luck with the ATtiny12 on the STK500
board, but after changing fuse bits, changing them back seems a bit of
a challenge. Here's where I am...

  I can program the '12 fine with ISP serial method (I'm using Mac OS
X unix with the GNU uisp
  tool for downloading & interrogation )

  I have written several assembly programs and everything works fine.

  I can query the fuse bits, and I see the results fine

  I can change the fuse-bits eg. from the default 0x52 to 0x72.

After changing the fuse-bits to turn of ISP, as expected, the ISP
interactions result in "unable to enter programming mode"

To change them, I understood that I need to use "High-Voltage
Programming" and so I followed the hookups in the STK500 doc's to wire
it for that. I tell uisp to use hivoltage with -dhiv option.

    I can then download programs just fine still - using the high
voltage serial pgm.

    I can query the fuses - and the session goes well enough, but the
report is that the fuse bit low byte
   (the only byte in there) is at 0xFF

    I can issue a high voltage fuse-bit write and it tells me that it
has successfully written 0x52 back in
   to the part, but it still reads as 0xFF in high voltage, and when
going back to ISP programming,
   ISP seems to still be behaving as if it's 0x52 (SPI port off).

Can anyone offer any info on changing Fuse Bits after you have turned
of the SPI port? Have you ever changed it back? Should this work...
or is the Fuse-Bit some destructive process perhaps...

Any clarification appreciated...

Ross.



Relevant Pages

  • Re: why do people waste their time doing this
    ... look for someone that know a little about programming, ... facilities of an ISP or similar facility, likely a second or 3rd shift ... a virus like progam is ... Realize, there are some real lunatics here on the newsgroups, and some ...
    (rec.pyrotechnics)
  • Re: computer-driven fans
    ... The ISP programming clock should be set to no more ... the chip can appear to be faulty. ...
    (comp.arch.embedded)
  • Re: ISP programming and code prrotection
    ... > I know that many products support ROM upgrade or in system ... > (ISP). ... protected against all but the most determined attackers, some chips are ... chips with a self programming ability to make sure they don't modify ...
    (comp.arch.embedded)
  • Re: Ins and Outs of ISP
    ... First you should think about if you want ISP or IAP. ... With ISP (In System Programming), ... the programming interface is of SPI ... Your application must provide code to enter this bootloader upon ...
    (comp.arch.embedded)