2475 views|3 replies

1942

Posts

2

Resources
The OP
 

[MM32 eMiniBoard Review] Part 5: ADC acquisition and host computer oscilloscope display [Copy link]

 

1. Introduction

Originally, I wanted to realize the acquisition of two ADC channels and display them on the host computer at the same time, but the acquisition of the two ADC channels was not completed, so this time the host computer oscilloscope showed only one ADC channel. The dual-channel oscilloscope display will wait until next time. This time, let’s take a look at the single-channel ADC oscilloscope.

2. Lower computer program

The lower computer program is very simple. Just use the ADC routine and modify the content to be sent. The main program is shown in Figure 1.

3. Host computer program

The host computer program is rather complicated and took a long time to write. The first thing is to configure some parameters of the serial port. I will simply post the configuration of the serial port parameters, as shown in Figure 2.

Then open the corresponding serial port. After opening the serial port, the data of the lower computer will be sent to the upper computer. The lower computer sends data once every 500ms.

Because the QWT space is used directly, the image display is relatively simple, but the control display is more troublesome. It is necessary to configure the horizontal and vertical coordinates and dynamically move the X-axis. These processes are more troublesome.

Let's take a look at the final effect. The sliding resistor on the development board is cyclic, so it will go from one extreme value to another in one rotation. The picture here is not demonstrated, but you can try it yourself.

4. Summary

The main content of this article is on the host computer. The reason why we need to write this host computer is mainly to be able to display data without converting the data into charts through Excel.

This post is from Domestic Chip Exchange

Latest reply

The functions of a serial port oscilloscope are too basic, so take some time to learn about professional debugging tools.   Details Published on 2020-11-15 22:27
 
 

7462

Posts

2

Resources
2
 

Try uc-probe (free) or freemaster. I am using the latter for product debugging. . .

This post is from Domestic Chip Exchange

Comments

Are these two also serial port oscilloscopes?  Details Published on 2020-11-15 10:55
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

1942

Posts

2

Resources
3
 
freebsder posted on 2020-11-14 22:59 Try uc-probe (free) or freemaster. I am using the latter for product debugging. . .

Are these two also serial port oscilloscopes?

This post is from Domestic Chip Exchange

Comments

The functions of a serial port oscilloscope are too basic, so take some time to learn about professional debugging tools.  Details Published on 2020-11-15 22:27
 
 
 

7462

Posts

2

Resources
4
 
w494143467 posted on 2020-11-15 10:55 Are these two also serial port oscilloscopes?

The functions of a serial port oscilloscope are too basic, so take some time to learn about professional debugging tools.

This post is from Domestic Chip Exchange
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list