MC68HC11F1VFN3 Freescale Semiconductor, MC68HC11F1VFN3 Datasheet

MC68HC11F1VFN3

Manufacturer Part Number
MC68HC11F1VFN3
Description
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of MC68HC11F1VFN3

Cpu Family
HC11
Device Core Size
8b
Frequency (max)
3MHz
Interface Type
SCI/SPI
Program Memory Type
EEPROM
Program Memory Size
512Byte
Total Internal Ram Size
1KB
Number Of Timers - General Purpose
1
On-chip Adc
8-chx8-bit
Instruction Set Architecture
CISC
Operating Temp Range
-40C to 105C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
68
Package Type
PLCC
Lead Free Status / Rohs Status
Not Compliant
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 MC68HC11F1VFN3

MC68HC11F1VFN3 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 in static RAM (one Kbyte), internal chip-select functions, and a non-multiplexed bus which reduces the need for external interface logic ...

Page 2

... MHz – MHz 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) 80-Pin Thin Quad Flat Pack ...

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 3 Control Registers 3.1 MC68HC11F1 Control Registers ............................................................................................... 14 3.2 MC68HC11FC0 Control Registers ............................................................................................16 ...

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 Circuitry.....................................$103A ..........................27 CSCTL ................ Chip-Select Control........................................................$105D ..........................39 CSGADR............. General-Purpose Chip-Select Address Register ........... $105E .........................40 CSGSIZ ...

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 On This Product, 6 MODA/ XTAL EXTAL IRQ XIRQ RESET ...

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 MC68HC11F1/FC0 For More Information On This Product, MC68HC11FTS/D MODA / ...

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 PG4/CSIO2 24 PG3 25 PG2 26 PG1 Figure 3 MC68HC11F1 68-Pin PLCC Pin Assignments For More Information On This Product, ...

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 Figure 4 Pin Assignments for the MC68HC11F1 80-Pin QFP MC68HC11F1/FC0 For More Information On This Product, MC68HC11FTS/D MC68HC11F1 Go to: www.freescale.com PG1 58 PG2 57 PG3 ...

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 Figure 5 MC68HC11FC0 64-Pin QFP Pin Assignments For More Information On This Product, 10 MC68HC11FC0 Go to: www.freescale.com 48 PG2 PG3 47 46 ...

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 PE4 Figure 6 MC68HC11FC0 80-Pin TQFP Pin Assignments MC68HC11F1/FC0 For More Information On This Product, MC68HC11FTS/D MC68HC11FC0 Go to: www.freescale.com PG1 58 PG2 57 PG3 56 PG4/CSIO0 55 PG5/CSIO1 54 PG6/CSGEN ...

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 open-drain output to indicate that an internal failure has been detected in either the clock monitor or the COP watchdog circuits ...

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, depending on the package. General-purpose I/O port signals are discussed briefly in the following pragraphs. ...

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 the default locations out of reset. ...

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 $1028 SPIE SPE DWOM $1029 SPIF WCOL 0 $102A ...

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 PF7 PF6 PF5 $1006 PC7 ...

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 SCP2 SCP1 $102C $102D TIE TCIE RIE $102E TDRE TC RDRF $102F Bit $1030 ...

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 bus is non-multiplexed. Both devices include 1 Kbyte of static RAM, a 96-byte control reg- ister block, and 256 bytes of bootstrap ROM ...

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 MODA = 1 MODB = 1 MODB = 1 NOTES: 1. RAM can be remapped to any 4-Kbyte boundary ($x000). “ ...

Page 20

... Freescale Semiconductor, Inc. $0000 — — $03FF — — EXTERNAL $1000 — — $105F — — EXTERNAL $BF00 — — $BFFF — — $FE00 — $FFC0 — — $FFFF — — SINGLE EXPANDED CHIP MODA = 0 MODA = 1 MODB = 1 MODB = 1 NOTES: 1. RAM can be remapped to any 1-Kbyte boundary, depending on the value contained in the RAM field in the INIT register ...

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 loader ROM disabled and not in memory map 1 = Boot loader ROM enabled and in memory map at $BF00–$BFFF SMOD and MDA — ...

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 any time in special modes. The register diagram above applies to the MC68HC11F1 only. A diagram and bit descriptions of the INIT register in the MC68HC11FC0 are provided elsewhere in this section ...

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 is disabled 1 = Buffered oscillator is driven on the 4XOUT clock output LIRDV — ...

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.) NOCOP — COP System Disable 0 = COP enabled (forces reset on time-out COP disabled (does not force reset on time-out) TEST1 — ...

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 interrupt sources serviced by 18 interrupt vectors. (The SCI interrupt vector services five SCI interrupt sources.) Three of the interrupt vectors are non-maskable: • ...

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 Register Full FFD8, D9 SPI Serial Transfer Complete ...

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 2 MHz -0/+16.384 ms 3 MHz -0/+10.923 ms 4 MHz -0/+8.192 ms 5 MHz -0/+6 ...

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 30. NOCOP — COP System Disable ...

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 the memory map. In single-chip and bootstrap modes the EEPROM is positioned at $FE00– ...

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 The value of these bits determines the manner in which EEPROM is erased. Bit encodings are shown in 6 ...

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 out of reset. In expanded mode, the EEPROM obeys the state of this bit. ...

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 address of a location in the desired row. ROWE ...

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, either pins are available, depending on the package. I/O functions on some ports ( and G) are affected by the mode of operation selected. In the sin- gle-chip and bootstrap modes, they are configured as parallel I/O data ports ...

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 modes. When any of these pins are not being used for chip selects, they can be used for general-pur- pose I/O ...

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 output pin, even though the value of the DDG7 bit remains zero. ...

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 input and 1 = output. When the SPI system is in slave mode, DDD5 has no meaning or effect. When the SPI system is in master mode, DDD5 determines whether bit 5 of PORTD is an er- ror detect input (DDD5 = general-purpose output (DDD5 = 1) ...

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 Enable Refer to 4.3 System Initialization Registers, page 23 LIRDV — Load Instruction Register Driven Refer to 4.3 System Initialization Registers, page 23 Bits — ...

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 are four programmable chip selects on the MC68HC11F1 and MC68HC11FC0: two for external I/O (CSIO1 and CSIO2), one for external program space (CSPROG), and one general-purpose chip se- lect (CSGEN) ...

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 — I/O Chip-Select 1 Enable 0 = CSIO1 disabled 1 = CSIO1 enabled IO1PL — I/O Chip-Select 1 Polarity ...

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 Select Size Control PSIZA CSGADR — General-Purpose Chip-Select Address Register ...

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 0 = CSGEN is valid during E-clock valid time (E-clock high CSGEN is valid during address valid time GSIZ[A:C] — ...

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 (NRZ) format (one start bit, eight or nine data bits, and one stop bit) and several selectable baud rates ...

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 This Product, MC68HC11FTS SHIFT REGISTER DATA ...

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. RCKB — SCI Baud-Rate Clock Check (TEST) SCP[2:0] — ...

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 rate clock is the result of dividing the RT clock by 16. ...

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 data character. T8 — Transmit Data Bit set, T8 stores the ninth bit of the transmit data character. Bit 5 — Not implemented. Reads always return zero and writes have no effect. ...

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 SBK = 1 SCSR — SCI Status Register Bit 7 6 TDRE TC RDRF RESET TDRE — Transmit Data Register Empty Flag This flag is set when SCDR is empty ...

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 last byte received in the receive data buffer. Writing to SCDR loads the transmit data buffer with the next byte to be transmitted ...

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 system. The MC68HC11F1 and MC68HC11FC0 can be set up for master or slave operation ...

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 requested each time the SPIF or MODF status flag is set. SPI interrupts are inhibited if this bit is cleared or if the I bit in the condition code register is one ...

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 to Table 23. Input SPR[1: Frequency 1 MHz 500 kbps ...

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 and writes have no effect. SPRBYP — SPI Baud Rate Counter Bypass ...

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 bit (LSB). Because the ca- pacitive charge redistribution technique used includes a built-in sample-and-hold, no external sample- and-hold is required ...

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 input gate is on. Be- cause no P-channel devices are directly connected to either input pins or reference voltage pins, volt- ...

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 result registers contain valid conversion re- sults. Each time the ADCTL register is overwritten, this bit is automatically cleared to zero and a con- version sequence is started ...

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 ef- fect. Data in the A/D converter result registers is valid when the CCF flag in the ADCTL register is set, indicating a conversion sequence is complete ...

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 either IC or OC, and the pulse accumulator (PA). All of these functions share port A. The main timer also drives the pulse accumulator, real-time interrupt (RTI), and computer operating properly (COP) watchdog circuits ...

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 COMPARATOR = TOC4 (HI) TOC4 (LO) 16-BIT COMPARATOR = OC5 TI4O5 (HI) TI4O5 (LO) 16-BIT LATCH CLK I4/O5 16-BIT LATCH CLK TIC1 (HI) ...

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 flag bit is not set Bits [2:0] — Not implemented. Reads always return zero and writes have no effect. ...

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 — Timer Output Compare $x016 Bit 15 ...

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 polarity of the input signal on the corresponding ICx that will trigger an input capture, as shown in Table 30. IC4 functions only if the I4/O5 bit in the PACTL register is set ...

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 of PACTL. ICxF — Input Capture x Flag Set each time a selected active edge is detected on the ICx input line. ...

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 and writes have no effect. PACTL — Pulse Accumulator Control ...

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 detected on the pulse accumulator input pin, PA7. The maximum clocking rate for this mode is the E- clock divided by two ...

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 Enable 0 = Pulse accumulator interrupt disabled 1 = Interrupt requested when PAIF in TFLG2 is set Bits [3:2] — ...

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 63. PACNT — Pulse Accumulator Count Bit 7 6 Bit 7 6 RESET Unaffected by reset This eight-bit read/write register contains the count of external input events at the PAI input, or the ac- cumulated count ...

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 product could create a situation where personal injury or death may occur. Should Buyer ...

Related keywords