EB193
EB193
EB193
Introduction
The 68HC11E Family was designed to provide more ROM and RAM for
68HC11A users.
Both device families have the same pinouts in the 52-pin PLCC and 64-
pin QFP (quad flat pack) packages.
Pin Assignments The A Family and E Family pinouts are identical for 52-pin PLCC and 64-
pin QFP packages. On E Family pinouts, pin 31 of the 52-pin PLCC and
pin 62 of the 64-pin QFP (quad flat pack) have additional functionality.
This will be described in the Differences section under port A, bit 3.
Difference: ROM The 68HC11E9 has 12 Kbytes of ROM at address locations $D000
through $FFFF, while the 68HC11A8 has eight Kbytes of ROM at
address locations $E000 through $FFFF.
EB193
2 MOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Introduction
512 bytes with no 512 bytes with 4 selectable Block protection register
EEPROM
write protection block protects (BPROT)
CONFIG Only programmable Programmable in normal CONFIG alteration;
register in special modes and special modes block protection
EB193
MOTOROLA 3
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Difference: RAM The 68HC11E Family has 512 bytes of RAM initially at address locations
$0000 through $01FF, while the 68HC11A Family has 256 bytes of RAM
at address locations $0000 through $00FF.
Issue: None
EB193
4 MOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Introduction
Difference: Most devices in the 68HC11A and 68HC11E Families have on-board
EEPROM EEPROM.
Case 1 Case: Custom (masked) 68HC11A8 ROM devices, all operating modes
EB193
MOTOROLA 5
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Case 1 Case: Custom (masked) 68HC11A8 ROM devices, all operating modes
EB193
6 MOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Introduction
Difference: The 68HC11A devices have three fixed input captures and five fixed
Port A, Bit 3 output compares, and port A, bit 3 (PA3) is a dedicated output pin. On
EX devices, this pin is bidirectional because it can be configured as a
fourth input capture or a fifth output compare. The initial state of PA3 on
68HC11A devices after reset is active, driving low. The initial state of
PA3 on 68HC11E devices after reset is input, high impedance.
NOTE: If the PA3 pin is not used, it is still recommended that the pin be
configured as an input and pulled up or down or configured as an output.
EB193
MOTOROLA 7
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Difference: Reads, writes, and compares of the following registers may have an
Registers effect on the system when switching between the 68HC11A and
and Other 68HC11E Families. The bold text in Table 3 represents the register or
I/O Control bit differences.
$1000 PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 PORTA
TI4O5
$101E Bit 15 14 13 12 11 10 9 Bit 8
(high)
TI4O5
$101F Bit 7 6 5 4 3 2 1 Bit 0
(low)
$1021 EDG4B EDG4A EDG1B EDG1A EDG2B EDG2A EDG3B EDG3A TCTL2
$1022 OC1I OC2I OC3I OC4I I4/O5I IC1I IC2I IC3I TMSK1
$1023 OC1F OC2F OC3F OC4F I4/O5F IC1F IC2F IC3F TFLG1
$1026 DDRA7 PAEN PAMOD PEDGE DDRA3 I4/O5 RTR1 RTR0 PACTL
$103C RBOOT SMOD MDA IRVNE PSEL3 PSEL2 PSEL1 PSEL0 HPRIO
EB193
8 MOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Introduction
MC68HC11A series MCUs have three input capture and five output
compare channels on port A. The 68HC11A port A, bit 3 (PA3) pin is a
dedicated output pin. On 68HC11E MCUs, this pin is bidirectional
because it can be configured as a fourth input capture (IC4) or a fifth
output compare. The PA3 pin state difference was covered earlier in this
bulletin. Several other timer registers have been changed to allow the
additional input capture function on 68HC11E devices.
PORTA A read of this data register will return input data in bit positions 7, 2, 1,
and 0 on 68HC11A devices. Bit 7 (PA7) can be configured as an output
Freescale Semiconductor, Inc...
TOC5 or TI4O5 The 16-bit register at $101E is the timer output compare 5 register on
68HC11A devices. On 68HC11E devices, this register is either timer
input capture 4 register or output compare 5 register, depending on the
function enabled by the I4/O5 bit in the PACTL register. The default
function of this register is output compare 5.
TCTL2 Bits 7 and 6 in this register, which are not implemented on 68HC11A
devices, control the input capture edge for IC4 on 68HC11E devices. IC4
functions only if the I4/O5 bit in the PACTL register is set.
EB193
MOTOROLA 9
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
PACTL Bits 3 and 2 in this register, which are not implemented on 68HC11A
devices, control the function of port A, pin 3 on 68HC11E devices. Bit 3
is the data direction bit (DDRA3), and bit 2 configures the pin either as
IC4 or OC5 when used for timing functions.
BPROT 68HC11E devices have this additional time- and write-restricted register
which protects blocks of EEPROM and the CONFIG register from
unintentional programming or erasure. Protection must be disabled by
clearing bits during the first 64 clock cycles after reset in normal modes
to enable intentional EEPROM changes. Protection for CONFIG and
Freescale Semiconductor, Inc...
HPRIO On 68HC11A devices, bit 4 is the internal read visibility bit, which is used
in the special modes to affect visibility of internal reads on the expansion
data bus. On 68HC11E devices, bit 4 is the internal read visibility/not E
control bit. This control bit serves the same function during operation in
expanded mode. In single-chip and bootstrap modes, IRVNE can be set
to disable the E clock output to reduce system noise and power.
EB193
10 MOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Special Section: CONFIG Register Verification and Reprogramming Routine
Fill in the blank that follows with the desired CONFIG register value. Also, choose
the appropriate delay based on E frequency.
EB193
MOTOROLA 11
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Special Section: CONFIG Register Verification and Reprogramming Routine
At this point, 49 cycles remain for modifications to be made to the time protected
registers (TMSK2, BPROT, OPTION, and INIT), if necessary, on all HC11 devices.
The EEPROM erase sequence requires that some data be stored to the byte being erased.
The actual data stored and instructions used are irrelevant; it is only necessary to
complete a memory write cycle to the location in question.
Freescale Semiconductor, Inc...
* Now allow clock monitor to reset the HC11 and latch the new CONFIG
* register value.
NORMAL etc.
* This EEPROM delay subroutine may be used for any EEPROM programming
* or erase operations.
EB193
MOTOROLA 12
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Special Section: Using the HC11 A-Series PA3 Pin Functionality on the HC11 E-Series
The #DELAY term used for program and erase operations is calculated as follows:
Typical decimal values for DELAY are 30000 at 3 MHz, 20000 at 2 MHz, and 10000 at
1ÊMHz. Note that these values apply when the timer prescale is divide-by-1.
State of the PA3 Pin This code is an example of how to change the HC11 E-series PA3 pin
(Pin 31) in PORTA from a high impedance input to a logic 0 (output) as it is on the HC11
A-series.
**********************************************************************************
* Software that configures HC11 E-series PA3 pin as an output similar to the HC11*
* A-series. Instruction lines in BOLD denote a instruction changes that are *
* different when using the E-series.
***********************************************************************************
* REGISTER CONSTANTS
REGBASE EQU $1000 ; start of register block
PACTL EQU $26
* BIT CONSTANTS
DDRA3 EQU $08 ; DDRA3 bit in PACTL register
; configures the PORTA pin 3
EB193
MOTOROLA 13
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
* START OF PROGRAM *
.
.
.
LDX #REGBASE ; increment from beginning of register
; block
BSET PACTL,X,DDRA3 ; set ddra3 bit to configure PORTA
; pin 3 as an output
etc...
Using the Output This code is an example of how to use the output compare 5 on the
Freescale Semiconductor, Inc...
Compare 5 on the HC11 E-series. The output compare is used here as a simple 10 ms
HC11 E-Series delay subroutine.
*********************************************************************************
* Example routine to use the different approach of the OC5 on the HC11 E-series which*
* is different from the HC11 A-series. The OC5 is used in a simple 10 ms delay in*
* this example. Instruction lines in BOLD denote a difference in the commands of the*
* HC11 A-series.
************************************************************************************
* REGISTER CONSTANTS
REGBASE EQU $1000 ; start of register block
TCTL1 EQU $20
TFLG1 EQU $23
PACTL EQU $26
TCNT EQU $0E
TI4O5 EQU $1E ; HC11 A-series devices contain the TOC5
; register at address $101E
* BIT CONTANTS
DELAY EQU $7530 ; 10 ms:
; $7530 = 30,000 counts @ 3 MHz
; $4E20 = 20,000 counts @ 2 MHz
; $2710 = 10,000 counts @ 1 MHz
DDRA3 EQU $08 ; DDRA3 bit in PACTL register
; configures the PORTA pin 3
I4O5 EQU $04 ; I4/O5 bit in PACTL register
; configures TI4/O5 register to
; either OC5 or IC4
I4O5F EQU $08 ; I4/O5f bit is set when either an OC5 or
; IC4 has occurred depending on the state
; of the I4/O5 bit in the PACTL register
EB193
14 MOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
Special Section: Using the HC11 A-Series PA3 Pin Functionality on the HC11 E-Series
EB193
MOTOROLA 15
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
R E Q U I R E D
A G R E E M E N T
Freescale Semiconductor, Inc...
N O N - D I S C L O S U R E
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its
products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability,
including without limitation consequential or incidental damages. "Typical" parameters which may be provided in Motorola data sheets and/or specifications can and do vary in different
applications and actual performance may vary over time. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts.
Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems
intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a
situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold
Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the
design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
EB193/D
For More Information On This Product,
Go to: www.freescale.com