4

The ATtiny85 datasheet, on page 152, seems pretty clear on this:

After this fuse has been programmed device can be programmed via high-voltage serial mode, only.

But elsewhere, on page 28, it says:

If the RSTDISBL fuse is programmed, this start-up time will be increased to 14CK + 4 ms to ensure programming mode can be entered.

Can an ATtiny be reprogrammed over ISP by entering programming mode within a short interval after powering it on? If not, why is the startup delay increased as described in the second quote?

Peter Mortensen
  • 1,676
  • 3
  • 17
  • 23
Nick Johnson
  • 7,739
  • 3
  • 28
  • 44

1 Answers1

5

I don't think there's any way to reprogram the AVR via ISP if the RSTDISBL fuse is programmed; perhaps the second sentence is itself referring to the high voltage serial mode? The only way I know of to low-voltage program the ATTiny with the reset pin used as an output is to use a bootloader - on startup the bootloader will check for a serial signal on its configured pins, and if it's there it will download the code via serial and then flash itself.

MattyZ
  • 2,926
  • 1
  • 22
  • 23
  • 1
    That seems plausible, though I'm a bit uncertain why high voltage programming would require that change. I think a bootloader on an ATTiny would be a bit of a stretch, unfortunately. – Nick Johnson Nov 24 '11 at 05:45
  • The chip does have self programming capability. And a tool which was less than a bootloader that only changed the fuse bit back to enable reset (when certain conditions are met) shouldn't be too complicated. – Chris Stratton Nov 24 '11 at 06:57
  • @ChrisStratton I don't think it is possible to change fuse settings using a bootloader (or any kind of firmware). The only way to disable RSTDISBL would be to use HVP. – ksk Nov 24 '11 at 09:10
  • 4
    @Nick: HVP requires additional time to detect high-voltage vs. normal voltage. I.e. voltage will look "normal" for some time as it is ramping up to the high voltage, and you don't want the device to try to run the program in that interim. – Mike DeSimone Nov 24 '11 at 15:15
  • @MikeDeSimone Ah, that makes sense - thanks! I really wish it were possible to disable the reset line in software so I could still use it for IO, but well, if wishes were horses... – Nick Johnson Nov 24 '11 at 21:38
  • Even if you disabled the reset line, the pin usually has limited functionality as generic I/O, like open-drain output only or a permanently enabled pullup resistor. Check the data sheet. – Mike DeSimone Nov 25 '11 at 03:18