-
You take a bit of time to do this, you can't get it done in a short time, and I'm looking forward to a free master. If you write in C, it shouldn't take much time.
-
Exams are generally done with assembly instructions, and now they will only c.
-
If you don't know how to program, then don't waste time here, it's impossible to find the same program, the program is slightly different, even if it's a letter off, it's a world of difference.
The knowledge you use in these questions includes: the use of timers, 1602 display drives, external interrupts, dynamic scanning of digital tubes, serial communication and these, are the most basic, if you can do these, programming is no problem, if not, others can not help you, the design of each development system is different, one letter is missing, it can not be used at all, even the master makes it up, maybe careless, debugging failure, you also need to change it once or twice. How do you ask people to help you?
This is not something that can be copied by writing **.
-
Summary. Hello dear. We'll be happy to answer for you; Dear, to realize that the single-chip microcomputer continuously sends 0-9 to the PC, use the serial port mode 2 and use the even check, you can follow the steps below:
1.Set the baud rate of serial port 2 to 9600. Since the crystal frequency is, the prescaler value of the baud rate generator can be calculated using the following formula:
Baud rate = crystal frequency divider value 32) divider value = crystal frequency baud rate 32) In this example, the divider value = 9600 32) Select the nearest integer value 36 as the divider value. 2.Set the working mode of serial port 2.
The data sent as needed is 0-9, and even check is adopted, which can be set to 8-bit data bits, even check mode. 3.Write a program that sends data from 0 to 9 in a loop.
You can use a loop, sending one number at a time, with a delay of some time after you finish sending. Here's an example in C**: C include define baudrate 9600void init serial()void serial send(unsigned char data)void delay()void main(){unsigned char i; }
Assuming that the crystal oscillator is, the baud rate is 9600
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
Assuming that the crystal oscillator is, the baud rate is 9600
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
What if the other conditions remain unchanged and become a strange check.
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
So how does that change?
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
Assuming that the crystal oscillator is, the baud rate is 9600
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
Assuming that the crystal oscillator is, the baud rate is 9600
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
Assuming that the crystal oscillator is, the baud rate is 9600
The C51 program wants to realize that the single-chip microcomputer continuously sends 0-9 to the PC, and tries to use the serial port mode 2 to achieve, and adopts even check.
-
and the role of DPTR.
PC: It is a program pointer register, 16 bits, after the single-chip microcomputer is powered on, the PC automatically resets to 0000HThe program is stored in the ROM, and the address of each unit of the ROM is stored in the PC register, and DPTR: is a 16-bit register.
17.What is the function of the program status word? PSW Embedded Microcontroller Technology Learning Community.
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
void key0()
if(p1_0!=1) *If the key 0 is pressed. >>>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
In this case, it depends on sp, ret is equal to (sp) pch, sp-1 sp (sp) pcl, sp-1 sp >>>More
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