| |

VerySource

 Forgot password?
 Register
Search
View: 953|Reply: 4

[SOLVED] serial communication problem

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-9 02:30:01
| Show all posts |Read mode
I want to use a PC to control the 7-segment display. What should I do first?
Thank you ~~
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-15 19:15:01
| Show all posts
Can the single-chip microcomputer be connected to the PC serial port, and the single-chip microcomputer controls the 7-segment LED display,
First use the MCU to control the LED display, you can use assembly or C51 (referring to the 51 series commonly used),
Then use BCB to write each serial port to control the MCU.
Reply

Use magic Report

0

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-8-15 19:30:01
| Show all posts
Of course, you should design the hardware first. As mentioned above, 51 is the most commonly used and simplest. It has a 232 port, as long as a level conversion chip (remember to use max232) is enough, and 51 controls the LED circuit many In the textbook
As for the software, BCB has many communication controls, the most used is mscomm (but I don't use it, that is too complicated, I use VARIAN ASYNC32 COMPONENT, an almost old communication control with source code, very practical, I have used it to do a lot Communication project with single chip microcomputer), as for the chip machine, there are also many development tools, I use keil c51
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-15 20:00:01
| Show all posts
The 7-segment display is very simple. When writing the program, just pay attention to whether the LED is a common cathode or a common anode.
Hehe, this thing has been used for a long time. Now I basically use dot matrix here.
If you are just using a serial port and require less resources, if an 8-bit machine is enough, you can consider 51. AVR can also be used.
The specific process is to output the schematic diagram on the hardware-PCB diagram-output board-write program.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-19 20:00:01
| Show all posts
If you just want to control 7 segments with a PC, you can use the parallel port directly.
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