| |

VerySource

 Forgot password?
 Register
Search
Author: wjwzyq2003

A simple microcontroller program, everyone help

[Copy link]

0

Threads

2

Posts

0.00

Credits

Newbie

Rank: 1

Credits
0.00

 China

Post time: 2020-6-10 17:54:44
| Show all posts
The data type you sent is not correct, you need to send hexadecimal. What you are sending now is the ASCLL code. ASCLL code 1, converted to hexadecimal is 0X31, that is, you say 0011 0001, the letter A is 0X41, which is 0100 0001
Reply

Use magic Report

0

Threads

2

Posts

0.00

Credits

Newbie

Rank: 1

Credits
0.00

 China

Post time: 2020-6-10 17:55:38
| Show all posts
And your crystal oscillator must be 11.0592MHZ, otherwise it will not be allowed
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-19 14:00:02
| Show all posts
The light-emitting diode you are talking about, is it an 8-segment LED, or does one pin correspond to a small light bulb? If it is led, you can't use p2 directly, it must be displayed according to the digital code. If one pin corresponds to a small light bulb, I can't test it. I have a 4-digit 8-segment led display calling subroutine. I am also debugging the serial port. It was OK to send a number, but now I want to make a protocol, and send a lot of data, there is a problem. The new board has not been adjusted yet.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-30 13:30:02
| Show all posts
It should be the crystal oscillator
I used the C8051F internal crystal oscillator with 0.3% error and the transceiver was abnormal.
Change to an 11.0592M and it's suddenly clear
Try it too
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list