2775 views|15 replies

1452

Posts

1

Resources
The OP
 

【AT-START-F403A Review】+A/D Waveform Drawing [Copy link]

 
 This post was last edited by jinglixixi on 2020-10-21 23:36

With the display capability of the 2.2' TFT screen, the data obtained by A/D conversion can be intuitively displayed in the form of a waveform. Taking the acquisition of the internal temperature sensor as an example, the temperature curve drawn is shown in the figure below, and the temperature fluctuation value is about 1 degree.

Chip internal temperature change curve

The key procedures to achieve this function are as follows:

 POINT_COLOR=RED;
 BACK_COLOR=WHITE;
 i=0;
 LCD_ShowCharh(20,130,'t',0);
 LCD_ShowCharh(20,120,'=',0);
 LCD_ShowCharh(20,80,'C',0);
 while (1)
 {
 Delay_sec(1);
  t=(uint16_t)(( 1.26 -(double)ADCConvertedValue*ADC_VREF/4096)/(-0.00423) +25);
 LCD_ShowNum(20,100,t,2);
      sj=t*2;
 if(i==0) sp=sj;
       LCD_DrawLine(220-sp, 300-4*(i-1), 220-sj, 300-4*(i));
       sp=sj;
 if(i<72) i++;
 else
 {
 LCD_Clear(WHITE);
 LCD_DrawLine(10, 304, 220, 304);
 LCD_DrawLine(60, 10, 60, 304);
 LCD_DrawLine(100, 10, 100, 304);
 LCD_DrawLine(140, 10, 140, 304);
 LCD_DrawLine(180, 10, 180, 304);
 LCD_DrawLine(220, 10, 220, 304);
 LCD_ShowCharh(20,170,'A',0);
      LCD_ShowCharh(20,162,'/',0);
     LCD_ShowCharh(20,154,'D',0);
 LCD_ShowCharh(20,130,'t',0);
      LCD_ShowCharh(20,120,'=',0);
 LCD_ShowCharh(20,80,'C',0);
 i=0;
 }
       Delay_ms(200);
 }

If you switch the acquisition program to other channels, you can observe the changes in the corresponding analog signal. In addition, you can also observe the signals of multiple channels synchronously.

This post is from Domestic Chip Exchange

Latest reply

Haha, I am just talking about ADC acquisition. If you add drawing, the frequency will definitely be low.   Details Published on 2020-10-26 11:11
 
 

1w

Posts

204

Resources
2
 

This is interesting

This post is from Domestic Chip Exchange
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

Thanks for the encouragement!!!  Details Published on 2020-10-22 09:07
Personal signature

玩板看这里:

http://en.eeworld.com/bbs/elecplay.html

EEWorld测评频道众多好板等你来玩,还可以来频道许愿树许愿说说你想要玩的板子,我们都在努力为大家实现!

 
 
 

1452

Posts

1

Resources
3
 

Thanks for the encouragement!!!

This post is from Domestic Chip Exchange
 
 
 

1942

Posts

2

Resources
4
 

This drawing is pretty good. What is the ADC acquisition frequency?

This post is from Domestic Chip Exchange

Comments

Without professional tools such as oscilloscopes, the theoretical values are as follows: [attachimg]507010[/attachimg]   Details Published on 2020-10-22 14:34
 
 
 

1452

Posts

1

Resources
5
 
w494143467 posted on 2020-10-22 12:45 This drawing is pretty good. What is the ADC acquisition frequency?

Without professional tools such as oscilloscopes, the theoretical values are as follows:

This post is from Domestic Chip Exchange
 
 
 

1942

Posts

2

Resources
6
 

0.5us? 200MHz? That ADC has pretty good performance.

This post is from Domestic Chip Exchange

Comments

Given the information, it probably won't be too different.  Details Published on 2020-10-26 10:27
Given the information, it probably won't be too different.  Details Published on 2020-10-22 16:44
Given the information, it probably won't be too different.  Details Published on 2020-10-22 16:41
 
 
 

1452

Posts

1

Resources
7
 
w494143467 posted on 2020-10-22 15:02 0.5us? 200MHz? That ADC has good performance.

Given the information, it probably won't be too different.

This post is from Domestic Chip Exchange
 
 
 

1452

Posts

1

Resources
8
 
w494143467 posted on 2020-10-22 15:02 0.5us? 200MHz? That ADC has good performance.

About 2MHz

This post is from Domestic Chip Exchange

Comments

There should be some other calculations, but it is also very good. 2M can meet normal needs  Details Published on 2020-10-22 16:56
 
 
 

1942

Posts

2

Resources
9
 

There should be some other calculations, but it is also very good. 2M can meet normal needs

This post is from Domestic Chip Exchange
 
 
 

1452

Posts

1

Resources
10
 

yes!

This post is from Domestic Chip Exchange
 
 
 

7422

Posts

2

Resources
11
 

1° This range is a bit large.

This post is from Domestic Chip Exchange

Comments

It can also be understood that after all, in the internal environment, the unevenness of the instantaneous work is ups and downs. I have seen the energy consumption waveform of SLSTK3301A, which is beautiful and as standard as the pulse waveform.  Details Published on 2020-10-24 08:09
Personal signature

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

 
 
 

1452

Posts

1

Resources
12
 
freebsder posted on 2020-10-23 22:35 1° This range is a bit large.

It can also be understood that after all, in the internal environment, the unevenness of the instantaneous work is ups and downs. I have seen the energy consumption waveform of SLSTK3301A, which is beautiful and as standard as the pulse waveform.

This post is from Domestic Chip Exchange
 
 
 

2549

Posts

0

Resources
13
 
w494143467 posted on 2020-10-22 15:02 0.5us? 200MHz? That ADC has good performance.

200MHz......Your calculation is correct . The program processing logic should not even reach 100K effect when drawing.

This post is from Domestic Chip Exchange

Comments

Haha, I am just talking about ADC acquisition. If you add drawing, the frequency will definitely be low.  Details Published on 2020-10-26 11:11
 
 
 

2549

Posts

0

Resources
14
 

Good idea. This is the first time I have seen such a way of playing with the internal temperature sensor . The temperature difference is 1 degree. I think it should be due to the conversion.

This post is from Domestic Chip Exchange
 
 
 

1942

Posts

2

Resources
15
 
Digital Leaf published on 2020-10-26 10:27 200MHz......You calculated that, this program processes the logic, and the actual drawing should not reach the effect of 100K

Haha, I am just talking about ADC acquisition. If you add drawing, the frequency will definitely be low.

This post is from Domestic Chip Exchange
 
 
 

1452

Posts

1

Resources
16
 

This is the internal temperature collected using the serial port

This post is from Domestic Chip Exchange
 
 
 

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