MC68HC11F1MFN2 FREESCALE [Freescale Semiconductor, Inc], MC68HC11F1MFN2 Datasheet

no-image

MC68HC11F1MFN2

Manufacturer Part Number
MC68HC11F1MFN2
Description
Technical Summary 8-Bit Microcontroller
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Freescale Semiconductor
© MOTOROLA INC., 1997
Technical Summary
8-Bit Microcontroller
1 Introduction
1.1 Features
This document contains information on a new product. Specifications and information herein are subject to change without notice.
The MC68HC11F1 is a high-performance member of the M68HC11 family of microcontroller units
(MCUs). High-speed expanded systems required the development of this chip with its extra input/output
(I/O) ports, an increase in static RAM (one Kbyte), internal chip-select functions, and a non-multiplexed
bus which reduces the need for external interface logic. The timer, serial I/O, and analog-to-digital (A/
D) converter enable functions similar to those found in the MC68HC11E9.
The MC68HC11FC0 is a low cost, high-speed derivative of the MC68HC11F1. It does not have
EEPROM or an analog-to-digital converter. The MC68HC11FC0 can operate at bus speeds as high as
six MHz.
This document provides a brief overview of the structure, features, control registers, packaging infor-
mation and availability of the MC68HC11F1 and MC68HC11FC0. For detailed information on
M68HC11 subsystems, programming and the instruction set, refer to the M68HC11 Reference Manual
(M68HC11RM/AD).
• MC68HC11 CPU
• 512 Bytes of On-Chip Electrically Erasable Programmable ROM (EEPROM) with Block Protect
• 1024 Bytes of On-Chip RAM (All Saved During Standby)
• Enhanced 16-Bit Timer System
• On-Board Chip-Selects with Clock Stretching
• Real-Time Interrupt Circuit
• 8-Bit Pulse Accumulator
• Synchronous Serial Peripheral Interface (SPI)
• Asynchronous Nonreturn to Zero (NRZ) Serial Communication Interface (SCI)
• Power saving STOP and WAIT Modes
• Eight-Channel 8-Bit A/D Converter (MC68HC11F1 only)
• Computer Operating Properly (COP) Watchdog System and Clock Monitor
• Bus Speeds of up to 6 MHz for the MC68HC11FC0 and up to 5 MHz for the MC68HC11F1
• 68-Pin PLCC (MC68HC11F1 only), 64-Pin QFP (MC68HC11FC0 only), and 80-pin TQFP pack-
(MC68HC11F1 only)
age options
— 3 Input Capture (IC) Functions
— 4 Output Compare (OC) Functions
— 4th IC or 5th OC (Software Selectable)
ATA
MC68HC11FC0
MC68HC11F1
Order this document
by MC68HC11FTS/D

Related parts for MC68HC11F1MFN2

MC68HC11F1MFN2 Summary of contents

Page 1

Freescale Semiconductor ATA Technical Summary 8-Bit Microcontroller 1 Introduction The MC68HC11F1 is a high-performance member of the M68HC11 family of microcontroller units (MCUs). High-speed expanded systems required the development of this chip with its extra input/output (I/O) ports, an increase ...

Page 2

... C 3 MHz – MHz Go to: www.freescale.com MC Order Number MC68HC11F1PU5 MC68HC11F1CPU2 MC68HC11F1CPU3 MC68HC11F1CPU4 MC68HC11F1CPU5 MC68HC11F1VPU2 MC68HC11F1VPU3 MC68HC11F1VPU4 MC68HC11F1MPU2 MC68HC11F1MPU3 MC68HC11F1MPU4 MC68HC11F1FN5 MC68HC11F1CFN2 MC68HC11F1CFN3 MC68HC11F1CFN4 MC68HC11F1CFN5 MC68HC11F1VFN2 MC68HC11F1VFN3 MC68HC11F1VFN4 MC68HC11F1MFN2 MC68HC11F1MFN3 MC68HC11F1MFN4 MC Order Number MC68L11F1FN3 MC68L11F1CFN3 MC68L11F1PU3 MC68L11F1CPU3 MC68HC11F1/FC0 MC68HC11FTS/D ...

Page 3

Freescale Semiconductor, Inc. Table 3 MC68HC11FC0 Standard Device Ordering Information Package 64-Pin Quad Flat Pack (QFP) 80-Pin Thin Quad Flat Pack (TQFP) Table 4 MC68HC11FC0 Extended Voltage (3.0 to 5.5 V) Device Ordering Information Package 64-Pin Quad Flat Pack (QFP) ...

Page 4

Freescale Semiconductor, Inc. Section 1 Introduction 1.1 Features ......................................................................................................................................1 1.2 Ordering Information ................................................................................................................... 2 1.3 Block Diagrams .......................................................................................................................... 6 2 Pin Assignments and Signal Descriptions 2.1 MC68HC11F1 Pin Assignments .................................................................................................. 8 2.2 MC68HC11FC0 Pin Assignments .............................................................................................10 2.3 Pin Descriptions ........................................................................................................................12 ...

Page 5

Freescale Semiconductor, Inc. Register ADCTL ................ A/D Control/Status .........................................................$1030 ..........................55 BAUD .................. Baud Rate......................................................................$102B ..........................44 BPROT................ Block Protect..................................................................$1035 ..........................29 CFORC ............... Timer Force Compare....................................................$100B ..........................59 CONFIG .............. EEPROM Mapping, COP, EEPROM Enables ...............$103F ............. 24 COPRST ............. Arm/Reset COP Timer ...

Page 6

Freescale Semiconductor, Inc. 1.3 Block Diagrams POWER PAI/0C1 PA7 OC2/OC1 PA6 OC3/OC1 PA5 OC4/OC1 PA4 IC4/OC5/OC1 PA3 IC3 PA2 IC2 PA1 IC1 PA0 ADDRESS BUS PORT B Figure 1 MC68HC11F1 Block Diagram For More Information ...

Page 7

Freescale Semiconductor, Inc POWER PAI/0C1 PA7 OC2/OC1 PA6 OC3/OC1 PA5 OC4/OC1 PA4 IC4/OC5/OC1 PA3 IC3 PA2 IC2 PA1 IC1 PA0 PE6 PE5 PE4 PE3 PE2 PE1 ADDRESS BUS PORT B Figure 2 MC68HC11FC0 Block Diagram ...

Page 8

Freescale Semiconductor, Inc. 2 Pin Assignments and Signal Descriptions 2.1 MC68HC11F1 Pin Assignments 10 PC1/DATA1 11 PC2/DATA2 12 PC3/DATA3 13 PC4/DATA4 14 PC5/DATA5 15 PC6/DATA6 PC7/DATA7 16 17 RESET 18 XIRQ 19 IRQ 20 PG7/CSPROG 21 PG6/CSGEN 22 PG5/CSIO1 23 ...

Page 9

Freescale Semiconductor, Inc PB6/ADDR14 3 PB5/ADDR13 4 PB4/ADDR12 5 PB3/ADDR11 6 PB2/ADDR10 7 PB1/ADDR9 8 PB0/ADDR8 9 PF7/ADDR7 10 PF6/ADDR6 11 PF5/ADDR5 12 PF4/ADDR4 13 PF3/ADDR3 14 PF2/ADDR2 15 PF1/ADDR1 16 PF0/ADDR0 17 PE0/AN0 18 PE4/AN4 ...

Page 10

Freescale Semiconductor, Inc. 2.2 MC68HC11FC0 Pin Assignments PB6/ADDR14 1 2 PB5/ADDR13 PB4/ADDR12 3 PB3/ADDR11 4 PB2/ADDR10 5 PB1/ADDR9 6 PB0/ADDR8 7 PF7/ADDR7 8 9 PF6/ADDR6 PF5/ADDR5 10 PF4/ADDR4 11 PF3/ADDR3 12 PF2/ADDR2 13 PF1/ADDR1 14 PF0/ADDR0 ...

Page 11

Freescale Semiconductor, Inc PB6/ADDR14 3 PB5/ADDR13 4 PB4/ADDR12 5 PB3/ADDR11 6 PB2/ADDR10 7 PB1/ADDR9 8 PB0/ADDR8 9 PF7/ADDR7 10 PF6/ADDR6 11 PF5/ADDR5 12 PF4/ADDR4 13 PF3/ADDR3 14 PF2/ADDR2 15 PF1/ADDR1 16 PF0/ADDR0 ...

Page 12

Freescale Semiconductor, Inc. 2.3 Pin Descriptions V and the positive power input to the MCU, and V DD RESET This active-low input initializes the MCU to a known startup state. It also acts as an ...

Page 13

Freescale Semiconductor, Inc. Port Signals On the MC68HC11F1, 54 pins are arranged into six 8-bit ports (ports and G) and one 6-bit port (port D). On the MC68HC11FC0, either pins are available, ...

Page 14

Freescale Semiconductor, Inc. 3 Control Registers The MC68HC11F1 and MC68HC11FC0 control registers determine most of the system’s operating characteristics. They occupy a 96-byte relocatable memory block. Their names and bit mnemonics are summarized in the following table. Addresses shown are ...

Page 15

Freescale Semiconductor, Inc. Table 5 MC68HC11F1 Register and Control Bit Assignments (Continued) Bit $1022 OC1I OC2I OC3I $1023 OC1F OC2F OC3F $1024 TOI RTII PAOVI $1025 TOF RTIF PAOVF $1026 0 PAEN PAMOD $1027 Bit 7 6 ...

Page 16

Freescale Semiconductor, Inc. 3.2 MC68HC11FC0 Control Registers Table 6 MC68HC11FC0 Register and Control Bit Assignments Bit $1000 PA7 PA6 PA5 $1001 DDA7 DDA6 DDA5 $1002 PG7 PG6 PG5 $1003 DDG7 DDG6 DDG5 $1004 PB7 PB6 PB5 $1005 ...

Page 17

Freescale Semiconductor, Inc. Table 6 MC68HC11FC0 Register and Control Bit Assignments (Continued) Bit $1026 0 PAEN PAMOD $1027 Bit $1028 SPIE SPE DWOM $1029 SPIF WCOL 0 $102A Bit $102B TCLR ...

Page 18

Freescale Semiconductor, Inc. 4 Operating Modes and System Initialization The 16-bit address bus can access 64 Kbytes of memory. Because the MC68HC11F1 and MC68HC11FC0 are intended to operate principally in expanded mode, there is no internal ROM and the address ...

Page 19

Freescale Semiconductor, Inc. 4.2 Memory Maps $0000 — — $03FF — — EXTERNAL — $1000 — $105F — — EXTERNAL $BF00 — — $BFFF — — $FE00 — $FFC0 — — $FFFF — — SINGLE EXPANDED CHIP MODA = 0 ...

Page 20

Freescale Semiconductor, Inc. $0000 — — $03FF — — EXTERNAL $1000 — — $105F — — EXTERNAL $BF00 — — $BFFF — — $FE00 — $FFC0 — — $FFFF — — SINGLE EXPANDED CHIP MODA = 0 MODA = 1 ...

Page 21

Freescale Semiconductor, Inc. RBOOT — Read Bootstrap ROM RBOOT is valid only when SMOD is set to one (special bootstrap or special test mode). RBOOT can only be written in special modes but can be read anytime Boot ...

Page 22

Freescale Semiconductor, Inc. INIT — RAM and I/O Mapping (MC68HC11F1 only) Bit 7 6 RAM3 RAM2 RAM1 RESET The INIT register can be written only once in first 64 cycles out of reset in normal modes ...

Page 23

Freescale Semiconductor, Inc. CWOM — Port C Wired-OR Mode Option Refer to 7.8 Parallel I/O Registers, page 37. CLK4X — 4XCLK Output Enable This bit can only be written once after reset in all modes 4XOUT clock output ...

Page 24

Freescale Semiconductor, Inc. CONFIG — EEPROM Mapping, COP, EEPROM Enables Bit 7 6 EE3 EE2 RESET Unaffected by reset Bits 7:3 — See 6.2 EEPROM Registers, page 30. (These bits are implemented on the MC68HC11F1 only.) ...

Page 25

Freescale Semiconductor, Inc. 5 Resets and Interrupts There are three sources of reset on the MC68HC11F1 and MC68HC11FC0, each having its own reset vector: • RESET pin • Clock monitor failure • Computer operating properly (COP) failure There are 22 ...

Page 26

Freescale Semiconductor, Inc. Table 11 Interrupt and Reset Vector Assignments Vector Address FFC0 FFD4, D5 FFD6, D7 SCI Serial System SCI Transmit Complete SCI Transmit Data Register Empty SCI Idle Line Detect SCI Receiver Overrun SCI Receive Data ...

Page 27

Freescale Semiconductor, Inc. CR[1:0] — COP Timer Rate Select The COP system is driven by a constant frequency of E/2 tor to arrive at the COP time-out rate. Table 12 COP Watchdog Time-Out Periods Frequency Tolerance 1 MHz -0/+32.768 ms ...

Page 28

Freescale Semiconductor, Inc. Table 13 Highest Priority Interrupt Selection (Continued) PSEL[3:0] 1011 1100 1101 1110 1111 CONFIG — EEPROM Mapping, COP, EEPROM Enables Bit 7 6 EE3 EE2 RESET U U Bits 7:3, 1:0 — See 6.2 EEPROM Registers, page ...

Page 29

Freescale Semiconductor, Inc. 6 Electrically Erasable Programmable ROM The MC68HC11F1 has 512 bytes of electrically erasable programmable ROM (EEPROM). A nonvola- tile, EEPROM-based configuration register (CONFIG) controls whether the EEPROM is present or ab- sent and determines its position in ...

Page 30

Freescale Semiconductor, Inc. PPROG — EEPROM Programming Control Bit 7 6 ODD EVEN RESET 0 0 ODD — Program Odd Rows (TEST) EVEN — Program Even Rows (TEST) ROW and BYTE — Row Erase Select Bit and Byte Erase Select ...

Page 31

Freescale Semiconductor, Inc. Bit 1 — Not implemented. Reads always return one and writes have no effect. EEON — EEPROM Enable This bit is forced to one in single-chip and bootstrap modes. In test mode, EEON is forced to zero ...

Page 32

Freescale Semiconductor, Inc. STAB $FE00 LDAB #$07 STAB $103B JSR DLY10 CLR $103B 6.3.3 Row Erase The following example shows how to perform a fast erase of large sections of EEPROM. This example assumes that index register X contains the ...

Page 33

Freescale Semiconductor, Inc. 7 Parallel Input/Output On the MC68HC11F1, either pins are available for general-purpose I/O, depending on the package. These pins are arranged into ports and G. On the MC68HC11FC0, ...

Page 34

Freescale Semiconductor, Inc. 7.7 Port G Port eight-bit general-purpose I/O port with a data register (PORTG) and a data direction register (DDRG). When enabled, the upper four lines (PG[7:4] can be used as chip-select outputs in expanded ...

Page 35

Freescale Semiconductor, Inc. DDRG — Port G Data Direction Register Bit 7 6 DDG7* DDG6 DDG5 RESET Following reset in expanded and test modes, PG7/CSPRG is configured as a program chip select, forcing the pin to be ...

Page 36

Freescale Semiconductor, Inc. PORTD — Port D Data Register Bit RESET Alternate — — Function: DDRD — Port D Data Direction Register Bit DDD5 RESET For DDRx bits, ...

Page 37

Freescale Semiconductor, Inc. CWOM — Port C Wired-OR Mode Option This bit affects all port C pins together Port C outputs are normal CMOS outputs 1 = Port C outputs act as open-drain outputs CLK4X — 4XCLK Output ...

Page 38

Freescale Semiconductor, Inc. 8 Chip-Selects Chip selects eliminate the need for additional external components to interface with peripherals in ex- panded non-multiplexed modes. Chip-select registers control polarity, address block size, base ad- dress, and clock stretching. 8.1 Chip-Select Operation There ...

Page 39

Freescale Semiconductor, Inc. Table 16 Chip Select Clock Stretch Control CSCTL — Chip-Select Control Bit 7 6 IO1EN IO1PL IO2EN RESET PCSEN is set out of reset in expanded modes and cleared in single-chip modes. IO1EN — ...

Page 40

Freescale Semiconductor, Inc. PCSEN — Program Chip-Select Enable Reset clears PCSEN in single-chip modes and sets PCSEN in expanded modes CSPROG disabled 1 = CSPROG enabled PSIZA, PSIZB — Select Size of Program Chip-Select Table 18 Program Chip ...

Page 41

Freescale Semiconductor, Inc. Bit 5 — Not implemented. Reads always return zero and writes have no effect. GNPOL — General-Purpose Chip-Select Polarity 0 = CSGEN is active low 1 = CSGEN is active high GAVLD — General-Purpose Chip-Select Address Valid ...

Page 42

Freescale Semiconductor, Inc. 9 Serial Communications Interface (SCI) The SCI, a universal asynchronous receiver transmitter (UART) serial communications interface, is one of two independent serial I/O subsystems in the MC68HC11F1 and MC68HC11FC0. The SCI has a standard non-return to zero ...

Page 43

Freescale Semiconductor, Inc. RECEIVER BAUD RATE CLOCK DDD0 PD0 PIN BUFFER AND CONTROL RxD DISABLE DRIVER RE WAKEUP LOGIC SCCR1 SCI CONTROL 1 SCI Tx SCI INTERRUPT REQUESTS REQUEST Figure 10 SCI Receiver Block Diagram MC68HC11F1/FC0 For More Information On ...

Page 44

Freescale Semiconductor, Inc. 9.2 SCI Registers BAUD — Baud Rate Bit 7 6 TCLR SCP2 SCP1 RESET TCLR — Clear Baud Rate Counters (TEST) Bit 6 — Not implemented. Reads always return zero and writes have no effect. ...

Page 45

Freescale Semiconductor, Inc. Figure 11 illustrates the SCI baud rate timing chain. The prescaler select bits determine the highest baud rate. The rate select bits determine additional divide-by-two stages to arrive at the receiver timing (RT) clock rate. The baud ...

Page 46

Freescale Semiconductor, Inc. SCCR1 — SCI Control Register 1 Bit RESET Unaffected by reset R8 — Receive Data Bit set, R8 stores the ninth bit of the receive ...

Page 47

Freescale Semiconductor, Inc. RWU — Receiver Wake Up Control 0 = Normal SCI receiver 1 = Wake up enabled and receiver interrupt inhibited SBK — Send Break 0 = Break generator off 1 = Break codes generated as long as ...

Page 48

Freescale Semiconductor, Inc. Bit 0 — Not implemented. Reads always return zero and writes have no effect. SCDR — Serial Communications Data Register Bit 7 6 Bit 7 6 RESET Indeterminate value Reading SCDR retrieves the ...

Page 49

Freescale Semiconductor, Inc. 10 Serial Peripheral Interface The serial peripheral interface (SPI) allows the MCU to communicate synchronously with peripheral de- vices and other microprocessors. The SPI protocol facilitates rapid exchange of serial data between de- vices in a control ...

Page 50

Freescale Semiconductor, Inc. 10.2 SPI Registers SPCR — SPI Control Register Bit 7 6 SPIE SPE DWOM RESET Unaffected by reset SPIE — SPI Interrupt Enable When SPI interrupts are enabled, a hardware interrupt sequence is ...

Page 51

Freescale Semiconductor, Inc. SPR[1:0] — SPI Clock Rate Selects These two bits select the SPI clock (SCK) rate when the device is configured as a master. When the device is configured as a slave, the bits have no effect. Refer ...

Page 52

Freescale Semiconductor, Inc. OPT2 — System Configuration Option Register 2 Bit 7 6 GWOM CWOM CLK4X RESET 0 0 Bits [7:4] — See 4.3 System Initialization Registers, page 22. Bits — Not implemented. Reads always return zero ...

Page 53

Freescale Semiconductor, Inc. 11 Analog-to-Digital Converter The MC68HC11F1 analog-to-digital (A/D) converter system uses an all-capacitive charge-redistribution technique to convert analog signals to digital values. The A/D system is an 8-channel, 8-bit, multiplexed- input, successive-approximation converter, accurate to 1 least significant ...

Page 54

Freescale Semiconductor, Inc. 11.1 Input Pins Port E pins can also be used as digital inputs. Reads of port E pins are not recommended during the sample portion of an A/D conversion cycle, when the gate signal to the N-channel ...

Page 55

Freescale Semiconductor, Inc. 11.3 A/D Registers ADCTL — A/D Control/Status Bit 7 6 CCF 0 SCAN RESET Indeterminate value CCF — Conversions Complete Flag A read-only status indicator, this bit is set when all four A/D ...

Page 56

Freescale Semiconductor, Inc. ADR1 – ADR4 — A/D Results $x031 Bit 7 6 $x032 Bit 7 6 $x033 Bit 7 6 $x034 Bit 7 6 Each read-only result register holds an eight-bit conversion result. Writes to these registers have no ...

Page 57

Freescale Semiconductor, Inc. 12 Main Timer The main timer is based on a free-running 16-bit counter with a four-stage programmable prescaler. The timer drives the three input capture (IC) channels, four output compare (OC) channels, one channel pro- grammable for ...

Page 58

Freescale Semiconductor, Inc. PRESCALER E CLOCK Divide PR1 PR0 16-BIT TIMER BUS 16-BIT COMPARATOR = TOC1 (HI) TOC1 (LO) 16-BIT COMPARATOR = TOC2 (HI) TOC2 (LO) 16-BIT COMPARATOR = TOC3 (HI) TOC3 (LO) 16-BIT ...

Page 59

Freescale Semiconductor, Inc. 12.2 Timer Registers CFORC — Timer Force Compare Bit 7 6 FOC1 FOC2 FOC3 RESET FOCx — Force Output Compare x Action 0 = Not affected 1 = Output compare x action occurs, but OCxF ...

Page 60

Freescale Semiconductor, Inc. TIC1–TIC3 — Timer Input Capture $x010 Bit 15 14 $x011 Bit 7 6 $x012 Bit 15 14 $x013 Bit 7 6 $x014 Bit 15 14 $x015 Bit 7 6 TICx registers are not affected by reset. TOC1–TOC4 ...

Page 61

Freescale Semiconductor, Inc. OMx OLx TCTL2 — Timer Control 2 Bit 7 6 EDG4B EDG4A EDG1B RESET EDGxB, EDGxA — Input Capture Edge Control Each EDGxB, EDGxA pair determines the ...

Page 62

Freescale Semiconductor, Inc. OCxF — Output Compare x Flag Set each time the counter matches output compare x value. I4/O5F — Input Capture 4/Output Compare 5 Flag Set by IC4 or OC5, depending on which function was enabled by I4/O5 ...

Page 63

Freescale Semiconductor, Inc. RTIF — Real-Time Interrupt Flag Set periodically at a rate based on bits RTR[1:0] in the PACTL register. Bits [5:4] — See 13.2 Pulse Accumulator Registers, page 65. Bits [3:0] — Not implemented. Reads always return zero ...

Page 64

Freescale Semiconductor, Inc. 13 Pulse Accumulator The pulse accumulator can be used either to count events or measure the duration of a particular event. In event counting mode, the pulse accumulator’s 8-bit counter increments each time a specified edge is ...

Page 65

Freescale Semiconductor, Inc. Bits[7:6] — See 12.2 Timer Registers, page 62. PAOVI — Pulse Accumulator Overflow Interrupt Enable 0 = Pulse accumulator overflow interrupt disabled 1 = Interrupt requested when PAOVF in TFLG2 is set PAII — Pulse Accumulator Interrupt ...

Page 66

Freescale Semiconductor, Inc. Table 33 Pulse Accumulator Edge Control PAMOD PEDGE Bit 3 — Not implemented. Reads always return zero and writes have no effect. Bits [2:0] — See 12.2 Timer Registers, ...

Page 67

Freescale Semiconductor, Inc. MC68HC11F1/FC0 For More Information On This Product, MC68HC11FTS/D Go to: www.freescale.com 67 ...

Page 68

Freescale Semiconductor, Inc. Home Page: www.freescale.com email: support@freescale.com USA/Europe or Locations Not Listed: Freescale Semiconductor Technical Information Center, CH370 1300 N. Alma School Road Chandler, Arizona 85224 (800) 521-6274 480-768-2130 support@freescale.com Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GmbH ...

Related keywords