/*--------------------------------------------------------------------------REG52.H Header file for generic 80C52 and 80C32 microcontroller. Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.All rights reserved.--------------------------------------------------------------------------*/ #ifndef __REG52_H__#define __REG52_H__ /* BYTE Registers */sfr P0 = 0x80;sfr P1 = 0x90;sfr P2 = 0xA0;sfr P3 = 0xB0;sfr PSW = 0xD0;sfr ACC = 0xE0;sfr B = 0xF0;sfr SP = 0x81;sfr DPL = 0x82;sfr DPH = 0x83;sfr PCON = 0x87;sfr TCON = 0x88;sfr TMOD = 0x89;sfr TL0 = 0x8A;sfr TL1 = 0x8B;sfr TH0 = 0x8C;sfr TH1 = 0x8D;sfr IE = 0xA8;sfr IP = 0xB8;sfr SCON = 0x98;sfr SBUF = 0x99; /* 8052 Extensions */sfr T2CON = 0xC8;sfr RCAP2L = 0xCA;sfr RCAP2H = 0xCB;sfr TL2 = 0xCC;sfr TH2 = 0xCD; /* BIT Registers *//* PSW */ sbit CY = PSW^7;sbit AC = PSW^6;sbit F0 = PSW^5;sbit RS1 = PSW^4;sbit RS0 = PSW^3;sbit OV = PSW^2; sbit P = PSW^0; //8052 only /* TCON */ sbit TF1 = TCON^7;sbit TR1 = TCON^6;sbit TF0 = TCON^5;sbit TR0 = TCON^4;sbit IE1 = TCON^3;sbit IT1 = TCON^2;sbit IE0 = TCON^1;sbit IT0 = TCON^0; 英文缩写原文是什么
时间: 2023-08-25 22:14:16 浏览: 212
这段代码是关于reg52单片机的头文件reg52.h,其中定义了各个寄存器的地址以及位域的访问方式。以下是每个缩写的原文:
sfr: Special Function Register
sbit: Special Bit Register
P0: Port 0
P1: Port 1
P2: Port 2
P3: Port 3
PSW: Program Status Word
ACC: Accumulator
B: B register
SP: Stack Pointer
DPL: Data Pointer Low
DPH: Data Pointer High
PCON: Power Control
TCON: Timer Control
TMOD: Timer Mode
TL0: Timer 0 Low Byte
TL1: Timer 1 Low Byte
TH0: Timer 0 High Byte
TH1: Timer 1 High Byte
IE: Interrupt Enable
IP: Interrupt Priority
SCON: Serial Control
SBUF: Serial Buffer
T2CON: Timer 2 Control
RCAP2L: Timer 2 Reload Low Byte
RCAP2H: Timer 2 Reload High Byte
TL2: Timer 2 Low Byte
TH2: Timer 2 High Byte
CY: Carry Flag
AC: Auxiliary Carry Flag
F0: User-defined Flag 0
RS1: Register Bank Select 1
RS0: Register Bank Select 0
OV: Overflow Flag
P: Parity Flag (only for 8052)
TF1: Timer 1 Overflow Flag
TR1: Timer 1 Run Control
TF0: Timer 0 Overflow Flag
TR0: Timer 0 Run Control
IE1: External Interrupt 1 Enable
IT1: External Interrupt 1 Type
IE0: External Interrupt 0 Enable
IT0: External Interrupt 0 Type