惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - Neo0820

把阿里云效制品仓库当成Maven私仓推送私包 CentOS 空环境安装容器 容器docker系列 docker容器 从windows迁移到centos docker 容器container 镜像image 删除常用备忘 dbsyncer注意事项 博文阅读密码验证 - 博客园 pingcode 代码关联规则 博文阅读密码验证 - 博客园 lilishop 锁 威纶通屏幕(HMI)数据地址格式的讲解 西门子S7-200的VB、VW和VD 西门子plc s7-200 中I、Q、M、SM、T、C、V、S、L分别指什么? 博文阅读密码验证 - 博客园 C语言各数据类型所占字节数 威纶通HMI常见数据格式 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 威纶通HMI系列
字节地址和位地址有什么区别?
Neo0820 · 2022-12-20 · via 博客园 - Neo0820

区别:

1、存储

单片机中的存储器通常以字节(8bit)为单位来进行组织,即每一个字节有一个地址,通过“字节”地址可以访问到存储器中的任何一个字节,这是最常见的形式。问题当中以“sfr”开头的,就是在定义字节地址,相当于给指定的地址又起了一个别名,以后可以通过这个别名访问字节存储单元。

2、操作对象

针对开关控制之类的应用MCS-51单片机内部集成了一个一位的处理器,这个处理器的操作对象是单个的比特位(并非字节),为了对位的情况进行存储,在原字节形式的存储器上又叠加了一个位存储区,针对每一个比特位给定一个地址,这样就构成了位地址空间。

3、存储单元地址

由于是叠加设计的位存储区,形式上就表现为:存储器中的某些存储单元即可以通过字节地址访问,也可以通过位地址访问(具体是访问该字节中的某个比特位)。

在MCS-51单片机中被叠加设计的这些字节存储单元的字节地址有一个点,就是:字节地址的最低位要么是十六进制的0,要么是十六进制的8,而且位地址当中的00H对应的是字节20H中的D0位。