-
Only R0 and R1 can store data and addresses, @r7 indirect addresses are invalid; movx a,r0 error: incoming external data, must be indirectly addressed movx a,@r0; Movx B, @dptr Error: Only accumulator A can receive data from external data storage, B cannot; movc a, @r0 wrong:
The operand address format does not meet the requirements; It can be changed to MOVC @a+PC; movc a,@dptr error: the operand address format does not meet the requirements, it can be changed to movc @a+dptr; movc b, @a dptr error: b format error, @a dptr format error; xch b,r0 wrong:
Register B cannot exchange data with RN, it can be changed to XCH A, R0; orl 16h,r1 error: the logical operation must use the accumulator a, which can be changed to orl a,r1; addc a,2050h Error: Address 2050h is outside the range of 51 microcontroller chip memory.
2. Choose right or wrong. Satisfied.
-
A: a = 1fh = 0001 1111b
30h) =83h =1000 0011b (anla =03h =0000 0011b even number of 1, p = 0 The owner's answer is correct.
-
1 MCS-51 single-chip microcomputer P0-P4 port is parallel I O port, in addition to the P0 port and P2 port can be used for data input and output, usually also used to build the system's data bus and address bus, in P0-P4 port, P0 is the real two-way port, P1-P3 is the quasi-two-way port.
The stack area of the 2 MCS-5L microcontroller can only be set in the on-chip data storage area (device), and the stack register SP is an 8-bit register.
3 MCS-51 MCU external interrupt request signal has level mode and pulse mode, in the level mode, when the collected effective signal of int0 and int1 is low, the external interrupt is activated.
4 Timer Counter works 3 refers to splitting the timer counter 0 into two separate 8-bit counters. The other timer counter is usually only available as a baud rate generator for the serial port.
The maximum addressing space of 5 mcs-96 microcontroller is 64K, the address range of this space is 0000H-FFFFH, the program entry address of system power-on and reset is 2080H, and the address of chip configuration byte CCB is 2018H.
-
51 The crystal oscillator frequency used in the single-chip microcomputer is 6MHz, and the timing is 5ms, so what is the initial value of the timing counter under mode 0?
Yes: 8192 2500. What are the initial counting values of the timing counters in mode 1?
Yes: 65536 2500. What are the initial counting values of the timing counters in mode 2?
Unable to time 5ms. If you don't understand, don't forget.
-
1 How many interrupt sources does the 51 series microcontroller have, how are they defined? Which of these outage sources can be defined as high-priority outages, and how?
There are 5 interrupt sources, which are external interrupt int0 and external interrupt int1, timer overflow interrupt 0 and timer overflow interrupt 1, and serial interrupt. By setting the interrupt priority register IP, each interrupt source can be defined as a high priority interrupt.
2 Can the entrance address of the interrupt service program corresponding to each interrupt source be arbitrarily set?
The ingress address of each interrupt source has been defined in the interrupt address area and cannot be set arbitrarily.
3 If you want to place an interrupt service program anywhere in the program store, what should I do in the program? Please give an example.
If you want to place the interrupt service program in any area of the program storage area, you need to set a jump command on the corresponding address in the interrupt address area to execute the interrupt service program.
Ignoring the influence of temperature and other factors, the method of measuring voltage by series resistance can be directly adopted. >>>More
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
Learning single-chip microcomputer is very promising and promising. >>>More
Step 1: ANL is Logic and Operation.
That is to say, the first step is to perform and calculate the content in A and 47h in 34h. a=10000011 34h=00110100 >>>More
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