Escolar Documentos
Profissional Documentos
Cultura Documentos
MCS@51
8-BIT CONTROL-ORIENTED MICROCONTROLLERS
Commercial/Express
8031AH18051AH18051AHP
8032N+18052N-I
8751W8751H-8
8751BW8752BI-I
Boolean Processor
Bit-Addressable RAM
Channel
(40C to +85C)
The MCS@51 controllers are optimized for control applications. Byte-processing and numerical operations on
small data structures are facilitated by a variety of fast addressing modes for accessing the internal RAM. The
instruction set provides a convenient menu of 8-bit arithmetic instructions, including multiply and divide instructions. Extensive on-chip support is provided for one-bit variables as a separate data type, allowing direct bit
manipulation and testing in control and logic systems that require Boolean processing.
The 8751H is an EPROM version of the 8051AH. It has 4 Kbytes of electrically programmable ROM which can
be erased with ultraviolet light. His fully compatible with the 8051AH but incorporates one additional feature: a
Program Memory Security bit that can be used to protect the EPROM against unauthorized readout. The
8751 H-8 is identical to the 8751 H but only operates up to 8 MHz.
The 8051AHP is identical to the 8051AH with the exception of the Protection Feature. To incorporate this
Protection Feature, program verification has been disabled and external memory accesses have been limited
to 4K.
The 8052AH is an enhanced version of the 8051AH. It is backwards compatible with the 8051AH and is
fabricated with HMOS II technology. The 8052AH enhancements are listed in the table below. Also refer to this
table for the ROM, ROMless and-EPROM versions of each product.
Device
8031AH
8051AH
6051AHP
8751 H
8751 H-8
6751 BH
8032AH
6052AH
8752BH
Data
Timera/
Event Counters
Interrupts
Program
Intsrnal Memory
none
4K X 8 ROM
4K X 6 ROM
4K X 8 EPROM
4K X 8 EPROM
4K X 8 EPROM
none
8K X 8 ROM
8K X 8 EPROM
128 X 8 RAM
128 X 8 RAM
128 X 8 RAM
128 X 8 RAM
128 X 6 RAM
128 X 8 RAM
256 X 6 RAM
256 X 8 RAM
256 X 8 RAM
2 x 18-Bit
2 x 16-Bit
2 x 16-Bit
2 x 16-Bit
2 x 16-Bit
2 x 16-Bit
3 x 16-Bit
3 x 16-Bit
3 x 16-Bit
5
5
5
5
5
5
6
6
6
Intel Corporationassumes no responsibilityfor the use of any circuit~ other than circuitryembodied in an Intel product.No other circuitpatent
licenses are implied.Informationcontained herein supersedes previouslypublishedspecificationson theaa davices from Intel.
O INTEL CORPORATION, 1994
October 1994
Order Numben 272318-002
MCS 51 CONTROLLER
MO-M
P2.&P2 7
I
I
fl
13 I I
II
,,
JK2U
1==4
~Mf2#fi+-oN,TMoD,TJ
STACK
POINTER
Acc
L-J
+1
<>1
ml ... ,, I,
77
%
I
PSEN
TyG
ALE
g~
RST-+
*
h-+ T
i-
,,(-1
--% =2
PI O*1 7
.. .
9
I
P0nT3
II
119
LATCH
7
W
Pm 3
LHvI!RS
I
..
P] O-P3 7
x
=
272318-1
PROCESS INFORMATION
The 8031AH/8051AH and 8032AH/8052AH devices are manufactured on P414.1, an HMOS II process. The 8751H/8751 H-8 devices are manufactured on P421.X, an HMOS-E process. The 8751BH
and 8752BH devices are manufactured on P422.
Additional process and reliability information is availQuality and Reliability
able in Intels Components
Handbook, Order No, 210997.
MCS@ 51 CONTROLLER
PACKAGES
Part
Prefix
Package Type
8051AH
8031AH
8052AH
8032AH
6752BH*
P
D
N
45chV
4!5CIW
46C/W
16C/W
15CAIV
18CfW
8751H
8751 H-8
40-Pin CERDIP
45CIW
45CIW
8051AHP
P
D
45CIW
45c/w
16CfW
15cf w
8751 BH
P
N
36CIW
47C1W
12cf w
16Cf W
ja
Ojc
NOTE:
*8752BHis 36/10 for D, and 38/22 for N.
All thermal impedance data is approximate for static air conditions at IW of power dissipation. Values will
change depending on operating conditions and application. See the Intel Pac/raging Handbook (Order Number
240800) for a description of Intels thermal impedance test methodology.
~5280320NL
L{
PI.
P1.1
P1.2
P1.3
P1.4
P1.5
P1,6
P1.7
RST
RU2 P3.O
TXD P3.1
INTO P3.2
INT1 P3,3
TOP3 4
11 P3.5
~ P3.6
t% P3.7
XTAL2
XTAL1
T2
T2EX
I__ll
40
39
38
37
36
35
34
33
2
3
4
5
6
7
6
9
10
11
12
13
14
15
16
17
16
19
1
29
26
27
26
25
24
23
22
21
ss+!--
Vcc
P, ADO
PO.1 AD1
PO.2 A02
PO.3 A03
PO.4 AD4
PO.5 AD5
P06 AD
3 PO.7A07
3 EIJvpp
Z ALEIPROG
3%FFI
3 P2.7 A15
2 P2.6A14
3 P2.5 A13
I P2.4 A12
1 P2.3 Al 1
> P2.2 AlO
3 P2 1 A9
X P20 A8
PI.6 ::8:;
P*,7 .:,.:
RST io;
(Rxo) P3.O :ji:
neaslvsd**
fTXD) P3.1
(INTo) P3.2
(INT1) P3.3
.1:;
:ji;
:!;;
:j:;
fTo) P3.4 :>!:
8X5X
272318-2
EPROM only
*Do not connect
DIP
reserved
PLCC
pins.
MCS 51 CONTROLLER
w
Port 2 emits the high-order address byte during
fetches from external Program Memory and during
accesses to external Data Memory that use 16-bit
addresses (MOVX @DPTR). In this application it
uses strong internal pullups when emitting 1s. During accesses to external Data Memory that use 8-bit
addresses (MOVX @Ri),Port 2 emits the contents of
the P2 Special Function Register.
PIN DESCRIPTIONS
Vcc: Supply voltage.
Vss: Circuit ground.
Port O:Port O is an 8-bit open drain bidirectional 1/0
port. As an output port each pin can sink 8 LS TTL
inputs.
Port Opins that have 1s written to them float, and in
that state can be used as high-impedance inputs.
Port
Pin
P1.0
P1.1
Alternative Function
Port 2 also receives the high-order address bits during programming of the EPROM parts and during
program verification of the ROM and EPROM parts.
Alternative Function
P3,0
P3.1
P3.2
P3,3
P3.4
P3.5
P3.6
P3.7
MCS 51 CONTROLLER
w
PSEN: Program Store Enable is the read strobe to
external Program Memory.
When the device is executing code from external
Program Memory, PSEN is activated twice each machine cycle, except that two PSEN activations are
skipped during each access to external Data Memory
~/Vpp:
External Access enable ~
must be
strapped to VSS in order to enable any MCS 51 device to fetch code from external Program memory
locations starting at OOOOHup to FFFFH. ~ must
be strapped to VCCfor internal program execution.
EXTERNAL
OSCILLATOR
SIGNAL
XTAL2
XTAL1
This pin also receives the programming supply voltage (VPP) during programming of the EPROM parts.
Vss
C2
El
272318-4
XTAL2
XTAL1
cl
Vss
272318-3
Cl, C2 = 30 PF +10 PF for Crystals
For Ceramic Resonators contact resonatormanufacturer.
OSCILLATOR CHARACTERISTICS
XTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier which can be configured for use as an on-chip oscillator, as shown in
Figure 3. Either a quartz crystal or ceramic resonator
may be used. More detailed information concerning
the use of the on-chip oscillator is available in Application Note AP-155; Oscillators for MicrocontrolIers, Order No, 230659.
EXPRESS Version
The Intel EXPRESS system offers enhancements to
the operational specifications of the MCS 51 family
of microcontrollers. These EXPRESS products are
designed to meet the needs of those applications
whose operating requirements exceed commercial
standards.
The EXPRESS program includes the commercial
standard temperature range with burn-in, and an extended temperature range with or without burn-in.
With the commercial standard temperature range,
operational characteristics are guaranteed over the
temperature range of OC to + 70C. With the extended temperature range option, operational characteristics are guaranteed over a range of 40C to
+ 85C.
The optional burn-in is dynamic, for a minimum time
of 160 hours at 125C with VCC = 5.5V * 0.25V,
following guidelines in MIL-STD-883, Method 1015.
Package types and EXPRESSversions are identified
by a one- or two-letter prefix to the part number. The
prefixes are listed in Table 1.
For the extended temperature range option, this
data sheet specifies the parameters which deviate
from their commercial temperature range limits.
MCS@51 CONTROLLER
Package Type
Temperature Range
Burn-In
Plastic
Commercial
No
Cerdip
Commercial
No
PLCC
Commercial
No
TD
Cerdip
Extended
No
TP
Plastic
Extended
No
TN
PLCC
Extended
No
LD
Cerdip
Extended
Yes
LP
Plastic
Extended
Yes
NOTE:
Contactdistributoror localsalesofficeto matchEXPRESSprefixwith properdevice.
DESIGN CONSIDERATIONS
If an 8751 BH or 8752BH is replacing an 8751 H in
a future design, the user should carefully compare both data sheets for DC or AC Characteristic differences. Note that the VIH and IIH specifications for the ~ pin differ significantly between
the devices.
Exposure to light when the EPROM device is in
operation may cause logic errors. For this reason,
it is suggested that an opaque label be placed
over the window when the die is exposed to ambient light.
MOVX A,@DPTR
MOVX (6JDPTR,
A
When the Data Pointer contains an address
above the 4K limit, those locations will not be accessed.
To access Data Memory above 4K, the
MOVX @Ri,A or MOVX A,@Ri instructions must
be used.
MCS 51 CONTROLLER
65C to + 150C
8751 H . . . . . . . . . . . . . . . . .
0.5V to + 21.5V
8751 BH/6752BH
0.5V
13.OV
tO +
0.5V to + 7V
. . ...
1.5W
OPERATING CONDITIONS
Symbol
TA
Ambient
Description
Vcc
Fosc
Commercial
Express
SupplyVoltage
OscillatorFrequency
Temperature
Min
Msx
Units
o
40
4.5
3.5
+70
+65
5.5
12
c
c
v
MHz
Under Bias
Parameter
Min
Max
Units
0.5
0.8
0.7
2.0
Vcc + 0.5
VIH1
2.5
Vcc + 0.5
XTAL1 = Vss
VIH2
4.5
5.5V
0.45
loL = 1.6 mA
0.60
0.45
0.45
v
v
v
ioL = 3.2 mA
!OL = 2.4 mA
IOL = 3.2 mA
VIL
VIL1
VIH
Pin of
VoL
VoLl
Test Conditions
VOH
2.4
IOH = 80 PA
VOH1
2.4
IOH = 400 pA
IIL
500
pA
VIN = 0.45V
IILI
15
lo
mA
mA
mA
mA
VIN = 0.45V
VIN = Vss
VIN = Vss
lo
0.5
MCS 51 CONTROLLER
DC CHARACTERISTICS
All oarameter
values armlv
to.-.
all devices unless otherwise indicated (Continued)
~.-.....
r.,
_r
Symbol
Max
Units
11L2
3.2
mA
VIN = 0.45V
ILI
* 1or)
t 10
pA
pA
500
1
pA
VIN= 2.4V
mA
IIH
Parameter
8751BH/8752BH
Min
Teat Conditions
IIH1
500
pA
Icc
125
175
250
mA
mA
mA
All Outputs
Disconnected;
m = Vcc
10
pF
Clo
Pin Capacitance
NOTES:
1. Capacitive loading on PortsO and 2 may csuse spurious noise pulses to be superimposed on the VOLS of ALE/PROG
and Ports 1 and 3. The noise is dueto externalbuscapacitancedischarginginto the PortOand Port2 pinswhenthesepins
make 1-to-Otransitionsduringbus operations.In the worst cases(capacitiveloading > 100 pF), the noise pulse on the
ALE/PROGpin mayexceed0.8V.In suchcasesit maybe desirableto qualifyALEwitha SchmittTrigger,or usean address
latchwith a Schmi~TriggerSTROBEinput.
2, ALE/PROGrefersto a pin on the 8751BH.ALErefersto a timingsignalthat is outputon the ALE/PROGpin.
3. Understeadystate(non-transient)conditions,loL mustbe externallylimitedas follows:
10 mA
MaximumloL per port pin:
MaximumloL per 8-bitpori 26 mA
Porto:
15 mA
Ports1, 2, and 3:
Maximumtotal toL for all outputpins:
71 mA
If loL exceedsthe test condition,VOLmayexceedthe relatedspecification.Pinsare not guaranteedto sinkcurrentgreater
than the listedtest conditions.
MCS@51 CONTROLLER
L: ~level
LOW, or ALE
P: PSEN
Q: Output data
R: ~ signal
T: Time
V: Valid
W: WR signal
X: No longer a valid logic level
Z: Float
For example,
TAVLL = Time from Address Valid to ALE Low.
TLLPL = Time from ALE Low to PSEN Low.
AC CHARACTERISTICS (Under Operating Conditions; Load Capacitance for Port O,ALE/PROG, and
PSEN = 100 pF; Load Capacitance for All Other Outputs = 80 pF)
1/TCLCL
TLHLL
Oscillator Frequency
ALE Pulse Width
TAVLL
TLLAX
TLLIV
12 MHz Oscillator
Max
Min
Parameter
Symbol
Variable Oscillator
Max
12.0
3.5
Units
Min
MHz
127
2TCLCL40
ns
43
TCLCL40
48
TCLCL35
ns
ns
4TCLCL 150
4TCLCL 100
TLLPL
58
TCLCL25
ns
ns
ns
TPLPH
190
215
3TCLCL60
3TCLCL35
ns
ns
TPLIV
TPXIX
TPXIZ
TPXAV
TAVIV
183
233
100
125
o
3TCLCL 150
3TCLCL 125
ns
ns
ns
TCLCL20
ns
ns
5TCLCL1 50
5TCLCL1 15
20
ns
ns
ns
0
63
75
TCLCL8
287
302
TPLAZ
TRLRH
Pulse Width
400
6TCLCL 100
ns
TWLWH
TRLDV
WR Pulse Width
400
6TCLCL 100
ns
TRHDX
TRHDZ
TLLDV
-.. .. . .
I AVUV
20
252
ns
ns
97
2TCLCL70
ns
517
.,. DUD
I
8TCLCL1 50
nl-n,
n,
.ec
103
Y I ~LUL
5TCLCL 165
ns
--
rm
MCS@51 CONTROLLER
EXTERNAL
Symbol
arameerI---%#
(Continued)
VariableOscillator
Min
Max
3TCLCL+ 50
Units
TLLWL
200
TAVWL
TQVWX
Address to ~
203
3TCLCL50
4TCLCL 130
13
23
TCLCL70
TCLCL60
ns
ns
433
7TCLCL 150
TCLCL50
ns
or WR Low
TQVWH
TWHQX
TRLAZ
TWHLH
300
33
20
33
43
133
123
ns
I
TCLCL50
TCLCL40
ns
ns
20
TCLCL+ 50
TCLCL+40
I ns
ns
ns
NOTE:
The 8751H-8 is identicalto the 8751Hbut only o~eratesutI to 8 MHz.Whencalculatingthe AC Characteristicsfor the
8751 H-8, use the 8751 H formula for variable oscillators.
10
MCS@51 CONTROLLER
TLHLL _
ALE
\ ,
PSEN
TLLPL- ~
-TAVLL+
+
TPLPH
TLLIV
/
TLLAX
PORTO
AO
PORT 2
-A15
A8 -A15
272318-5
Y
TWHLH
+TLHLL+
PSEN
LLOv ~
TRLRH
TLLWL
TAVLL +
b
TRLDV4
_TLLAX
TRHOX+
PORTO
.
.
PORT2
OATA IN
TAVOV
P2.O-P2.7
x r
b
OR A8-A15
FROMDPH
A8-A15
FROMPCH
272318-6
\ ,
\
TWHLH
TLHLL
m
/
*
TLLwL~TwLwH
WT
TAVLL
PORTO
TQVWX
7t=-
+TLLAX
II
AO-A7
FROMRIOR OPL
TWHQX
I
TQVWH
P2.O-P2.7
OR A8-A15
OATAOUT
xx
FROMOPH
PORT2
AO-A7 FROMFCL
A8-A15
FROMPCH
272318-7
11
M=
51 CONTROLLER
Parameter
Symbol
Min
VariableOscillator
Min
Max
Unite
Max
TXLXL
1.0
12TCLCL
ps
TQVXH
700
1OTCLCL 133
ns
TXHQX
50
2TCLCL1 17
ns
TXHDX
ns
TXHDV
10TCLCL 133
700
ns
;HI17REGISTERMODETIMINGWAVEFORMS
INSTRUCTION I
ALE
n n n n n n n n n n n n n n n n n n I
I-TXLXL-7
CLOCK
WI-TXHQX
OUTPUT OATA
1)(
SET TI
INPUT DATA
4
SET RI
272318-8
12
MCS@51 CONTROLLER
Symbol
Parameter
Min
Max
Units
1/TCLCL
3.5
3.5
12
8
MHz
MHz
TCHCX
High Time
20
ns
TCLCX
Low Time
20
ns
TCLCH
Rise Time
20
Fall Time
TCHCL
20
ns
ns
2.5
TCLCH _
TCHCX
t 2.5
-
+
TCliCL
TCLCX
TCLCL
w
272318-9
2.0
2.0
TEST POINTS
><
0.s
0.8
0.45
272318-10
AC Testing: Inputs are driven at 2.4V for a Logic 1 and 0.45V
for a Logic O. Timing measurements ara made at 2.OV for a
Logic 1 and 0.8V for a LogicO.
MCS@51 CONTROLLER
EPROM CHARACTERISTICS
Table3. EPROMProgramming
Modea
ALE
m
P2.7
PSEN
Mode
RST
P2.6
P2.5
P2.4
Program
o*
VPP
Verify
o*
0
1
1
Security Set
NOTE:
1 = logichighfor that pin
O = logiclowfor that pin
X = dont care
1
VPP
Program Verification
If the Security Bit has not been programmed, the onchip Program Memory can be read out for verification purposes, if desired, either during or after the
programming operation. The address of the Program
Memory location to be read is appiied to Port 1 and
pins P2.O-P2.3. The other pins should be held at the
Verify Ieveis indicated in Tabie 3. The contents of
the addressed location will come out on Port O. External pullups are required on Port O for this operation.
The setup, which is shown in Figure 6, is the same
as for programming the EPROM except that pin P2.7
is held at a logic low, or may be used as an activeIow read strobe
+5V
Vcc
AOOR
A&b?
p?
UAll
P2.3
FFH
PGM DATA
P2.0
8751H
Vcc
w +
FFH
=-TCAREJ=E
LEl=$=-
mu
DATA
(USE 10K
PULLUPS]
W51H
~ . ,,W,,
U
Vlli
P2.7
XTAU
4-SUN*
XTAL1
VIH1
P2.5
ALE
VIH
P2.S
.
ENAS4E
RST
~~b
VIL d
F&vPP
Vss
CARE,. x X-9
P2 7
XTAU
J4-6 MHZm
RST h
PSEN
VIH1
XTAL1
Vss
27231 a-1 I
Figure5. Programming
Configuration
PSEN
27231S-12
Figure6. ProgramVerification
14
MCS@51 CONTROLLER
EPROM Security
+5V
X = OGNT CARE
Vcc
PI
m
P2.0X
P2.3
P2.4
8751H
ALE
{:
VIM
P2,7
ALE/PROO
50 ma PULSE TO GND
P2.5
P2.6
fi
EAYPP
WH1
XTAU
RST
m
XTAL1
Vss
PSEN
7*
272318-13
Figure7. Programming
the SecurityBit
Erasure Characteristics
Erasure of the EPROM begins to occur when the
device is exposed to light with wavelengths shorter
than approximately 4,000 Angstroms. Since sunlight
and fluorescent lighting have wavelengths in this
range, exposure to these light sources over an extended time (about 1 week in sunlight, or 3 years in
room-level fluorescent lighting) could cause inadvertent erasure. If an application subjects the device to
this type of exposure, it is suggested that an opaque
label be placed over the window.
Symbol
Parameter
Min
Max
Unita
20.5
21.5
30
v
mA
MHz
10
ps
10
45
55
ps
ms
VPP
IPP
1/TCLCL
TAVGL
TGHAX
Oscillator Frequency
Address Setup to PROG Low
Address Hold after PROG
48TCLCL
TDVGL
48TCLCL
TGHDX
48TCLCL
TEHSH
TSHGL
48TCLCL
TGHSL
TGLGH
PROG Width
TAVQV
TELQV
TEHQZ
4
46TCLCL
48TCLCL
48TCLCL
o
48TCLCL
15
MCS 51 CONTROLLER
GI-
nl r
mrnmrlmn.
I-8.
,Lrl..
.4-s
m..
..-.
b.
..8.,
PROGRAMMING
P1.O-PI.7
P3,0-P3,3
VERIFICATION
ADDRESS
PORTO
DATAIN
{ ,
TOVGL
TGHOX
TAVGL
TGHAX
kLE/PROG
\
TSHGL
TGLGH
21V * .5V
TGHSL
r
Fi.vPP
HIGH
TSHSN
P3.7
(ENABLE)
TTL HIGH
TTL HIGH
TELOV
\
1
272318-14
16
inlA
MCS 51 CONTROLLER
Normally ~&is
held at a logic high until just
before ALE/PROG is to be pulsed. Then ~/Vpp is
raised to Vpp, ALE/PROG is pulsed low, and then
~/Vpp is returned to a valid high voltage. The voltage on the ~/Vpp pin must be at the valid EA/Vpp
high level before a verify is attempted. Waveforms
and detailed timing specifications are shown in later
sections of this data sheet.
Vcc
Po
1~
RST
1~
P3.6
E/vpp
P3.7
XTAL2
+12.75V
ALE/PROG ~25
875X,,
1~
P2.7 ~1
P2.6 ~o
lJ-
4-6 MHz
T=
XTAL1
P2.O
-P2,4
ks
=
272318-15
Figure8. Programming
the EPROM
Table4. EPROMProgramming
Modeafor 875XBH
MODE
RST
PSEN
ALE/
PROG
ml
Vpp
P2.7
P2.6
P3.6
P3.7
o*
Vpp
o*
Vpp
1
1
0
0
o*
o*
Vpp
Vpp
1
1
1
1
1
0
1
0
Bits (LBx)
Read Signature
x=2
NOTES:
1 = Validhighfor that pin
O = Validlowfor that pin
vpp = + 12.75V+ 0.25V
*ALE/PROGis pulsedlowfor 100USfor programming.(Quick-PulseProgramming)
17
MCS@51 CONTROLLER
PROGRAM VERIFICATION
QUICK-PULSE PROGRAMMING
ALGORITHM
If the Lock Bits have not been programmed, the onchip Program Memory can be read out for verification purposes, if desired, either during or after the
programming operation. The address of the Program
Memory location to be read is applied to Port 1 and
pins P2.O - P2.4. The other pins should be held at
the Verify levels indicated in Table 1. The contents of the addressed location will come out on Port
O. External pullups are required on Port O for this
operation. (If the Encryption Array in the EPROM
has been programmed, the data present at Port O
will be Code Data XNOR Encryption Data. The user
must know the Encryption Array contents to manually unencrypt the data during verify.)
The 875XBH can be programmed using the QuickPulse Programming Algorithm for microcontrollers.
The features of the new programming method are a
lower Vpp (12.75 volts as compared to 21 volts) and
a shorter programming pulse. For example, it is possible to program the entire 8 Kbytes of 875XBH
EPROM memory in less than 25 seconds with this
algorithm!
To program the part using the new~rithm,
Vpp
must be 12,75 f 0.25 Volts. ALE/PROG is pulsed
low for 100 pseconds, 25 times as shown in
Figure 9, Then, the byte just programmed may be
verified. After programming, the entire array should
be verified. The Program Lock features are programmed using the same method, but with the setup
as shown in Table 4. The only difference in programming Lock features is that the Lock features cannot
be directly verified. Instead, verification of programming is by observing that their features are enabled.
~25pLsEs ~
ALEM
n-------100JM
*lops
10 P,MIN
I
ALE/PROG:
0
272318-16
Figure9. PROGWaveforma
+~v
AO-A7
P!
P3.6
rmpp
P3.7
P2.7
XTAL2
P2.6
XTAL1
P2.O
-P2.4
A8-A12
ALE/PRW
B75xBH
PGM
DATA
Po
RST
4-6 MHz
10kJl
X8
r-F
Vcc
(i-mm
Vss
Figure10.Verifyingthe EPROM
18
272318-17
MCS@51 CONTROLLER
Table5. LockBitsandtheirFeatures
LogicEnabled
LB1
Minimum Program Lock features
enabled. (Code Verify WIIIstill be
ENCRYPTION ARRAY
Within the EPROM array are 32 bytes of Encryption
Array that are initially unprogrammed (all 1s). Every
time that a byte is addressed during a verify, 5 address lines are used to select a byte of the Encryption Array. This byte is then exclusive-NORed
(XNOR) with the code byte, creating an Encrypted
Verify byte. The algorithm, with the array in the unprogrammed state (all 1s), will return the code in its
original, unmodified form.
It is recommended that whenever the Encryption Array is used, at least one of the Lock Bits be programmed as well.
P
U
I
I
= Programmed
= Unprogrammed
LOCK BITS
Erasing the EPROM also erases the Encryption Array and the Lock Bits, returning the part to full unlocked functionality.
To ensure proper functionality of the chip, the internally latched value of the ~ pin must agree with its
external state.
19
MCS 51 CONTROLLER
ERASURE CHARACTERISTICS
Parameter
Symbol
Vpp
Programming
Supply
Voltage
Ipp
Programming
Supply
Current
Min
Max
12.5
13.0
50
mA
MHz
1/TCLCL
Oscillator Frequency
TAVGL
TGHAX
48TCLCL
TDVGL
48TCLCL
TGHDX
48TCLCL
TEHSH
48TCLCL
TSHGL
10
TGHSL
10
TGLGH
PROG Width
90
Units
48TCLCL
ps
ps
110
TAVQV
48TCLCL
TELQV
48TCLCL
TEHQZ
TGHGL
10
ps
48TCLCL
ps
PROGRAMMING
ADDRFSS
ADDRESS
TAvQV
DATAOUT
DATAIN
::=&z
TAVGL
TSHGL
TGLGH
~wpp
.~TGHDX
TDVGL
Pu&
TGHAX
d
TGHGL
TGHsL
t
[A/HIGH
TELQV
TEHQZ
P2.7
272318-18
20
MCS@51 CONTROLLER
21