问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

...单片机内共有多少个SFR?分别是哪些对每个位进行说明作用...

发布网友 发布时间:2024-10-07 23:16

我来回答

1个回答

热心网友 时间:2024-10-07 23:22

1. The AT89C51 microcontroller contains a total of 21 SFRs (Special Function Registers).
2. ACC Accumulator: This register is used to assist the accumulator in certain operations.
3. PSW Program Status Word: The highest bit, PSW.7, is the carry/borrow flag C; PSW.6 is the auxiliary carry flag AC; PSW.4 and PSW.3 are the register group selection bits RS1 and RS0; PSW.2 is the overflow flag OV; and PSW.0 is the even parity bit P of ACC.
4. IP Interrupt Priority Control Register: In the 51 series, IP.0 to IP.4 control the priority of INT0, T0, INT1, T1, and UART interrupts in sequence.
5. IE Interrupt Enable Register: IE.7 is the master switch for all interrupts, EA; IE.0 to IE.4 control the enabling or disabling of INT0, T0, INT1, T1, and UART interrupt functions.
6. P0, P1, P2, P3 are four registers used to read and write the four I/O ports of the 51 microcontroller.
7. SBUF Serial Data Buffer: Writing data to SBUF automatically sends the data from the UART port.
8. SCON Serial Port Function Controller: The highest two bits, SM0 and SM1, control the working mode of the serial port; bit 5, SM2, is usually used to distinguish address frames from data frames in multi-machine communication; bits 4 and 3, REN and TB8 respectively, are the enable bits for serial port reception and the 9th data bit to be sent or received in the related working mode; the next lower bit TI and the lowest bit RI indicate that a transmission or reception process has ended, triggering the serial port interrupt with these flag bits.
9. TH0, TL0 Timer T0 Count Register High and Low Bytes: Used for counting and timing functions.
10. TH1, TL1 Timer T1 Count Register High and Low Bytes: Used for counting and timing functions.
11. TMOD Timer/Counter Mode Register: The lower 4 bits and the higher 4 bits correspond to the same content and control the working modes of T0 and T1; the next lower bit and the lowest bit control the working mode of the corresponding timer/counter; the highest bit controls whether the counting of the timer/counter is participated by the external interrupt input; the next higher bit controls whether the corresponding timer or counter works in timer or counter mode.
12. TCON Timer/Counter Control Register: TCON.0 and TCON.2 are the trigger mode selection bits for external interrupt INT0 and INT1, IT0 and IT1; TCON.1 and TCON.3 are the interrupt trigger flag bits IE0 and IE1 for external interrupt INT0 and INT1; TCON.4 and TCON.6 are the count enable bits TR0 and TR1 for T0 and T1; TCON.5 and TCON.7 are the interrupt trigger flag bits TF0 and TF1 for T0 and T1.
13. PCON Power Mode Controller: The highest bit, SMOD, is used to double the serial port communication baud rate; the lower 4 bits are used to select different low-power modes, such as idle mode, power-down mode, clock stop mode, etc.
14. DPH, DPL Data Pointer High and Low Bytes: DPTR can be used to point to program memory, on-chip RAM, or external RAM to read data.
15. SP Stack Pointer: The stack is allocated in on-chip RAM.
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
巧师傅榴莲千层蛋糕(6寸500g)-适用对象 巧师傅 榴莲千层蛋糕 6寸 500g-马来西亚苏丹王榴莲肉,口感鲜甜软糯_百... 巧师傅榴莲千层蛋糕500g-精选苏丹王榴莲果肉,口感浓郁 巧师傅苏丹王榴莲千层蛋糕-适用对象 阿卡丽和卡特琳娜,哪一个比较好。 英雄联盟阿卡丽和卡特琳纳哪个比较好…为什么? 求大神分析 阿卡丽和卡特琳娜单挑 谁会赢? 河北5+3临床医学有哪些学校 ...块数比20多,比40少,5块5块地数正好数完,2块2块地数也正好数完?_百... ...比20小,它3个3个数或4个4个数都正好数完,这个数是多少..._百度知... 手机怎么连接监控摄像头,并看到监控画面? 已有iphone4s和ipad2,新推出的ipodtouch5还值得购买吗? ...价格大概多少,ipad mini和touch5哪个比较合算呢 ...不怎么响,为什么用电动自行车的电瓶却很响? 黄金矿工紫枫,网上有双人版的黄金矿工小游戏吗?这个游戏有什么其他改进... 交城县特产-交城青柿 没长好的青柿孓可以吃吗? 装电瓶有什么要注意的吗 装电瓶有什么要注意的吗?? 暑期工在哪里打工比较好? ...作业都写完了,不想出去玩,哪里有短期的假期打工啊?急急 暑假想去北戴河打工,练练口语,那要短期的吗?也就是一个月。 ...户口随人到学校 毕业后在南京工作,户口落户南京。如何将户口迁回南通... 去南京与美国人领结婚证,需要准备什么? 请问安徽农村户口和南京农村户口结婚户口怎么迁过来 向同事透露工资有哪些后果呢? ...待遇及薪水情况,我是高四同学,恳求帮助!哪位哥... 在职场上,如果向同事透露了工资会怎样呢? 向同事透露工资好么? 互相打听工资是好还是不好? ...价格便宜很多,1楼的房子到底能不能买?都有哪些优缺点? 写作文时,你是怎么编名言警句的? 曾经的四小花旦慢慢淡出公众视野,如今的四小花旦你还认识几位? 只有十多天要生小孩了,昨晚梦见桃子在树上熟了,我还摘了一个吃, 看到同学们这样关心我,我( )得流下了眼泪。这里填“激动”还是“感动... 高兴的人为什么流下了眼泪 ...夜晚也没有得到保证他在直播室里激动得流下了眼泪 糖尿病足的临床表现及预防措施 小米手环怎么连接不上手机了? ...好有图片。 鬓角和后面短,上面还刘海长的男生发型是什么?? 求一些比较常见的发型名 狠心附图……只求各路大虾们帮我看看我这是啥脸型啊,适合什么发型!谢了... ...头吗?如果不适合的话。那适合发型。我喜欢短发的发型哦。跪谢... ...情节又引人入胜的少女爱情漫画~!!!跪谢,注意是漫画不是动_百度知... 方脸男士的发型 租的房子装的移动宽带,如果搬家了,可以把移动宽带带走吗!就搬到附近... 一架飞机有我国上海于10月1日17时向东飞往美国旧金山(西八区),需飞行... ...1日17时飞往美国旧金山(西八区)需飞行14小时,到达目的地时当地... ...时飞往美国旧金山(西八区)需飞行十四小时,到达目的地时,当地... ...日17时飞往美国旧金山(西八区)需飞行14小时,到达目的地时,当地...