How does the 51 microcontroller distinguish between bit address and byte address?

Publisher:BlissfulSunriseLatest update time:2013-01-30 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In the 51 single-chip microcomputer, some storage areas can be bit-addressed or byte-addressed.

So, for example, does the address 01H represent bits or bytes?

How to distinguish whether the address is a bit address or a byte address?

Netizen (Three Stones):

The address in a bit instruction is a bit address, and the address in a byte operation instruction is a byte address. For example:

SETB 01H; 01H here is the bit address

MOV 01H, #00H; 01H here is the byte address

If it is not in the instruction, it is impossible to tell whether a number xx is a byte or a bit address.

Reference address:How does the 51 microcontroller distinguish between bit address and byte address?

Previous article:Summary of addressing methods of MCS-51 microcontroller
Next article:Detailed explanation of 51 MCU assembly delay program algorithm

Recommended ReadingLatest update time:2024-11-17 00:05

51 single chip microcomputer lights up LED dot matrix
Common cathode two-color dot matrix Led matrix is ​​a matrix light composed of many LEDs put together. The principle is very simple. If we want to light up the green light on the upper left of the picture, then pin 5 is connected to a high level and pin 24 is connected to a low level, then the green LED will light u
[Microcontroller]
51 single chip microcomputer lights up LED dot matrix
Application of 51 single chip microcomputer timer
Use the 51 single-chip microcomputer timer to generate 8 square waves of different frequencies in a period; timer 1 controls the frequency time, that is, each waveform is 4s; timer 0 controls the frequency of the waveform; #include reg52.h #define uint unsigned int #define uchar unsigned char  sbit p23=P2^3; uint
[Microcontroller]
51 single chip microcomputer-infrared remote control
For the infrared remote control's sending and receiving devices as well as some principles about carrier waves, you can refer to Chapter 16 of the document "Hand-in-hand Teaching You to Learn 51 Single-Chip Microcomputers". Here, the author only briefly explains how to use this module and explains the implementation o
[Microcontroller]
51 single chip microcomputer-infrared remote control
51 MCU Preparatory Knowledge
1. The concept of single chip microcomputer: A microprocessor, memory, and I/O interface circuit are integrated on an integrated circuit chip to form a single-chip microcomputer, namely a single-chip microcomputer. 2. The purpose of single chip microcomputer: Industrial automation: data acquisition, m
[Microcontroller]
Application of AT89C2051 MCU in wireless doorbell alarm
Doorbells were rarely heard in ancient China. Rich families would install decorative door knockers on their front doors. People who knocked at the door could use the door knockers to hit the door nails under the knockers to make a loud noise, which served the same purpose as the modern "doorbell". Nowadays, wir
[Microcontroller]
Application of AT89C2051 MCU in wireless doorbell alarm
C51 MCU timer simulates single-channel output PWM
Preface This blog post is developed based on STC89C52RC and Keil5 C51 environment; If there are any deficiencies, please give me more advice; Things Needed Timer 0; Pin P1.0; code show as below: #include STC89C5xRC.H #define ENABLE 1 #define DISENABLE 0 typedef unsigned char uchar8; sbit P1_0 = P1^0; bit Flag
[Microcontroller]
51 MCU review: 8*8 LED dot matrix
There are two types, one is low voltage for the columns and high voltage for the rows. We can connect each column to low voltage in turn, and they will light up in turn. Then use the voltage of the row to control the lighting. If the voltage of one row is low, the LED lights of that row will not light up. The second
[Microcontroller]
The realization method of simulating serial communication by I/O port of 89C51 single chip microcomputer
The commonly used MCS51 and P IC series microcontrollers usually have only one (or no) UART asynchronous serial communication interface. If multiple serial interfaces are required in the application system (for example, in a multi-machine communication system, the host needs to communicate wi
[Microcontroller]
The realization method of simulating serial communication by I/O port of 89C51 single chip microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号