This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

2812AD采样问题

2812的GPTCONA的T1TOADC有两位,分别对应

00:No event starts ADC(不触发AD采样)

01:Setting of underflow interrupt flag starts ADC(计数器到0触发AD)

10:Setting of period interrupt flag starts ADC(计数器到计数周期触发AD)

11:Setting of compare interrupt flag starts ADC(比较触发AD)

括号里是我的理解,不知道是不是对的。

我采用的是计数器up&down模式,计数器从0数到3750,再从3750数到0。如果T1TOADC=10,那么它的计数周期是从0开始到0结束为一个周期还是以3750开始到3750结束为一个周期?如果T1TOADC=11,是否是说计数到3750触发AD?

非常感谢!