Ask about the MCU

Updated on technology 2024-02-09
6 answers
  1. Anonymous users2024-02-05

    In this case, it depends on sp, ret is equal to (sp) pch, sp-1 sp (sp) pcl, sp-1 sp

    It is to look at the stack, when using lcall or acall, the microcontroller first puts the PC value into the stack, and then jumps to the subroutine, and RET is to send the value in the stack back to the PC. If there is no lcall or acall followed by ret, the program will run away, and what value is in the sp, it will jump to the address of what value, usually it will crash, or it may go back to the beginning and run again.

  2. Anonymous users2024-02-04

    Usually the next sentence after the invocation statement....

  3. Anonymous users2024-02-03

    Haven't thought about it yet! I'm going to try it tomorrow.

  4. Anonymous users2024-02-02

    This extended address can only be accessed with a fixed address line, and P2 can only be operated separately by using port P2, instead of directly accessing the address.

  5. Anonymous users2024-02-01

    The affected is bit8 in the 16-bit address, the affected is bit9 in the 16-bit address, and the address range is fdf8h fdffh(1111 1101 1111 1000 1111 1101 1111 1111) ......And so on.

  6. Anonymous users2024-01-31

    Summary. The single-chip microcomputer uses the Harvard structure. Q&A:

    First, the address space of 64KB program memory and 64KB off-chip data memory is 0000h-0ffffh, and the address space is overlapping, how can they be distinguished? MCS-51 microcontroller reads and writes to off-chip data memory and program memory through different signals, the read and write of off-chip data memory are controlled by RD and WR signals, and the read of program memory is controlled by PSEN signals and realized by using different program instructions.

    The single-chip microcomputer uses the Harvard structure. Q&A: First, the address space of 64KB program memory and 64KB off-chip data memory is 0000h-0ffffh, and the address space is overlapping, how can they be distinguished?

    MCS-51 microcontroller reads and writes to off-chip data memory and program memory through different signals, the read and write of off-chip data memory are controlled by RD and WR signals, and the read of program memory is controlled by PSEN signals and realized by using different program instructions.

    The problem of single-chip microcomputer, please help to do it.

    First, the address space of 64KB program memory and 64KB off-chip data memory is 0000h-0ffffh, and the address space is overlapping, how can they be distinguished? MCS-51 microcontroller reads and writes to off-chip data memory and program memory through different signals, the read and write of off-chip data memory are controlled by RD and WR signals, and the read of program memory is controlled by PSEN signals and realized by using different program instructions.

Related questions
12 answers2024-02-09

A: The bit-addressing area is located between 20F and 2Fh in the data memory. The registers in this interval can be bit-addressed, and they can be bit-manipulated and bit-arithmetic. >>>More

8 answers2024-02-09

void key0()

if(p1_0!=1) *If the key 0 is pressed. >>>More

7 answers2024-02-09

It's too urgent now, you haven't learned the principle of microcomputer yet! >>>More

16 answers2024-02-09

Isn't this thing just a digital tube displaying 16 digits? Prompt you 16 times to get there, let go after you think to press the stop button. If so, the procedure is available for reference: >>>More

6 answers2024-02-09

Crash, it may be that the on-site interference is too severe. Anyway, even have abandoned chips that don't have internal program memory and EEPROM. The reason is that it is often not a program problem, but a board and PCB design problem. >>>More