
185
ATmega8515(L)
2512A–AVR–04/02
1. A:LoadCommand “0100 0000”.
2. C: LoadData LowByte. Bit n = “0” programs andbit n = “1” erases the Fuse bit.
3. Set BS1 to “1” andBS2to“0”.Thisselectshighdata byte.
4. Give WR
a negative pulseandwait for RDY/BSY to go high.
5. Set BS1to“0”.Thisselectslowdata byte.
Figure 78. Programming the FusesWaveforms
Programming the Lock Bits Thealgorithm forprogramming the Lock bits is asfollows (refer to “Programming the
Flash”onpage 181 fordetails on Command andData loading):
1. A:LoadCommand “0010 0000”.
2. C: LoadData LowByte. Bit n = “0” programs the Lock bit.
3. Give WR
a negative pulseandwait for RDY/BSY to go high.
The Lock bitscan only be clearedbyexecuting ChipErase.
Reading the Fuse and Lock
Bits
Thealgorithm forreading the FuseandLock bits is asfollows (refer to “Programming
the Flash”onpage 181 fordetails on Commandloading):
1. A:LoadCommand “0000 0100”.
2. Set OE
to “0”,BS2to“0”andBS1to“0”.The status of the Fuse Lowbitscan
nowbe read at DATA (“0” meansprogrammed).
3. Set OE
to “0”,BS2to“1”andBS1to“1”.The status of the Fuse Highbitscan
nowbe read at DATA (“0” meansprogrammed).
4. Set OE
to “0”,BS2 to “0” andBS1to“1”.The status of the Lock bitscan nowbe
read at DATA (“0” meansprogrammed).
5. Set OE
to “1”.
RDY/BSY
WR
OE
RESET +12V
PAGEL
BS2
$40
DATA
DATA XX
XA1
XA0
BS1
XTAL1
AC
$40 DATA XX
AC
Write Fuse Low byte Write Fuse High byte
Kommentare zu diesen Handbüchern