牛卧堂MCU技术交流

标题: [Nano130] How to Use ADC ACMP [打印本页]

作者: admin    时间: 2022-7-22 11:00
标题: [Nano130] How to Use ADC ACMP
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






欢迎光临 牛卧堂MCU技术交流 (http://www.nuvoton-mcu.com/) Powered by Discuz! X3.2