Memory Programming; Program (And Data) Memory Lock Bits - Atmel AVR ATtiny10 Series Manual

8-bit microcontroller with 1k bytes flash
Table of Contents

Advertisement

AIN0/MOSI - Port B, Bit 0
This pin also serves as the positive input of the on-chip Analog Comparator. In ATtiny12 and serial programming mode, this
pin serves as the serial data output, MOSI.
During Power-down Mode, the schmitt triggers of the digital inputs are disconnected on the Analog Comparator input pins.
This allows an analog voltage close to V
consumption.

Memory Programming

Program (and Data) Memory Lock Bits

The ATtiny10/11/12 MCU provides two lock bits which can be left unprogrammed ("1") or can be programmed ("0") to
obtain the additional features listed in Table 21 . The lock bits can only be erased with the Chip Erase command
Table 21. Lock Bit Protection Modes
Memory Lock Bits
Mode
LB1
LB2
1
1
1
2
0
1
3
0
0
Note:
1. In the High-voltage Serial Programming mode, further programming of the fuse bits are also disabled. Program the fuse bits
before programming the lock bits.
Fuse Bits in ATtiny10/11
The ATtiny10/11 has five fuse bits, FSTRT, RSTDISBL and CKSEL2..0.
• FSTRT: See Table 7, "Start-up Times for the ATtiny10/11 (V
is unprogrammed ("1").
• When RSTDISBL is programmed ("0"), the external reset function of pin PB5 is disabled.
unprogrammed ("1").
• CKSEL2..0: See Table 3, "Device Clocking Options Select," on page 6, for which combination of CKSEL2..0 to use.
Default value is "100", internal RC oscillator.
The status of the fuse bits is not affected by Chip Erase.
Note:
1. If the RSTDISBL Fuse is programmed, then the programming hardware should apply +12V to PB5 while the ATtiny10/11 is
in Power-on Reset. If not, the part can fail to enter programming mode caused by drive contention on PB0.
Fuse Bits in ATtiny12
The ATtiny12 has eight fuse bits, BODLEVEL, BODEN, SPIEN, RSTDISBL and CKSEL3..0. All the fuse bits are program-
mable in both High-voltage and Low-voltage Serial programming modes. Changing the fuses does not have any effect
while in programming mode.
• The BODLEVEL Fuse selects the Brown-out Detection level and changes the start-up times. See "Brown-out Detection
(ATtiny12)" on page 21. See Table 9, "ATtiny12 Clock Options and Start-up Times," on page 19. Default value is
programmed ("0").
• When the BODEN Fuse is programmed ("0"), the Brown-out Detector is enabled. See "Brown-out Detection (ATtiny12)"
on page 21. Default value is unprogrammed ("1").
• When the SPIEN Fuse bit is programmed ("0"), Low-Voltage Serial Program and Data Downloading is enabled. Default
value is programmed ("0"). Unprogramming this fuse while in the Low-Voltage Serial Programming mode will disable
future in-system downloading attempts.
/2 to be present during power-down without causing excessive power
CC
Protection Type
No memory lock features enabled.
Further programming of the Flash (and EEPROM for ATtiny12) is disabled.
Same as mode 2, and verify is also disabled.
= 2.7V)," on page 18 for which value to use. Default value
CC
ATtiny10/11/12
.
(1)
(1)
Default value is
39

Advertisement

Table of Contents
loading

Table of Contents