资料介绍
CHAPTER 1
GUIDE TO THIS MANUAL
1.1 MANUAL CONTENTS..... 1-1
1.2 NOTATIONAL CONVENTIONS AND TERMINOLOGY ..... 1-3
1.3 RELATED DOCUMENTS 1-5
1.3.1 Data Sheet ....1-6
1.3.2 Application Notes ..1-6
1.4 APPLICATION SUPPORT SERVICES... 1-7
1.4.1 World Wide Web ...1-7
1.4.2 CompuServe Forums ..1-7
1.4.3 FaxBack Service ...1-8
1.4.4 Bulletin Board System (BBS) .....1-8
CHAPTER 2
ARCHITECTURAL OVERVIEW
2.1 8XC251SA, SB, SP, SQ ARCHITECTURE .. 2-3
2.2 MCS 251 MICROCONTROLLER CORE 2-4
2.2.1 CPU 2-5
2.2.2 Clock and Reset Unit ..2-6
2.2.3 Interrupt Handler ...2-7
2.2.4 On-chip Code Memory 2-7
2.2.5 On-chip RAM 2-7
2.3 ON-CHIP PERIPHERALS 2-7
2.3.1 Timer/Counters and Watchdog Timer 2-7
2.3.2 Programmable Counter Array (PCA) .2-8
2.3.3 Serial I/O Port .2-8
CHAPTER 3
ADDRESS SPACES
3.1 ADDRESS SPACES FOR MCS® 251 MICROCONTROLLERS 3-1
3.1.1 Compatibility with the MCS® 51 Architecture ..3-2
3.2 8XC251SA, SB, SP, SQ MEMORY SPACE. 3-5
3.2.1 On-chip General-purpose Data RAM .3-8
3.2.2 On-chip Code Memory (83C251SA, SB, SP, SQ/87C251SA, SB, SP, SQ) .3-8
3.2.2.1 Accessing On-chip Code Memory in Region 00: .3-9
3.2.3 External Memory .3-10
3.3 8XC251SA, SB, SP, SQ REGISTER FILE . 3-10
3.3.1 Byte, Word, and Dword Registers ....3-13
3.3.2 Dedicated Registers ..3-13
3.3.2.1 Accumulator and B Register .3-13
3.3.2.2 Extended Data Pointer, DPX .3-15
3.3.2.3 Extended Stack Pointer, SPX .....3-15
3.4 SPECIAL FUNCTION REGISTERS (SFRS) 3-16
CHAPTER 4
DEVICE CONFIGURATION
4.1 CONFIGURATION OVERVIEW ..... 4-1
4.2 DEVICE CONFIGURATION ..... 4-1
4.3 THE CONFIGURATION BITS... 4-4
4.4 CONFIGURATION BYTE LOCATION SELECTOR (UCON) 4-5
4.5 CONFIGURING THE EXTERNAL MEMORY INTERFACE 4-8
4.5.1 Page Mode and Nonpage Mode (PAGE#) .4-8
4.5.2 Configuration Bits RD1:0 .....4-9
4.5.2.1 RD1:0 = 00 (18 External Address Bits) .4-9
4.5.2.2 RD1:0 = 01 (17 External Address Bits) .4-9
4.5.2.3 RD1:0 = 10 (16 External Address Bits) .....4-12
4.5.2.4 RD1:0 = 11 (Compatible with MCS 51 Microcontrollers) .4-12
4.5.3 Wait State Configuration Bits ...4-12
4.5.3.1 Configuration Bits WSA1:0#, WSB1:# 4-12
4.5.3.2 Configuration Bit WSB ..4-12
4.5.3.3 Configuration Bit XALE# .....4-13
4.6 OPCODE CONFIGURATIONS (SRC).. 4-13
4.6.1 Selecting Binary Mode or Source Mode .4-14
4.7 MAPPING ON-CHIP CODE MEMORY TO DATA MEMORY (EMAP#) .. 4-16
4.8 INTERRUPT MODE (INTR).... 4-16
CHAPTER 5
PROGRAMMING
5.1 SOURCE MODE OR BINARY MODE OPCODES . 5-1
5.2 PROGRAMMING FEATURES OF THE MCS® 251 ARCHITECTURE..... 5-1
5.2.1 Data Types ....5-2
5.2.1.1 Order of Byte Storage for Words and Double Words 5-2
5.2.2 Register Notation ..5-2
5.2.3 Address Notation ..5-2
5.2.4 Addressing Modes 5-4
5.3 DATA INSTRUCTIONS ... 5-4
5.3.1 Data Addressing Modes .5-4
5.3.1.1 Register Addressing 5-5
5.3.1.2 Immediate 5-5
5.3.1.3 Direct ..5-5
5.3.1.4 Indirect .....5-6
5.3.1.5 Displacement ...5-8
5.3.2 Arithmetic Instructions .5-8
5.3.3 Logical Instructions .....5-9
5.3.4 Data Transfer Instructions ..5-10
5.4 BIT INSTRUCTIONS ..... 5-11
5.4.1 Bit Addressing .....5-11
5.5 CONTROL INSTRUCTIONS .. 5-12
5.5.1 Addressing Modes for Control Instructions ....5-13
5.5.2 Conditional Jumps ....5-14
5.5.3 Unconditional Jumps .5-15
5.5.4 Calls and Returns .....5-15
5.6 PROGRAM STATUS WORDS ..... 5-16
CHAPTER 6
INTERRUPT SYSTEM
6.1 OVERVIEW . 6-1
6.2 8XC251SA, SB, SP, SQ INTERRUPT SOURCES. 6-3
6.2.1 External Interrupts .6-3
6.2.2 Timer Interrupts .....6-4
6.3 PROGRAMMABLE COUNTER ARRAY (PCA) INTERRUPT..... 6-5
6.4 SERIAL PORT INTERRUPT..... 6-5
6.5 INTERRUPT ENABLE ..... 6-5
6.6 INTERRUPT PRIORITIES 6-7
6.7 INTERRUPT PROCESSING .... 6-9
6.7.1 Minimum Fixed Interrupt Time .6-10
6.7.2 Variable Interrupt Parameters ..6-10
6.7.2.1 Response Time Variables ...6-10
6.7.2.2 Computation of Worst-case Latency With Variables .6-12
6.7.2.3 Latency Calculations .....6-13
6.7.2.4 Blocking Conditions .6-14
6.7.2.5 Interrupt Vector Cycle ...6-14
6.7.3 ISRs in Process ..6-15
CHAPTER 7
INPUT/OUTPUT PORTS
7.1 INPUT/OUTPUT PORT OVERVIEW 7-1
7.2 I/O CONFIGURATIONS... 7-2
7.3 PORT 1 AND PORT 3 ..... 7-2
7.4 PORT 0 AND PORT 2 ..... 7-2
7.5 READ-MODIFY-WRITE INSTRUCTIONS.... 7-5
7.6 QUASI-BIDIRECTIONAL PORT OPERATION..... 7-6
7.7 PORT LOADING 7-7
7.8 EXTERNAL MEMORY ACCESS.... 7-7
CHAPTER 8
TIMER/COUNTERS AND WATCHDOG TIMER
8.1 TIMER/COUNTER OVERVIEW 8-1
8.2 TIMER/COUNTER OPERATION.... 8-1
8.3 TIMER 0. 8-3
8.3.1 Mode 0 (13-bit Timer) .8-4
8.3.2 Mode 1 (16-bit Timer) .8-4
8.3.3 Mode 2 (8-bit Timer With Auto-reload) .....8-5
8.3.4 Mode 3 (Two 8-bit Timers) ...8-5
8.4 TIMER 1. 8-5
8.4.1 Mode 0 (13-bit Timer) .8-9
8.4.2 Mode 1 (16-bit Timer) .8-9
8.4.3 Mode 2 (8-bit Timer with Auto-reload) 8-9
8.4.4 Mode 3 (Halt) 8-9
8.5 TIMER 0/1 APPLICATIONS 8-9
8.5.1 Auto-load Setup Example ....8-9
8.5.2 Pulse Width Measurements .....8-10
8.6 TIMER 2..... 8-10
8.6.1 Capture Mode .....8-11
8.6.2 Auto-reload Mode .....8-12
8.6.2.1 Up Counter Operation ...8-12
8.6.2.2 Up/Down Counter Operation .8-13
8.6.3 Baud Rate Generator Mode .....8-14
8.6.4 Clock-out Mode ...8-14
8.7 WATCHDOG TIMER ..... 8-16
8.7.1 Description ..8-16
8.7.2 Using the WDT ....8-18
8.7.3 WDT During Idle Mode 8-18
8.7.4 WDT During PowerDown ...8-18
CHAPTER 9
PROGRAMMABLE COUNTER ARRAY
9.1 PCA DESCRIPTION.. 9-1
9.1.1 Alternate Port Usage ...9-2
9.2 PCA TIMER/COUNTER... 9-2
9.3 PCA COMPARE/CAPTURE MODULES 9-5
9.3.1 16-bit Capture Mode ...9-5
9.3.2 Compare Modes ...9-7
9.3.3 16-bit Software Timer Mode .9-7
9.3.4 High-speed Output Mode .....9-8
9.3.5 PCA Watchdog Timer Mode 9-9
9.3.6 Pulse Width Modulation Mode .9-11
CHAPTER 10
SERIAL I/O PORT
10.1 OVERVIEW ..... 10-1
10.2 MODES OF OPERATION. 10-4
10.2.1 Synchronous Mode (Mode 0) ...10-4
10.2.1.1 Transmission (Mode 0) .10-4
10.2.1.2 Reception (Mode 0) .10-5
10.2.2 Asynchronous Modes (Modes 1, 2, and 3) ....10-6
10.2.2.1 Transmission (Modes 1, 2, 3) 10-6
10.2.2.2 Reception (Modes 1, 2, 3) ...10-6
10.3 FRAMING BIT ERROR DETECTION (MODES 1, 2, AND 3)... 10-7
10.4 MULTIPROCESSOR COMMUNICATION (MODES 2 AND 3). 10-7
10.5 AUTOMATIC ADDRESS RECOGNITION.. 10-7
10.5.1 Given Address ....10-8
10.5.2 Broadcast Address ....10-9
10.5.3 Reset Addresses .....10-10
10.6 BAUD RATES 10-10
10.6.1 Baud Rate for Mode 0 10-10
10.6.2 Baud Rates for Mode 2 ....10-10
10.6.3 Baud Rates for Modes 1 and 3 10-10
10.6.3.1 Timer 1 Generated Baud Rates (Modes 1 and 3) .10-11
10.6.3.2 Selecting Timer 1 as the Baud Rate Generator ....10-11
10.6.3.3 Timer 2 Generated Baud Rates (Modes 1 and 3) .10-12
10.6.3.4 Selecting Timer 2 as the Baud Rate Generator ....10-12
CHAPTER 11
MINIMUM HARDWARE SETUP
11.1 MINIMUM HARDWARE SETUP... 11-1
11.2 ELECTRICAL ENVIRONMENT.... 11-2
11.2.1 Power and Ground Pins .....11-2
11.2.2 Unused Pins 11-2
11.2.3 Noise Considerations 11-2
11.3 CLOCK SOURCES.. 11-3
11.3.1 On-chip Oscillator (Crystal) 11-3
11.3.2 On-chip Oscillator (Ceramic Resonator) 11-4
11.3.3 External Clock .....11-4
11.4 RESET. 11-5
11.4.1 Externally Initiated Resets .11-6
11.4.2 WDT Initiated Resets 11-6
11.4.3 Reset Operation ..11-6
11.4.4 Power-on Reset ..11-7
CHAPTER 12
SPECIAL OPERATING MODES
12.1 GENERAL.. 12-1
12.2 POWER CONTROL REGISTER .. 12-1
12.2.1 Serial I/O Control Bits 12-1
12.2.2 Power Off Flag ....12-1
12.3 IDLE MODE..... 12-4
12.3.1 Entering Idle Mode ....12-4
12.3.2 Exiting Idle Mode 12-5
12.4 POWERDOWN MODE.. 12-5
12.4.1 Entering Powerdown Mode 12-6
12.4.2 Exiting Powerdown Mode ..12-6
12.5 ON-CIRCUIT EMULATION (ONCE) MODE. 12-7
12.5.1 Entering ONCE Mode 12-7
12.5.2 Exiting ONCE Mode ..12-7
CHAPTER 13
EXTERNAL MEMORY INTERFACE
13.1 OVERVIEW ..... 13-1
13.2 EXTERNAL BUS CYCLES ..... 13-3
13.2.1 Bus Cycle Definitions 13-3
13.2.2 Nonpage Mode Bus Cycles .....13-4
13.2.3 Page Mode Bus Cycles 13-5
13.3 WAIT STATES. 13-8
13.4 EXTERNAL BUS CYCLES WITH CONFIGURABLE WAIT STATES 13-8
13.4.1 Extending RD#/WR#/PSEN# ...13-8
13.4.2 Extending ALE ..13-10
13.5 EXTERNAL BUS CYCLES WITH REAL-TIME WAIT STATES.... 13-10
13.5.1 Real-time WAIT# Enable (RTWE) ..13-12
13.5.2 Real-time WAIT CLOCK Enable (RTWCE) ..13-12
13.5.3 Real-time Wait State Bus Cycle Diagrams ...13-12
13.6 CONFIGURATION BYTE BUS CYCLES.. 13-15
13.7 PORT 0 AND PORT 2 STATUS . 13-16
13.7.1 Port 0 and Port 2 Pin Status in Nonpage Mode ...13-16
13.7.2 Port 0 and Port 2 Pin Status in Page Mode .13-17
13.8 EXTERNAL MEMORY DESIGN EXAMPLES... 13-18
13.8.1 Example 1: RD1:0 = 00, 18-bit Bus, External Flash and RAM .13-18
13.8.2 Example 2: RD1:0 = 01, 17-bit Bus, External Flash and RAM .13-20
13.8.3 Example 3: RD1:0 = 01, 17-bit Bus, External RAM ...13-22
13.8.4 Example 4: RD1:0 = 10, 16-bit Bus, External RAM ...13-24
13.8.5 Example 5: RD1:0 = 11, 16-bit Bus, External EPROM and RAM .....13-26
13.8.5.1 An Application Requiring Fast Access to the Stack 13-26
13.8.5.2 An Application Requiring Fast Access to Data 13-26
13.8.6 Example 6: RD1:0 = 11, 16-bit Bus, External EPROM and RAM .....13-29
13.8.7 Example 7: RD1:0 = 01, 17-bit Bus, External Flash ...13-30
CHAPTER 14
PROGRAMMING AND VERIFYING
NONVOLATILE MEMORY
14.1 GENERAL.. 14-1
14.1.1 Programming Considerations for On-chip Code Memory ....14-2
14.1.2 EPROM Devices .14-3
14.2 PROGRAMMING AND VERIFYING MODES..... 14-3
14.3 GENERAL SETUP... 14-3
14.4 PROGRAMMING ALGORITHM.... 14-5
14.5 VERIFY ALGORITHM.... 14-6
14.6 PROGRAMMABLE FUNCTIONS . 14-6
14.6.1 On-chip Code Memory .14-7
14.6.2 Configuration Bytes ...14-7
14.6.3 Lock Bit System ..14-7
14.6.4 Encryption Array .14-8
14.6.5 Signature Bytes ...14-8
14.7 VERIFYING THE 83C251SA, SB, SP, SQ (ROM) ..... 14-9
APPENDIX A
INSTRUCTION SET REFERENCE
A.1 NOTATION FOR INSTRUCTION OPERANDS... A-2
A.2 OPCODE MAP AND SUPPORTING TABLES .... A-4
A.3 INSTRUCTION SET SUMMARY. A-11
A.3.1 Execution Times for Instructions that Access the Port SFRs ... A-11
A.3.2 Instruction Summaries ..... A-14
APPENDIX B
SIGNAL DESCRIPTIONS
APPENDIX C
REGISTERS
GLOSSARY
INDEX
Figure Page
2-1 Functional Block Diagram of the 8XC251SA, SB, SP, SQ2-2
2-2 The CPU.....2-5
2-3 Clocking Definitions..2-6
3-1 Address Spaces for MCS® 251 Microcontrollers 3-1
3-2 Address Spaces for the MCS® 51 Architecture ..3-3
3-3 Address Space Mappings MCS® 51 Architecture to MCS® 251 Architecture.3-4
3-4 8XC251SA, SB, SP, SQ Address Space ....3-6
3-5 Hardware Implementation of the 8XC251SA, SB, SP, SQ Address Space ...3-7
3-6 The Register File ....3-11
3-7 Register File Locations 0–7...3-12
3-8 Dedicated Registers in the Register File and their Corresponding SFRs.....3-14
4-1 Configuration Array (On-chip)..4-2
4-2 Configuration Array (External) .4-3
4-3 Configuration Byte UCONFIG0 .....4-6
4-4 Configuration Byte UCONFIG1 .....4-7
4-5 Internal/External Address Mapping (RD1:0 = 00 and 01)4-10
4-6 Internal/External Address Mapping (RD1:0 = 10 and 11)4-11
4-7 Binary Mode Opcode Map.....4-15
4-8 Source Mode Opcode Map ...4-15
5-1 Word and Double-word Storage in Big Endien Form ..5-3
5-2 Program Status Word Register....5-18
5-3 Program Status Word 1 Register.5-19
6-1 Interrupt Control System 6-2
6-2 Interrupt Enable Register 6-6
6-3 Interrupt Priority High Register 6-8
6-4 Interrupt Priority Low Register .6-8
6-5 The Interrupt Process.....6-9
6-6 Response Time Example #1 .6-11
6-7 Response Time Example #2 .6-12
7-1 Port 1 and Port 3 Structure7-3
7-2 Port 0 Structure 7-3
7-3 Port 2 Structure 7-4
7-4 Internal Pullup Configurations .7-7
8-1 Basic Logic of the Timer/Counters 8-2
8-2 Timer 0/1 in Mode 0 and Mode 1 ..8-4
8-3 Timer 0/1 in Mode 2, Auto-Reload.8-5
8-4 Timer 0 in Mode 3, Two 8-bit Timers.....8-6
8-5 TMOD: Timer/Counter Mode Control Register ....8-7
8-6 TCON: Timer/Counter Control Register 8-8
8-7 Timer 2: Capture Mode 8-11
8-8 Timer 2: Auto Reload Mode (DCEN = 0)...8-12
8-9 Timer 2: Auto Reload Mode (DCEN = 1)...8-13
8-10 Timer 2: Clock Out Mode.8-15
8-11 T2MOD: Timer 2 Mode Control Register...8-16
8-12 T2CON: Timer 2 Control Register .8-17
9-1 Programmable Counter Array..9-3
9-2 PCA 16-bit Capture Mode .9-6
9-3 PCA Software Timer and High-speed Output Modes..9-8
9-4 PCA Watchdog Timer Mode..9-10
9-5 PCA 8-bit PWM Mode ..9-11
9-6 PWM Variable Duty Cycle .....9-12
9-7 CMOD: PCA Timer/Counter Mode Register9-13
9-8 CCON: PCA Timer/Counter Control Register....9-14
9-9 CCAPMx: PCA Compare/Capture Module Mode Registers....9-15
10-1 Serial Port Block Diagram .....10-2
10-2 SCON: Serial Port Control Register ....10-3
10-3 Mode 0 Timing10-5
10-4 Data Frame (Modes 1, 2, and 3) .10-6
10-5 Timer 2 in Baud Rate Generator Mode ...10-13
11-1 Minimum Setup 11-1
11-2 CHMOS On-chip Oscillator....11-3
11-3 External Clock Connection ....11-4
11-4 External Clock Drive Waveforms.11-5
11-5 Reset Timing Sequence 11-8
12-1 Power Control (PCON) Register..12-2
12-2 Idle and Powerdown Clock Control .....12-3
13-1 Bus Structure in Nonpage Mode and Page Mode.....13-1
13-2 External Code Fetch (Nonpage Mode)13-4
13-3 External Data Read (Nonpage Mode) .13-4
13-4 External Data Write (Nonpage Mode) .13-5
13-5 External Code Fetch (Page Mode) 13-6
13-6 External Data Read (Page Mode) .13-7
13-7 External Data Write (Page Mode)13-7
13-8 External Code Fetch (Nonpage Mode, One RD#/PSEN# Wait State) ...13-9
13-9 External Data Write (Nonpage Mode, One WR# Wait State)..13-9
13-10 External Code Fetch (Nonpage Mode, One ALE Wait State)13-10
13-11 Real-time Wait State Control Register (WCON)13-11
13-12 External Code Fetch/Data Read (Nonpage Mode, RT Wait State) 13-13
13-13 External Data Write (Nonpage Mode, RT Wait State) ...13-13
13-14 External Data Read (Page Mode, RT Wait State) ...13-14
13-15 External Data Write (Page Mode, RT Wait State) ...13-14
13-16 Configuration Byte Bus Cycles..13-15
13-17 Bus Diagram for Example 1: 80C251SB in Page Mode13-18
13-18 Address Space for Example 1...13-19
13-19 Bus Diagram for Example 2: 80C251SB in Page Mode13-20
13-20 Address Space for Example 2...13-21
13-21 Bus Diagram for Example 3: 87C251SB/83C251SB in Nonpage Mode ....13-22
13-22 Address Space for Example 3...13-23
13-23 Bus Diagram for Example 4: 87C251SB/83C251SB in Nonpage Mode ....13-24
13-24 Address Space for Example 4...13-25
13-25 Bus Diagram for Example 5: 80C251SB in Nonpage Mode..13-27
13-26 Address Space for Examples 5 and 6 .....13-28
13-27 Bus Diagram for Example 6: 80C251SB in Page Mode13-29
13-28 Bus Diagram for Example 7: 80C251SB in Page Mode13-30
14-1 Setup for Programming and Verifying Nonvolatile Memory.....14-5
14-2 Program/Verify Bus Cycles....14-6
B-1 8XC251SA, SB, SP, SQ 44-pin PLCC Package B-1
B-2 8XC251SA, SB, SP, SQ 40-pin PDIP and Ceramic DIP Packages B-3
Table Page
1-1 Intel Application Support Services.1-7
2-1 8XC251SA, SB, SP, SQ Features.2-3
3-1 Address Mappings....3-4
3-2 Minimum Times to Fetch Two Bytes of Code3-9
3-3 Register Bank Selection 3-12
3-4 Dedicated Registers in the Register File and their Corresponding SFRs.....3-15
3-5 8XC251SA, SB, SP, SQ SFR Map and Reset Values ....3-17
3-6 Core SFRs3-18
3-7 I/O Port SFRs .3-18
3-8 Serial I/O SFRs 3-19
3-9 Timer/Counter and Watchdog Timer SFRs .3-19
3-10 Programmable Counter Array (PCA) SFRs.3-19
4-1 External Addresses for Configuration Array 4-4
4-2 Memory Signal Selections (RD1:0) .4-8
4-3 RD#, WR#, PSEN# External Wait States..4-13
4-4 Examples of Opcodes in Binary and Source Modes .4-14
5-1 Data Types .5-2
5-2 Notation for Byte Registers, Word Registers, and Dword Registers 5-3
5-3 Addressing Modes for Data Instructions in the MCS® 51 Architecture....5-6
5-4 Addressing Modes for Data Instructions in the MCS® 251 Architecture..5-7
5-5 Bit-addressable Locations .....5-11
5-6 Addressing Two Sample Bits.5-12
5-7 Addressing Modes for Bit Instructions.5-12
5-8 Addressing Modes for Control Instructions5-13
5-9 Compare-conditional Jump Instructions ....5-14
5-10 The Effects of Instructions on the PSW and PSW1 Flags.5-17
6-1 Interrupt System Pin Signals ...6-1
6-2 Interrupt System Special Function Registers 6-3
6-3 Interrupt Control Matrix...6-4
6-4 Level of Priority.6-7
6-5 Interrupt Priority Within Level ..6-7
6-6 Interrupt Latency Variables ...6-13
6-7 Actual vs. Predicted Latency Calculations.6-13
7-1 Input/Output Port Pin Descriptions 7-1
7-2 Instructions for External Data Moves.....7-9
8-1 Timer/Counter and Watchdog Timer SFRs .8-2
8-2 External Signals .8-3
8-3 Timer 2 Modes of Operation..8-15
9-1 PCA Special Function Registers (SFRs) .....9-4
9-2 External Signals .9-4
9-3 PCA Module Modes .....9-14
10-1 Serial Port Signals..10-1
10-2 Serial Port Special Function Registers10-2
10-3 Summary of Baud Rates .....10-10
10-4 Timer 1 Generated Baud Rates for Serial I/O Modes 1 and 3.....10-12
10-5 Selecting the Baud Rate Generator(s) ....10-13
10-6 Timer 2 Generated Baud Rates 10-14
12-1 Pin Conditions in Various Modes.12-3
13-1 External Memory Interface Signals13-2
13-2 Bus Cycle Definitions (No Wait States) .....13-3
13-3 Port 0 and Port 2 Pin Status In Normal Operating Mode.13-16
14-1 Programming and Verifying Modes .....14-4
14-2 Lock Bit Function....14-8
14-3 Contents of the Signature Bytes..14-9
A-1 Notation for Register Operands.... A-2
A-2 Notation for Direct Addresses. A-3
A-3 Notation for Immediate Addressing A-3
A-4 Notation for Bit Addressing..... A-3
A-5 Notation for Destinations in Control Instructions A-3
A-6 Instructions for MCS® 51 Microcontrollers. A-4
A-7 New Instructions for the MCS® 251 Architecture. A-5
A-8 Data Instructions ..... A-6
A-9 High Nibble, Byte 0 of Data Instructions..... A-6
A-10 Bit Instructions. A-7
A-11 Byte 1 (High Nibble) for Bit Instructions A-7
A-12 PUSH/POP Instructions A-8
A-13 Control Instructions A-8
A-14 Displacement/Extended MOVs..... A-9
A-15 INC/DEC.. A-10
A-16 Encoding for INC/DEC A-10
A-17 Shifts . A-10
A-18 State Times to Access the Port SFRs A-12
A-19 Summary of Add and Subtract Instructions A-14
A-20 Summary of Compare Instructions..... A-15
A-21 Summary of Increment and Decrement Instructions A-16
A-22 Summary of Multiply, Divide, and Decimal-adjust Instructions..... A-16
A-23 Summary of Logical Instructions A-17
A-24 Summary of Move Instructions... A-19
A-25 Summary of Exchange, Push, and Pop Instructions A-22
A-26 Summary of Bit Instructions.. A-23
A-27 Summary of Control Instructions A-24
A-28 Flag Symbols. A-26
B-1 PLCC/DIP Pin Assignments Listed by Functional Category..... B-2
B-2 Signal Descriptions.. B-3
B-3 Memory Signal Selections (RD1:0) B-7
C-1 8XC251SA, SB, SP, SQ SFR Map.C-2
C-2 Core SFRs.C-3
C-3 I/O Port SFRs ..C-3
C-4 Serial I/O SFRs .C-4
C-5 Timer/Counter and Watchdog Timer SFRs C-4
C-6 Programmable Counter Array (PCA) SFRsC-5
C-7 Register File ....C-6
GUIDE TO THIS MANUAL
1.1 MANUAL CONTENTS..... 1-1
1.2 NOTATIONAL CONVENTIONS AND TERMINOLOGY ..... 1-3
1.3 RELATED DOCUMENTS 1-5
1.3.1 Data Sheet ....1-6
1.3.2 Application Notes ..1-6
1.4 APPLICATION SUPPORT SERVICES... 1-7
1.4.1 World Wide Web ...1-7
1.4.2 CompuServe Forums ..1-7
1.4.3 FaxBack Service ...1-8
1.4.4 Bulletin Board System (BBS) .....1-8
CHAPTER 2
ARCHITECTURAL OVERVIEW
2.1 8XC251SA, SB, SP, SQ ARCHITECTURE .. 2-3
2.2 MCS 251 MICROCONTROLLER CORE 2-4
2.2.1 CPU 2-5
2.2.2 Clock and Reset Unit ..2-6
2.2.3 Interrupt Handler ...2-7
2.2.4 On-chip Code Memory 2-7
2.2.5 On-chip RAM 2-7
2.3 ON-CHIP PERIPHERALS 2-7
2.3.1 Timer/Counters and Watchdog Timer 2-7
2.3.2 Programmable Counter Array (PCA) .2-8
2.3.3 Serial I/O Port .2-8
CHAPTER 3
ADDRESS SPACES
3.1 ADDRESS SPACES FOR MCS® 251 MICROCONTROLLERS 3-1
3.1.1 Compatibility with the MCS® 51 Architecture ..3-2
3.2 8XC251SA, SB, SP, SQ MEMORY SPACE. 3-5
3.2.1 On-chip General-purpose Data RAM .3-8
3.2.2 On-chip Code Memory (83C251SA, SB, SP, SQ/87C251SA, SB, SP, SQ) .3-8
3.2.2.1 Accessing On-chip Code Memory in Region 00: .3-9
3.2.3 External Memory .3-10
3.3 8XC251SA, SB, SP, SQ REGISTER FILE . 3-10
3.3.1 Byte, Word, and Dword Registers ....3-13
3.3.2 Dedicated Registers ..3-13
3.3.2.1 Accumulator and B Register .3-13
3.3.2.2 Extended Data Pointer, DPX .3-15
3.3.2.3 Extended Stack Pointer, SPX .....3-15
3.4 SPECIAL FUNCTION REGISTERS (SFRS) 3-16
CHAPTER 4
DEVICE CONFIGURATION
4.1 CONFIGURATION OVERVIEW ..... 4-1
4.2 DEVICE CONFIGURATION ..... 4-1
4.3 THE CONFIGURATION BITS... 4-4
4.4 CONFIGURATION BYTE LOCATION SELECTOR (UCON) 4-5
4.5 CONFIGURING THE EXTERNAL MEMORY INTERFACE 4-8
4.5.1 Page Mode and Nonpage Mode (PAGE#) .4-8
4.5.2 Configuration Bits RD1:0 .....4-9
4.5.2.1 RD1:0 = 00 (18 External Address Bits) .4-9
4.5.2.2 RD1:0 = 01 (17 External Address Bits) .4-9
4.5.2.3 RD1:0 = 10 (16 External Address Bits) .....4-12
4.5.2.4 RD1:0 = 11 (Compatible with MCS 51 Microcontrollers) .4-12
4.5.3 Wait State Configuration Bits ...4-12
4.5.3.1 Configuration Bits WSA1:0#, WSB1:# 4-12
4.5.3.2 Configuration Bit WSB ..4-12
4.5.3.3 Configuration Bit XALE# .....4-13
4.6 OPCODE CONFIGURATIONS (SRC).. 4-13
4.6.1 Selecting Binary Mode or Source Mode .4-14
4.7 MAPPING ON-CHIP CODE MEMORY TO DATA MEMORY (EMAP#) .. 4-16
4.8 INTERRUPT MODE (INTR).... 4-16
CHAPTER 5
PROGRAMMING
5.1 SOURCE MODE OR BINARY MODE OPCODES . 5-1
5.2 PROGRAMMING FEATURES OF THE MCS® 251 ARCHITECTURE..... 5-1
5.2.1 Data Types ....5-2
5.2.1.1 Order of Byte Storage for Words and Double Words 5-2
5.2.2 Register Notation ..5-2
5.2.3 Address Notation ..5-2
5.2.4 Addressing Modes 5-4
5.3 DATA INSTRUCTIONS ... 5-4
5.3.1 Data Addressing Modes .5-4
5.3.1.1 Register Addressing 5-5
5.3.1.2 Immediate 5-5
5.3.1.3 Direct ..5-5
5.3.1.4 Indirect .....5-6
5.3.1.5 Displacement ...5-8
5.3.2 Arithmetic Instructions .5-8
5.3.3 Logical Instructions .....5-9
5.3.4 Data Transfer Instructions ..5-10
5.4 BIT INSTRUCTIONS ..... 5-11
5.4.1 Bit Addressing .....5-11
5.5 CONTROL INSTRUCTIONS .. 5-12
5.5.1 Addressing Modes for Control Instructions ....5-13
5.5.2 Conditional Jumps ....5-14
5.5.3 Unconditional Jumps .5-15
5.5.4 Calls and Returns .....5-15
5.6 PROGRAM STATUS WORDS ..... 5-16
CHAPTER 6
INTERRUPT SYSTEM
6.1 OVERVIEW . 6-1
6.2 8XC251SA, SB, SP, SQ INTERRUPT SOURCES. 6-3
6.2.1 External Interrupts .6-3
6.2.2 Timer Interrupts .....6-4
6.3 PROGRAMMABLE COUNTER ARRAY (PCA) INTERRUPT..... 6-5
6.4 SERIAL PORT INTERRUPT..... 6-5
6.5 INTERRUPT ENABLE ..... 6-5
6.6 INTERRUPT PRIORITIES 6-7
6.7 INTERRUPT PROCESSING .... 6-9
6.7.1 Minimum Fixed Interrupt Time .6-10
6.7.2 Variable Interrupt Parameters ..6-10
6.7.2.1 Response Time Variables ...6-10
6.7.2.2 Computation of Worst-case Latency With Variables .6-12
6.7.2.3 Latency Calculations .....6-13
6.7.2.4 Blocking Conditions .6-14
6.7.2.5 Interrupt Vector Cycle ...6-14
6.7.3 ISRs in Process ..6-15
CHAPTER 7
INPUT/OUTPUT PORTS
7.1 INPUT/OUTPUT PORT OVERVIEW 7-1
7.2 I/O CONFIGURATIONS... 7-2
7.3 PORT 1 AND PORT 3 ..... 7-2
7.4 PORT 0 AND PORT 2 ..... 7-2
7.5 READ-MODIFY-WRITE INSTRUCTIONS.... 7-5
7.6 QUASI-BIDIRECTIONAL PORT OPERATION..... 7-6
7.7 PORT LOADING 7-7
7.8 EXTERNAL MEMORY ACCESS.... 7-7
CHAPTER 8
TIMER/COUNTERS AND WATCHDOG TIMER
8.1 TIMER/COUNTER OVERVIEW 8-1
8.2 TIMER/COUNTER OPERATION.... 8-1
8.3 TIMER 0. 8-3
8.3.1 Mode 0 (13-bit Timer) .8-4
8.3.2 Mode 1 (16-bit Timer) .8-4
8.3.3 Mode 2 (8-bit Timer With Auto-reload) .....8-5
8.3.4 Mode 3 (Two 8-bit Timers) ...8-5
8.4 TIMER 1. 8-5
8.4.1 Mode 0 (13-bit Timer) .8-9
8.4.2 Mode 1 (16-bit Timer) .8-9
8.4.3 Mode 2 (8-bit Timer with Auto-reload) 8-9
8.4.4 Mode 3 (Halt) 8-9
8.5 TIMER 0/1 APPLICATIONS 8-9
8.5.1 Auto-load Setup Example ....8-9
8.5.2 Pulse Width Measurements .....8-10
8.6 TIMER 2..... 8-10
8.6.1 Capture Mode .....8-11
8.6.2 Auto-reload Mode .....8-12
8.6.2.1 Up Counter Operation ...8-12
8.6.2.2 Up/Down Counter Operation .8-13
8.6.3 Baud Rate Generator Mode .....8-14
8.6.4 Clock-out Mode ...8-14
8.7 WATCHDOG TIMER ..... 8-16
8.7.1 Description ..8-16
8.7.2 Using the WDT ....8-18
8.7.3 WDT During Idle Mode 8-18
8.7.4 WDT During PowerDown ...8-18
CHAPTER 9
PROGRAMMABLE COUNTER ARRAY
9.1 PCA DESCRIPTION.. 9-1
9.1.1 Alternate Port Usage ...9-2
9.2 PCA TIMER/COUNTER... 9-2
9.3 PCA COMPARE/CAPTURE MODULES 9-5
9.3.1 16-bit Capture Mode ...9-5
9.3.2 Compare Modes ...9-7
9.3.3 16-bit Software Timer Mode .9-7
9.3.4 High-speed Output Mode .....9-8
9.3.5 PCA Watchdog Timer Mode 9-9
9.3.6 Pulse Width Modulation Mode .9-11
CHAPTER 10
SERIAL I/O PORT
10.1 OVERVIEW ..... 10-1
10.2 MODES OF OPERATION. 10-4
10.2.1 Synchronous Mode (Mode 0) ...10-4
10.2.1.1 Transmission (Mode 0) .10-4
10.2.1.2 Reception (Mode 0) .10-5
10.2.2 Asynchronous Modes (Modes 1, 2, and 3) ....10-6
10.2.2.1 Transmission (Modes 1, 2, 3) 10-6
10.2.2.2 Reception (Modes 1, 2, 3) ...10-6
10.3 FRAMING BIT ERROR DETECTION (MODES 1, 2, AND 3)... 10-7
10.4 MULTIPROCESSOR COMMUNICATION (MODES 2 AND 3). 10-7
10.5 AUTOMATIC ADDRESS RECOGNITION.. 10-7
10.5.1 Given Address ....10-8
10.5.2 Broadcast Address ....10-9
10.5.3 Reset Addresses .....10-10
10.6 BAUD RATES 10-10
10.6.1 Baud Rate for Mode 0 10-10
10.6.2 Baud Rates for Mode 2 ....10-10
10.6.3 Baud Rates for Modes 1 and 3 10-10
10.6.3.1 Timer 1 Generated Baud Rates (Modes 1 and 3) .10-11
10.6.3.2 Selecting Timer 1 as the Baud Rate Generator ....10-11
10.6.3.3 Timer 2 Generated Baud Rates (Modes 1 and 3) .10-12
10.6.3.4 Selecting Timer 2 as the Baud Rate Generator ....10-12
CHAPTER 11
MINIMUM HARDWARE SETUP
11.1 MINIMUM HARDWARE SETUP... 11-1
11.2 ELECTRICAL ENVIRONMENT.... 11-2
11.2.1 Power and Ground Pins .....11-2
11.2.2 Unused Pins 11-2
11.2.3 Noise Considerations 11-2
11.3 CLOCK SOURCES.. 11-3
11.3.1 On-chip Oscillator (Crystal) 11-3
11.3.2 On-chip Oscillator (Ceramic Resonator) 11-4
11.3.3 External Clock .....11-4
11.4 RESET. 11-5
11.4.1 Externally Initiated Resets .11-6
11.4.2 WDT Initiated Resets 11-6
11.4.3 Reset Operation ..11-6
11.4.4 Power-on Reset ..11-7
CHAPTER 12
SPECIAL OPERATING MODES
12.1 GENERAL.. 12-1
12.2 POWER CONTROL REGISTER .. 12-1
12.2.1 Serial I/O Control Bits 12-1
12.2.2 Power Off Flag ....12-1
12.3 IDLE MODE..... 12-4
12.3.1 Entering Idle Mode ....12-4
12.3.2 Exiting Idle Mode 12-5
12.4 POWERDOWN MODE.. 12-5
12.4.1 Entering Powerdown Mode 12-6
12.4.2 Exiting Powerdown Mode ..12-6
12.5 ON-CIRCUIT EMULATION (ONCE) MODE. 12-7
12.5.1 Entering ONCE Mode 12-7
12.5.2 Exiting ONCE Mode ..12-7
CHAPTER 13
EXTERNAL MEMORY INTERFACE
13.1 OVERVIEW ..... 13-1
13.2 EXTERNAL BUS CYCLES ..... 13-3
13.2.1 Bus Cycle Definitions 13-3
13.2.2 Nonpage Mode Bus Cycles .....13-4
13.2.3 Page Mode Bus Cycles 13-5
13.3 WAIT STATES. 13-8
13.4 EXTERNAL BUS CYCLES WITH CONFIGURABLE WAIT STATES 13-8
13.4.1 Extending RD#/WR#/PSEN# ...13-8
13.4.2 Extending ALE ..13-10
13.5 EXTERNAL BUS CYCLES WITH REAL-TIME WAIT STATES.... 13-10
13.5.1 Real-time WAIT# Enable (RTWE) ..13-12
13.5.2 Real-time WAIT CLOCK Enable (RTWCE) ..13-12
13.5.3 Real-time Wait State Bus Cycle Diagrams ...13-12
13.6 CONFIGURATION BYTE BUS CYCLES.. 13-15
13.7 PORT 0 AND PORT 2 STATUS . 13-16
13.7.1 Port 0 and Port 2 Pin Status in Nonpage Mode ...13-16
13.7.2 Port 0 and Port 2 Pin Status in Page Mode .13-17
13.8 EXTERNAL MEMORY DESIGN EXAMPLES... 13-18
13.8.1 Example 1: RD1:0 = 00, 18-bit Bus, External Flash and RAM .13-18
13.8.2 Example 2: RD1:0 = 01, 17-bit Bus, External Flash and RAM .13-20
13.8.3 Example 3: RD1:0 = 01, 17-bit Bus, External RAM ...13-22
13.8.4 Example 4: RD1:0 = 10, 16-bit Bus, External RAM ...13-24
13.8.5 Example 5: RD1:0 = 11, 16-bit Bus, External EPROM and RAM .....13-26
13.8.5.1 An Application Requiring Fast Access to the Stack 13-26
13.8.5.2 An Application Requiring Fast Access to Data 13-26
13.8.6 Example 6: RD1:0 = 11, 16-bit Bus, External EPROM and RAM .....13-29
13.8.7 Example 7: RD1:0 = 01, 17-bit Bus, External Flash ...13-30
CHAPTER 14
PROGRAMMING AND VERIFYING
NONVOLATILE MEMORY
14.1 GENERAL.. 14-1
14.1.1 Programming Considerations for On-chip Code Memory ....14-2
14.1.2 EPROM Devices .14-3
14.2 PROGRAMMING AND VERIFYING MODES..... 14-3
14.3 GENERAL SETUP... 14-3
14.4 PROGRAMMING ALGORITHM.... 14-5
14.5 VERIFY ALGORITHM.... 14-6
14.6 PROGRAMMABLE FUNCTIONS . 14-6
14.6.1 On-chip Code Memory .14-7
14.6.2 Configuration Bytes ...14-7
14.6.3 Lock Bit System ..14-7
14.6.4 Encryption Array .14-8
14.6.5 Signature Bytes ...14-8
14.7 VERIFYING THE 83C251SA, SB, SP, SQ (ROM) ..... 14-9
APPENDIX A
INSTRUCTION SET REFERENCE
A.1 NOTATION FOR INSTRUCTION OPERANDS... A-2
A.2 OPCODE MAP AND SUPPORTING TABLES .... A-4
A.3 INSTRUCTION SET SUMMARY. A-11
A.3.1 Execution Times for Instructions that Access the Port SFRs ... A-11
A.3.2 Instruction Summaries ..... A-14
APPENDIX B
SIGNAL DESCRIPTIONS
APPENDIX C
REGISTERS
GLOSSARY
INDEX
Figure Page
2-1 Functional Block Diagram of the 8XC251SA, SB, SP, SQ2-2
2-2 The CPU.....2-5
2-3 Clocking Definitions..2-6
3-1 Address Spaces for MCS® 251 Microcontrollers 3-1
3-2 Address Spaces for the MCS® 51 Architecture ..3-3
3-3 Address Space Mappings MCS® 51 Architecture to MCS® 251 Architecture.3-4
3-4 8XC251SA, SB, SP, SQ Address Space ....3-6
3-5 Hardware Implementation of the 8XC251SA, SB, SP, SQ Address Space ...3-7
3-6 The Register File ....3-11
3-7 Register File Locations 0–7...3-12
3-8 Dedicated Registers in the Register File and their Corresponding SFRs.....3-14
4-1 Configuration Array (On-chip)..4-2
4-2 Configuration Array (External) .4-3
4-3 Configuration Byte UCONFIG0 .....4-6
4-4 Configuration Byte UCONFIG1 .....4-7
4-5 Internal/External Address Mapping (RD1:0 = 00 and 01)4-10
4-6 Internal/External Address Mapping (RD1:0 = 10 and 11)4-11
4-7 Binary Mode Opcode Map.....4-15
4-8 Source Mode Opcode Map ...4-15
5-1 Word and Double-word Storage in Big Endien Form ..5-3
5-2 Program Status Word Register....5-18
5-3 Program Status Word 1 Register.5-19
6-1 Interrupt Control System 6-2
6-2 Interrupt Enable Register 6-6
6-3 Interrupt Priority High Register 6-8
6-4 Interrupt Priority Low Register .6-8
6-5 The Interrupt Process.....6-9
6-6 Response Time Example #1 .6-11
6-7 Response Time Example #2 .6-12
7-1 Port 1 and Port 3 Structure7-3
7-2 Port 0 Structure 7-3
7-3 Port 2 Structure 7-4
7-4 Internal Pullup Configurations .7-7
8-1 Basic Logic of the Timer/Counters 8-2
8-2 Timer 0/1 in Mode 0 and Mode 1 ..8-4
8-3 Timer 0/1 in Mode 2, Auto-Reload.8-5
8-4 Timer 0 in Mode 3, Two 8-bit Timers.....8-6
8-5 TMOD: Timer/Counter Mode Control Register ....8-7
8-6 TCON: Timer/Counter Control Register 8-8
8-7 Timer 2: Capture Mode 8-11
8-8 Timer 2: Auto Reload Mode (DCEN = 0)...8-12
8-9 Timer 2: Auto Reload Mode (DCEN = 1)...8-13
8-10 Timer 2: Clock Out Mode.8-15
8-11 T2MOD: Timer 2 Mode Control Register...8-16
8-12 T2CON: Timer 2 Control Register .8-17
9-1 Programmable Counter Array..9-3
9-2 PCA 16-bit Capture Mode .9-6
9-3 PCA Software Timer and High-speed Output Modes..9-8
9-4 PCA Watchdog Timer Mode..9-10
9-5 PCA 8-bit PWM Mode ..9-11
9-6 PWM Variable Duty Cycle .....9-12
9-7 CMOD: PCA Timer/Counter Mode Register9-13
9-8 CCON: PCA Timer/Counter Control Register....9-14
9-9 CCAPMx: PCA Compare/Capture Module Mode Registers....9-15
10-1 Serial Port Block Diagram .....10-2
10-2 SCON: Serial Port Control Register ....10-3
10-3 Mode 0 Timing10-5
10-4 Data Frame (Modes 1, 2, and 3) .10-6
10-5 Timer 2 in Baud Rate Generator Mode ...10-13
11-1 Minimum Setup 11-1
11-2 CHMOS On-chip Oscillator....11-3
11-3 External Clock Connection ....11-4
11-4 External Clock Drive Waveforms.11-5
11-5 Reset Timing Sequence 11-8
12-1 Power Control (PCON) Register..12-2
12-2 Idle and Powerdown Clock Control .....12-3
13-1 Bus Structure in Nonpage Mode and Page Mode.....13-1
13-2 External Code Fetch (Nonpage Mode)13-4
13-3 External Data Read (Nonpage Mode) .13-4
13-4 External Data Write (Nonpage Mode) .13-5
13-5 External Code Fetch (Page Mode) 13-6
13-6 External Data Read (Page Mode) .13-7
13-7 External Data Write (Page Mode)13-7
13-8 External Code Fetch (Nonpage Mode, One RD#/PSEN# Wait State) ...13-9
13-9 External Data Write (Nonpage Mode, One WR# Wait State)..13-9
13-10 External Code Fetch (Nonpage Mode, One ALE Wait State)13-10
13-11 Real-time Wait State Control Register (WCON)13-11
13-12 External Code Fetch/Data Read (Nonpage Mode, RT Wait State) 13-13
13-13 External Data Write (Nonpage Mode, RT Wait State) ...13-13
13-14 External Data Read (Page Mode, RT Wait State) ...13-14
13-15 External Data Write (Page Mode, RT Wait State) ...13-14
13-16 Configuration Byte Bus Cycles..13-15
13-17 Bus Diagram for Example 1: 80C251SB in Page Mode13-18
13-18 Address Space for Example 1...13-19
13-19 Bus Diagram for Example 2: 80C251SB in Page Mode13-20
13-20 Address Space for Example 2...13-21
13-21 Bus Diagram for Example 3: 87C251SB/83C251SB in Nonpage Mode ....13-22
13-22 Address Space for Example 3...13-23
13-23 Bus Diagram for Example 4: 87C251SB/83C251SB in Nonpage Mode ....13-24
13-24 Address Space for Example 4...13-25
13-25 Bus Diagram for Example 5: 80C251SB in Nonpage Mode..13-27
13-26 Address Space for Examples 5 and 6 .....13-28
13-27 Bus Diagram for Example 6: 80C251SB in Page Mode13-29
13-28 Bus Diagram for Example 7: 80C251SB in Page Mode13-30
14-1 Setup for Programming and Verifying Nonvolatile Memory.....14-5
14-2 Program/Verify Bus Cycles....14-6
B-1 8XC251SA, SB, SP, SQ 44-pin PLCC Package B-1
B-2 8XC251SA, SB, SP, SQ 40-pin PDIP and Ceramic DIP Packages B-3
Table Page
1-1 Intel Application Support Services.1-7
2-1 8XC251SA, SB, SP, SQ Features.2-3
3-1 Address Mappings....3-4
3-2 Minimum Times to Fetch Two Bytes of Code3-9
3-3 Register Bank Selection 3-12
3-4 Dedicated Registers in the Register File and their Corresponding SFRs.....3-15
3-5 8XC251SA, SB, SP, SQ SFR Map and Reset Values ....3-17
3-6 Core SFRs3-18
3-7 I/O Port SFRs .3-18
3-8 Serial I/O SFRs 3-19
3-9 Timer/Counter and Watchdog Timer SFRs .3-19
3-10 Programmable Counter Array (PCA) SFRs.3-19
4-1 External Addresses for Configuration Array 4-4
4-2 Memory Signal Selections (RD1:0) .4-8
4-3 RD#, WR#, PSEN# External Wait States..4-13
4-4 Examples of Opcodes in Binary and Source Modes .4-14
5-1 Data Types .5-2
5-2 Notation for Byte Registers, Word Registers, and Dword Registers 5-3
5-3 Addressing Modes for Data Instructions in the MCS® 51 Architecture....5-6
5-4 Addressing Modes for Data Instructions in the MCS® 251 Architecture..5-7
5-5 Bit-addressable Locations .....5-11
5-6 Addressing Two Sample Bits.5-12
5-7 Addressing Modes for Bit Instructions.5-12
5-8 Addressing Modes for Control Instructions5-13
5-9 Compare-conditional Jump Instructions ....5-14
5-10 The Effects of Instructions on the PSW and PSW1 Flags.5-17
6-1 Interrupt System Pin Signals ...6-1
6-2 Interrupt System Special Function Registers 6-3
6-3 Interrupt Control Matrix...6-4
6-4 Level of Priority.6-7
6-5 Interrupt Priority Within Level ..6-7
6-6 Interrupt Latency Variables ...6-13
6-7 Actual vs. Predicted Latency Calculations.6-13
7-1 Input/Output Port Pin Descriptions 7-1
7-2 Instructions for External Data Moves.....7-9
8-1 Timer/Counter and Watchdog Timer SFRs .8-2
8-2 External Signals .8-3
8-3 Timer 2 Modes of Operation..8-15
9-1 PCA Special Function Registers (SFRs) .....9-4
9-2 External Signals .9-4
9-3 PCA Module Modes .....9-14
10-1 Serial Port Signals..10-1
10-2 Serial Port Special Function Registers10-2
10-3 Summary of Baud Rates .....10-10
10-4 Timer 1 Generated Baud Rates for Serial I/O Modes 1 and 3.....10-12
10-5 Selecting the Baud Rate Generator(s) ....10-13
10-6 Timer 2 Generated Baud Rates 10-14
12-1 Pin Conditions in Various Modes.12-3
13-1 External Memory Interface Signals13-2
13-2 Bus Cycle Definitions (No Wait States) .....13-3
13-3 Port 0 and Port 2 Pin Status In Normal Operating Mode.13-16
14-1 Programming and Verifying Modes .....14-4
14-2 Lock Bit Function....14-8
14-3 Contents of the Signature Bytes..14-9
A-1 Notation for Register Operands.... A-2
A-2 Notation for Direct Addresses. A-3
A-3 Notation for Immediate Addressing A-3
A-4 Notation for Bit Addressing..... A-3
A-5 Notation for Destinations in Control Instructions A-3
A-6 Instructions for MCS® 51 Microcontrollers. A-4
A-7 New Instructions for the MCS® 251 Architecture. A-5
A-8 Data Instructions ..... A-6
A-9 High Nibble, Byte 0 of Data Instructions..... A-6
A-10 Bit Instructions. A-7
A-11 Byte 1 (High Nibble) for Bit Instructions A-7
A-12 PUSH/POP Instructions A-8
A-13 Control Instructions A-8
A-14 Displacement/Extended MOVs..... A-9
A-15 INC/DEC.. A-10
A-16 Encoding for INC/DEC A-10
A-17 Shifts . A-10
A-18 State Times to Access the Port SFRs A-12
A-19 Summary of Add and Subtract Instructions A-14
A-20 Summary of Compare Instructions..... A-15
A-21 Summary of Increment and Decrement Instructions A-16
A-22 Summary of Multiply, Divide, and Decimal-adjust Instructions..... A-16
A-23 Summary of Logical Instructions A-17
A-24 Summary of Move Instructions... A-19
A-25 Summary of Exchange, Push, and Pop Instructions A-22
A-26 Summary of Bit Instructions.. A-23
A-27 Summary of Control Instructions A-24
A-28 Flag Symbols. A-26
B-1 PLCC/DIP Pin Assignments Listed by Functional Category..... B-2
B-2 Signal Descriptions.. B-3
B-3 Memory Signal Selections (RD1:0) B-7
C-1 8XC251SA, SB, SP, SQ SFR Map.C-2
C-2 Core SFRs.C-3
C-3 I/O Port SFRs ..C-3
C-4 Serial I/O SFRs .C-4
C-5 Timer/Counter and Watchdog Timer SFRs C-4
C-6 Programmable Counter Array (PCA) SFRsC-5
C-7 Register File ....C-6
下载该资料的人也在下载
下载该资料的人还在阅读
更多 >
- 8 输入多路复用器;三态-74HC_HCT251
- MPLAB XC8 PIC汇编器用户指南 29次下载
- 新一代八位微控制器(Intel8XC251SB)原理及应用技术规范 19次下载
- TLC251,TLC251A,TLC251B,TLC251Y
- CD54HC251,CD74HC251,CD54HCT251
- CD74ACT251,CD74AC251,pdf(8-Inp
- 8位单片微控制器XC866
- 8XC51SL应用技术资料更新(1996年)
- 介绍MCS 251微控制器-- 8XC251SB的新功能应用
- 8xC251Sx (8XC251SA, 8XC251SB,
- 介绍8xC251SB与MCS-251微控制器的编程差异并通过
- 8XC251Tx(8XC251TA, 8XC251TB, 8XC251TP, 8XC251TQ)应用技术资料
- 8XC251Sx与8XC251Tx的差异比较
- 8XC51FX、8XC51应用技术资料更新(1996年)
- 8xC51FA, 8xC51FB,8xC51FC应用技术资料
- 电压稳压器XC6705系列概述和特点 696次阅读
- XC9290/XC9291系列降压DC/DC转换器简介 565次阅读
- MPLAB XC许可证最多能够安装到几台计算机上 910次阅读
- 微雪电子FPGAXILINX XC3S250E开发板简介 3116次阅读
- 微雪电子FPGAXILINX XC3S500E开发板简介 1552次阅读
- 微雪电子FPGAXILINX XC3S500E开发板简介 2172次阅读
- 微雪电子FPGAXILINX XC3S250E开发板简介 1422次阅读
- 微雪电子FPGA XILINX XC3S250E开发板简介 5136次阅读
- 米尔科技KEIL C251开发工具比较 3256次阅读
- 米尔科技Keil C251 开发工具 介绍 3619次阅读
- 天嵌科技TQ335XC开发板-TI系列规格 2046次阅读
- 天嵌科技TQ335XC开发板套装-TI系列简介 1985次阅读
- 基于使用XC9801/02系列芯片实现驱动多个白光LED 1087次阅读
- XC6219电流折返工作状态和限定电流功能的详细介绍 1w次阅读
- 433mhz无线收发芯片XC4366中文资料pdf应用电路 2w次阅读
下载排行
本周
- 1电子电路原理第七版PDF电子教材免费下载
- 0.00 MB | 1491次下载 | 免费
- 2单片机典型实例介绍
- 18.19 MB | 95次下载 | 1 积分
- 3S7-200PLC编程实例详细资料
- 1.17 MB | 27次下载 | 1 积分
- 4笔记本电脑主板的元件识别和讲解说明
- 4.28 MB | 18次下载 | 4 积分
- 5开关电源原理及各功能电路详解
- 0.38 MB | 11次下载 | 免费
- 6100W短波放大电路图
- 0.05 MB | 4次下载 | 3 积分
- 7基于单片机和 SG3525的程控开关电源设计
- 0.23 MB | 4次下载 | 免费
- 8基于AT89C2051/4051单片机编程器的实验
- 0.11 MB | 4次下载 | 免费
本月
- 1OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234313次下载 | 免费
- 2PADS 9.0 2009最新版 -下载
- 0.00 MB | 66304次下载 | 免费
- 3protel99下载protel99软件下载(中文版)
- 0.00 MB | 51209次下载 | 免费
- 4LabView 8.0 专业版下载 (3CD完整版)
- 0.00 MB | 51043次下载 | 免费
- 5555集成电路应用800例(新编版)
- 0.00 MB | 33562次下载 | 免费
- 6接口电路图大全
- 未知 | 30320次下载 | 免费
- 7Multisim 10下载Multisim 10 中文版
- 0.00 MB | 28588次下载 | 免费
- 8开关电源设计实例指南
- 未知 | 21539次下载 | 免费
总榜
- 1matlab软件下载入口
- 未知 | 935053次下载 | 免费
- 2protel99se软件下载(可英文版转中文版)
- 78.1 MB | 537793次下载 | 免费
- 3MATLAB 7.1 下载 (含软件介绍)
- 未知 | 420026次下载 | 免费
- 4OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234313次下载 | 免费
- 5Altium DXP2002下载入口
- 未知 | 233046次下载 | 免费
- 6电路仿真软件multisim 10.0免费下载
- 340992 | 191183次下载 | 免费
- 7十天学会AVR单片机与C语言视频教程 下载
- 158M | 183277次下载 | 免费
- 8proe5.0野火版下载(中文版免费下载)
- 未知 | 138039次下载 | 免费
评论
查看更多