[Embedded system experiment] 9 ADC experiment

1 Development environment

  • STM32F407ZGT6
  • Wedge uVision 5

2 Experiment content

  • Draw the voltage waveform on the LCD of the development board.
  • note:
  1. The waveform reflects the fluctuation of the voltage, the ratio can be determined by yourself, but the fluctuation looks more obvious;
  2. At the beginning, the waveform is extended to the right, and when the screen is full, the graph should be scrolled.

3 Experimental code

[main.c]

#define len 20
#define minus 30

u16 buffer[len];
st

Guess you like

Origin blog.csdn.net/qq_44714521/article/details/108705468