beautypg.com

Reading the fuse and lock bits, Reading the signature bytes – Rainbow Electronics AT90S2313 User Manual

Page 66

background image

66

AT90S2313

0839I–AVR–06/02

Reading the Fuse and Lock
Bits

The algorithm for reading the Fuse and Lock bits is as follows (refer to “Programming
the Flash” on page 63
for details on command loading):

1.

A: Load Command “0000 0100”.

2.

Set OE to “0”, and BS to “1”. The status of the Fuse and Lock bits can now be
read at DATA (“0” means programmed).

Bit 7 = Lock Bit1

Bit 6 = Lock Bit2

Bit 5 = SPIEN Fuse bit

Bit 0 = FSTRT Fuse bit

3.

Set OE to “1”.

Observe that BS needs to be set to “1”.

Reading the Signature Bytes

The algorithm for reading the signature bytes is as follows (refer to “Programming the
Flash” on page 63
for details on command and address loading):

1.

A: Load Command “0000 1000”.

2.

C: Load Address Low Byte ($00 - $02).

Set OE to “0”, and BS to “0”. The selected signature byte can now be read at DATA.

3.

Set OE to “1”.