|
MCS® 51 Microcontroller Migration- HMOS TO CHMOS
TITLE: MCS® 51 MICROCONTROLLER MIGRATION-HMOS TO CHMOS
Date/version: April 1 1995/ Ver 2.00
Related Info: Databook & AP-252 Application Note
Keywords: HMOS, CHMOS, MIGRATION
ABSTRACT
This document describes the migration of the HMOS version of the MCS 51 microcontroller to the CHMOS version of the MCS 51 microcontroller. The following are covered in this document: logic level, AC specification, external clock drive, unused pin, power-on reset and feature differences.
The HMOS microcontrollers are 8031AH, 8051AH, 8051AHP, 8751H, 8751BH, 8032AH,
8052AH and 8752BH. The CHMOS microcontrollers are 80C31BH, 80C51BH, 80C51BHP,
87C51, 80C32, 80C52 and 87C52.
The information found in this document pertaining to these products:
80C31BH, 80C51BH, 80C51BHP, 87C51, 80C32 and 80C52, are based
on the P629 process that has an "A" suffix at the FPO number.
CHMOS is the name given to Intel's high-speed CMOS process. The advantages
of using these CHMOS version MCS 51 microcontrollers over the HMOS version
MCS 51 microcontrollers are: lower power consumption, higher noise immunity,
higher speed offering and additional features.
The CHMOS devices are architecturally compatible with their HMOS counterparts,
except that they have additional features added into the CHMOS devices. These
features are power management (Idle and Power Down modes), programmable clock-out
feature in Timer 2, interrupt priority levels, power off flag, asynchronous port
reset, and enhanced serial port with framing error detection and automatic
address recognition. Table 1 is a list of Intel's original HMOS and their
equivalent CHMOS version. The 80C51BH is the CHMOS version of Intel's original
8051AH. The 80C31BH is the ROMless 80C51BH. For the rest of this document, 80C51BH
the CHMOS version and 8051AH HMOS version will be used to describe the migration
of the HMOS version to the CHMOS version, and these apply to the other HMOS versions
unless otherwise specified.
HMOS Version | CHMOS Version |
8031AH |
80C31BH |
8051AH 8051AHP |
80C51BH 80C51BHP |
8751H 8751H-8 8751BH | 87C51 |
8032AH |
80C32 |
8052AH |
80C52 |
8752BH |
87C52 |
Table 1. HMOS and CHMOS version of MCS 51 microcontrollers
In most cases, an 80C51BH can directly replace the 8051AH in existing
applications. It can execute the same code at the same speed, accept
signals from same sources, and drive the same loads. However, the
80C51BH covers a wider range of speeds, will emit CMOS logic levels
to CMOS loads, and will draw about 1/10 the current of the 8051AH
(and even lower current in the reduced power modes).
With Vcc between 4.5V and 5.5V, an input signal that meets the HMOS
8051AH's input logic levels will also meet the CHMOS 80C51BH's input
logic levels (except for XTAL1/XTAL2 and RST). For the same Vcc
condition, the CHMOS device will reach or surpass the output logic
levels of the HMOS devices. Refer to Table 2 for the DC specification
differences.
At Vcc=5V and Fosc=12MHz
Symbol |
HMOS 8051AH |
CHMOS 80C51BH |
Min (V) |
Max (V) |
Min (V) |
Max (V) |
VIH (RST) |
2.5 |
5.5 |
3.5 |
5.5 |
VIH (XTAL1) |
2.5 |
5.5 |
- |
- |
VIH (XTAL2) |
- |
- |
3.5 |
5.5 |
ICC Active Mode Units: mA |
8031AH, 8051AH 8051AHP |
8751BH |
8751H 8751H-8 |
8032AH 8052AH 8752BH |
Min |
Max |
Min |
Max |
Min |
Max |
Min |
Max |
- |
125 |
- |
175 |
- |
250 |
- |
175 |
|
80C31BH 80C51BH 80C51BHP |
87C51 |
87C51 |
80C32 80C52 87C52 |
Min |
Max |
Min |
Max |
Min |
Max |
Min |
Max |
- |
20 |
- |
20 |
- |
20 |
- |
20 |
|
ICC Idle Mode Units: mA |
|
80C31BH 80C51BH 80C51BHP 87C51 |
80C32 80C52 87C52 |
Min |
Max |
Min |
Max |
- |
5 |
- |
7.5 |
|
ICC Idle Mode Units: uA |
|
80C31BH 80C51BH 80C51BHP 87C51 |
80C32 80C52 87C52 |
Min |
Max |
Min |
Max |
- |
50 |
- |
75 |
|
Table 2. Differences in DC specification of HMOS and CHMOS MCS 51 microcontrollers
The differences in the AC characteristics of the HMOS version of the MCS 51 microcontroller
compared to the CHMOS version of the MCS 51 microcontroller are shown in the Table 3a and
Table 3b. Since the HMOS devices operate up to 12MHz, only the standard part (3.5MHz to
12MHz) AC specification of the CHMOS version MCS 51 microcontroller is used for the
comparison but the CHMOS version MCS 51 microcontroller can operate up to 24MHz.
Symbol |
8031AH, 8051AH, 8051AHP, 8751BH, 8032AH, 8052AH, 8752BH |
80C31BH, 80C31BHP, 80C51BH, 87C51, 80C32, 80C52, 87C52 |
Units |
Min |
Max |
Min |
Max |
1/TCLCL |
3.5 |
12.0 |
3.5 |
12.0 |
MHz |
TLLAX |
TCLCL - 35 |
|
TCLCL - 30 |
|
ns |
TLLPL |
TCLCL - 25 |
|
TCLCL - 30 |
|
ns |
TPLPH |
3TCLCL - 35 |
|
3TCLCL - 45 |
|
ns |
TPLIV |
|
3TCLCL - 125 |
|
3TCLCL - 105 |
ns |
TPXIZ |
|
TCLCL - 20 |
|
TCLCL - 25 |
ns |
TPXAV |
TCLCL - 8 |
|
N.A. |
|
ns |
TAVIV |
|
5TCLCL - 115 |
|
5TCLCL - 105 |
ns |
TPLAZ |
|
20 |
|
10 |
ns |
TRHDZ | |
2TCLCL - 70 |
|
2TCLCL - 60 |
ns |
TQVWX |
TCLCL - 60 |
|
TCLCL - 50 |
|
ns |
TRLAZ |
|
20 |
|
0 |
ns |
Table 3a. AC specification group 1
Symbol |
8751H/8751H-8 |
80C31BH, 80C31BHP, 80C51BH, 87C51, 80C32, 80C52, 87C52 |
Units |
Min |
Max |
Min |
Max |
1/TCLCL |
3.5 |
12.0 |
3.5 |
12.0 |
MHz |
TLLAX |
TCLCL - 35 |
|
TCLCL - 30 |
|
ns |
TLLIV |
|
4TCLCL - 150 |
|
4TCLCL - 100 |
ns |
TLLPL |
TCLCL - 25 |
|
TCLCL - 30 |
|
ns |
TPLPH |
3TCLCL - 60 |
|
3TCLCL - 45 |
|
ns |
TPLIV |
|
3TCLCL - 150 |
|
3TCLCL - 105 |
ns |
TPXIZ |
|
TCLCL - 20 |
|
TCLCL - 25 |
ns |
TPXAV |
TCLCL - 8 |
|
-N.A.- |
|
ns |
TAVIV |
|
5TCLCL - 150 |
|
5TCLCL - 105 |
ns |
TPLAZ |
|
20 |
|
10 |
ns |
TRHDZ |
|
2TCLCL - 70 |
|
2TCLCL - 60 |
ns |
TQVWX |
TCLCL - 70 |
|
TCLCL - 50 |
|
ns |
TRLAZ |
|
20 |
|
0 |
ns |
TWHLH |
TCLCL - 50 |
TCLCL + 50 |
TCLCL - 40 |
TCLCL + 40 |
ns |
Table 3b. AC specification group 2
The pin mapping for the DIP and PLCC package found in the 8031AH, 8051AH,
8051AHP, 8751H and 8751BH are identical to the pin mapping of the 80C31BH,
80C51BH, 80C51BHP and 87C51. For the PLCC package, the 80C31BH, 80C51BH,
80C32, 80C52 and 87C52 have one extra ground pin that is not available
for the 8032AH, 8052AH and 8752BH. This extra ground pin is on pin1, VSS1.
This pin help to reduce ground and improve power supply by-passing. Note:
Connection of this pin is not needed for proper operation.
To drive the HMOS MCS 51 microcontroller with an external clock signal,
ground the XTAL1 pin and drive the XTAL2 pin. To drive the CHMOS MCS 51
microcontrollers with an external clock signal, drive the XTAL1 pin and
leave the XTAL2 pin unconnected. The reason for the difference is that
in the HMOS devices, it is the XTAL2 pin that drives the internal clocking
circuits, whereas in the CHMOS device it is the XTAL1 pin that drives the
internal clocking circuits. The external circuits that uses the crystal
resonator and 2 capacitor configuration together with the on-chip oscillator
for the HMOS and the CHMOS devices are identical.
Unused pins of Ports 1, 2 and 3 can be ignored in both HMOS and CHMOS MCS
51 microcontrollers. Unused Port 0 pins in HMOS version of the MCS 51
microcontroller can be ignored, even if they are floating. But in CHMOS
version of the MCS 51 microcontroller, these Port 0 pins should not be left
afloat. If they float, they tend to float into the transition region between
0 and 1, where the pullup or pulldown devices in the input buffer are both
conductive. This causes a significant increase in Icc. These unused pins
should be externally pulled up or down, or they can be internally pulled
down by writing 0s to them.
For HMOS devices when Vcc is turned on, an automatic reset can be obtained
by connecting the RST pin to Vcc through a 10uF capacitor and to Vss
through a resistor. The CHMOS devices do not require this resistor although
its presence does no harm. In fact, for CHMOS devices the external resistor
can be removed because they have an internal pulldown on the RST pin.
The capacitor value could then be reduced to 1uF.
9.1 8051AHP and 80C51BHP (Information related to 87C51/80C51BH/80C31BH
found in this document will be reflected in the new revision datasheet
(order # 272335-002).
The 8051AHP protection features are:
Program verification has been disabled
External memory access have been limited to 4K.
The 80C51BHP protection features are:
64 bytes of encryption array
MOVC instructions executed from external program memory
are disabled from fetching code bytes from internal memory
EA is sampled and latched on reset.
9.2 8751H/8751BH/8752BH and 87C51/87C52
The 8751H protection features are:
Program verification has been disabled
External memory execution has been disabled.
The 8751BH/8752BH protection features have 32 bytes of encryption
array and with and 2 programmable lock bits that when programmed
according to Table 4 will provide different levels of protection
for the on-chip code and data.
Level |
Program Lock Bits |
Protection Type |
LB1 | LB2 |
1 |
U |
U |
No program lock features enabled. (Code verify will still be encrypted
by the Encryption Array) |
2 |
P |
U |
MOVC instructions executed from external program memory are
disabled from fetching code bytes from internal memory, EA is
sampled and latched on reset, and further programming of the
EPROM/OTP is disabled. |
3 |
P |
P |
Same as 2, also verify is disabled. |
Table 4 Program Lock Bits and the Features
The 87C51/87C52 protection features have 64 bytes of encryption array and 3 programmable lock bits that when programmed according to Table 5 will provide different levels of protection for the on-chip code and data.
Level |
Program Lock Bits |
Protection Type |
LB1 | LB2 | LB3 |
1 |
U |
U |
U |
No program lock features enabled. (Code verify will still be encrypted by
the Encryption Array) |
2 |
P |
U |
U |
MOVC instructions executed from external program memory are disabled from
fetching code bytes from internal memory, EA is sampled and latched on reset,
and further programming of the EPROM/OTP is disabled. |
3 | P | P | U | Same as 2, also verify is disabled. |
4 |
P |
P |
P |
Same as 3, also external execution is disabled. |
Table 5 Program Lock Bits and the Features
Legend:
U Unprogrammed
P Programmed
Timer 2 operating features (16-bit auto-reload, 16-bit capture and baud rate generator)
found in 8032AH/8052AH/8752BH are also available in the 80C32/80C52/87C52. There are 2
additional features, 16-bit auto-reload with up or down counter and programmable
clock-out that are available only in 80C32/80C52/87C52.
For applications where power consumption is critical the CHMOS version provides power
reduced modes of operation as a standard feature. The 80C31BH/80C51BH/80C51BHP and
80C32/80C52/87C52 CHMOS version of MCS 51 microcontroller have two power management
modes, and these are Idle Mode and Power Down Mode.
The HMOS devices has only one Interrupt Priority register (IP) that allows two interrupt
priority levels. But the CHMOS version provides the IP register and a second Interrupt
Priority register (IPH) that allows four interrupt priority levels.
The Power Off Flag (POF), bit 4 in the Special Function Register PCON (PCON.4) is only
available in the CHMOS devices. POF is set by hardware when Vcc rises from 0 to 5 Volts.
POF can also be set or cleared by software. This allows the user to distinguish between a
"cold start" reset and a "warm start" reset. Note: Vcc must remain
above 3 Volts for POF to retain a 0.
To reset the HMOS devices port pins, the oscillator must be running. At least 19 oscillator
periods must occur after a logic 1 is applied to the RST pin before the port pins are
driven to their reset state. For the CHMOS devices, the clock does not have to be running
for the ports to assume their reset value. The port pins are driven to their reset state
as soon as a valid high is applied to the RST pin.
The serial port automatic address recognition and framing error detection are available
only in the CHMOS devices. The automatic address recognition feature when enabled will
set the Receive Interrupt (RI) flag only when the received byte corresponds to either a
Given or Broadcast address. The automatic address recognition feature will reduce the
CPU time required to service the serial port. The Framing Error (FE) detection allows
the serial port to check for a valid stop bits in mode 1, 2 and 3. A missing stop bit
can be caused, for example, by noise on the serial lines, or transmission by two CPUs
simultaneously.
1. Designing with the 80C51BH , Application Note AP-252,
2. MCS 51 8-Bit Control-Oriented Microcontrollers
3. 87C51/80C51BH/80C31BH CHMOS Single-Chip 8-Bit Microcontroller,
4. 8xC52/54/58 CHMOS Single-Chip 8-Bit Microcontroller
|