1324 views|2 replies

8

Posts

0

Resources
The OP
 

Nuvoton N76E003 [Copy link]

How to deal with the occasional failure to change the ADC channel?

This post is from 51mcu

Latest reply

I use this microcontroller quite often, and I haven't encountered the switching failure you encountered (I also switch several AD channels continuously): This MCU uses VCC as the reference voltage. If you want to do AD, first of all, VCC must be accurate; secondly, you need to initialize the IO port and AINDIDS register (especially the AINDIDS register, don't forget it), and finally start the acquisition, wait for the acquisition to end, and read the conversion result. [attach]644659[/attach]   Details Published on 2022-9-26 20:05
 

2870

Posts

4

Resources
2
 

I suggest you try another solution. Basically, the ADC of their MCUs are not very good. Both 51 and Mx are the same. I have fallen into this trap before.

This post is from 51mcu
 
 
 

3

Posts

0

Resources
3
 

I use this microcontroller quite often, and I haven't encountered the switching failure you encountered (I also switch several AD channels continuously):

This MCU uses VCC as the reference voltage. If you want to do AD, first of all, VCC must be accurate; secondly, you need to initialize the IO port and AINDIDS register (especially the AINDIDS register, don't forget it), and finally start the acquisition, wait for the acquisition to end, and read the conversion result.

This post is from 51mcu
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list