MCU translation, MCU program translation into Chinese

Updated on technology 2024-04-05
2 answers
  1. Anonymous users2024-02-07

    Summary. Please tell me about the specific question, dear.

    Please tell me about the specific question, dear.

    Translate a program of the microcontroller into Chinese.

    Well, the program will send it, dear.

    Okay, dear, it may take some time.

    How much time the teacher still needs.

    Oh, dear.

    org 0000h (means to put the next instruction in the storage space ROM that starts with the address 0000h, that is, to store the sjmp start instruction in the simple date 0000h,0001h, the length of sjmp start is 2 bytes, pay attention to the transfer range of sjmp in use.) Bi Vertical.

    org is a pseudo instruction,The single-chip microcomputer does not run,It does not produce machine change code,Xiao Cong is for the assembly and also Qiao Annihilation Sakura is to translate the assembly language into the machine code service。 It tells the assembler which storage space to place the next instruction in. There will be this sentence at the beginning of the assembler, because after the single-chip microcomputer is reset, PC=0000h, that is, after the single-chip microcomputer is reset.

    The program is executed from 0000h, because the 0003h of the single-chip microcomputer starts from 0003h to 002bh of the hungry wheel is the interrupt entry address, so we save the rotten letter storage jump instruction at 0000h 0002h, and jump directly to the main program. )

    sjmp start (the program search jumps to start, the transfer range of sjmp is +127b -128b of the current pc) org 0030h (the start of the celery calendar program is stored in the storage space starting with 0030h).

  2. Anonymous users2024-02-06

    Summary. MCU encoding and translation software is a software used to parse and translate the assembly language of MCU. It can translate assembly language into the corresponding machine language for microcontroller execution.

    SCM encoding and translation software can help users realize the rapid conversion of assembly language to machine language, which can greatly improve the efficiency of programming. In addition, the single-chip microcomputer encoding and translation software also supports **debugging, **debugging, and viewing the memory of the program, which can improve work efficiency. The single-chip microcomputer encoding and translation software also supports a variety of encoding conversions, such as:

    HEX, COFF, Bin, Intel HEX, S19, etc., can realize the translation, debugging, programming and other functions of single-chip microcomputer narrative language in various formats.

    I need to help me translate.

    The encoding of the microcontroller.

    MCU encoding and translation software is a software used to parse and translate the assembly language of MCU. It can translate assembly language into the corresponding machine language for monolithic digging. SCM encoding and translation software can help users realize the rapid conversion of assembly language to machine language, which can greatly improve the efficiency of programming.

    In addition, the single-chip microcomputer coding and translation software also supports **debugging, **debugging, and judging the front test, as well as viewing the memory of the program, which can improve work efficiency. The SCM encoding and translation software also supports a variety of encoding conversions, such as: HEX, COFF, Bin, Intel HEX, S19, etc., which can realize the translation, debugging, programming and other functions of the MCU narrative language in various formats.

    writeonebyte(0xcc);writeonebyte(0x44);init_ds18b20();writeonebyte(0xcc);writeonebyte(0xbe);temp_value[0] =readonebyte();temp_value[1] =readonebyte();ds18b20_is_ok=1;}

    Translate it for me.

    This segment** may be used to initialize the DS18B20 sensor to collect temperature values. First, two bytes (0xcc, 0x44) are passed as instructions. Then initialize ds18b20 (init ds18b20), send two more bytes to ds18b20 to read the temperature (0xcc, 0xbe), and then read two bytes of the temperature value (temp valule[0], temp valule[1]).

    Finally, if (ds18b20 is ok) indicates that ds18b20 is initialized. The DS18B20 sensor is a commonly used single-row 1-wire temperature sensor with very good accuracy ( good resolution (9 bits) and ultra-low power consumption. The DS18B20 measures the ambient temperature by changing the temperature value to a digital one, and can be used in a variety of thermostatic, monitoring and control systems.

Related questions
4 answers2024-04-05

You use a P1 port to control the dynamic scanning of 8 digital tubes, and the dynamic scanning display of digital tubes needs to be blanked. >>>More

8 answers2024-04-05

void key0()

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

10 answers2024-04-05

Ignoring the influence of temperature and other factors, the method of measuring voltage by series resistance can be directly adopted. >>>More

16 answers2024-04-05

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

4 answers2024-04-05

Learning single-chip microcomputer is very promising and promising. >>>More