Application: Use ADC compare mode and use TestOScope to plot ADC data
BSP Version: Nano100B Series BSP CMSIS v3.03.000
Hardware: NuTiny-EVB-Nano130-LQFP128 v1.1
Sometimes we use the serial port to send the ADC data to the PC for analysis. TestOScope is the computer software, which will capture the serial port data to the user through the image, which is convenient for observing the trend of data changes.
We can also compare the value of the ADC with the built-in ACMP. When the comparison condition is met (such as the value of the ADC is greater than or equal to 2048 and meets 10
times), interrupt processing can be generated, such as buzzer or LED flashing.
You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1212182554
|