M34S32
Write to the Control Register
The control register is accessed using a specific
Device Select Byte (as described in Table 3, and
as shown in Table 11 and Table 12).
Table 11. Content of the Control Register
b7
b6 b5 b4 b3 b2 b1 b0
CRWD WCpol X B2 B1 B0 X X
Table 12. Default values
b7
b6 b5 b4 b3 b2 b1 b0
0
0
X0 00XX
The meanings of the bits in Table 11 can be sum-
marised as follows:
WCpol. This bit controls the polarity of the WC in-
put (to switch pin 7 between being a WC or WC in-
put). The default (initial) state of this bit is 0.
Table 13. Operation of the WCpol Bit
pin 7 = high
pin 7 = low
Whole EEPROM
WCpol = 0 and OTP page are
write protected
Write instructions
are allowed in the
EEPROM area,
and the OTP
page can be
written once
WCpol = 1
Write instructions
are allowed in the
EEPROM area,
and the OTP
page can be
written once
Whole EEPROM
and OTP page are
write protected
CRWD. This is the Control Register Write Disable
bit. When it is 0, pin 3 is a Don’t Care input, and the
control register is always writable. This is the de-
fault (initial) condition of this bit.
Table 14. Operation of the CRWD Bit
pin 3 = high
pin 3 = low
CRWD = 0
Control register is writable
CRWD = 1
Control register is
writable
Control register is
write protected
(read only)
B2,B1,B0. These bits control the size of the ROM
block. Their initial, default state is 0, 0, 0.
Table 15. Operation of the B2, B1 and B0 Bits
B2,B1,B0
ROM block size and location
0,0,0 0
All bits are EEPROM
0,0,1 1/64 ROM block=00h to 01FFh (512)
0,1,0 1/32 ROM block=00h to 03FFh (1K)
0,1,1 1/16 ROM block=00h to 07FFh (2K)
1,0,0 1/8
ROM block=00h to 0FFFh (4K)
1,0,1 1/4
ROM block=00h to 1FFFh (8K)
1,1,0 1/2 ROM block=00h to 3FFFh (16K)
1,1,1 1
All bits are ROM
In all cases, except when (B2,B1,B0)=(0,0,0), the
selected area of EEPROM becomes read only
(Write Protected) regardless of the status of the
other bits and pins. However, the Control Register
itself remains alterable in accordance with the sta-
tus of WC, WCpol, WCR and CRWD.
Write to the OTP Page
The OTP page is accessed by addressing the de-
vice using the specific, Device Select Byte (as de-
scribed in Table 3).
The correct sequence for this instruction can be
sketched out as follows:
Start
OTP Page Select(= 1010 0010)
Ack
Address (MSB) (= xxxx 0000)
Ack
Address (LSB) (= 0000 0000)
Ack
Data
(= byte to be written)
Ack
........
Data
(= byte to be written)
Ack
Stop
If one bit of the OTP Page Select differs from the
above values, the OTP Page Select will NOT be
acknowledged and the WRITE instruction will be
ignored.
9/18