Embedded Blue Bridge Cup Another God BUG Keil4 ADC simulation value can not come

Today I met another god’s BUG. I
originally wanted to verify the correctness through simulation after configuring the ADC today. The
result is absolutely nothing, no matter how we check the value of this ADC, the value of this ADC is not moving,
Insert picture description here
so I was ruthlessly wasted an hour and
finally decided to use it. Printf prints the value of this ADC. The
result is absolutely impossible. It
Insert picture description here
can be printed out.
It seems that it is a bug of keil4.
I never realized that the simulation is not
a problem. Now it seems that it may sometimes be a simulation problem.

Guess you like

Origin blog.csdn.net/m0_46179894/article/details/108195221