请教各位TC23x使用者
是否有使用过手册上提到的ADC converter diagnostic(Signal Path Test Modes)功能
以下是我测试的ADC channel:
ADC Channel: Group1 Channel0
Varef: 5 V
Request source: queued0
Trigger type: SW trigger
Resolution: 12 bit
在converter diagnostic test测试前的conversion结果: 1190
下列是我对GLOBTE与GLOBTF的配置:
GLOBTE.TFEG1 = 1u; /* Enable group1 for diagnostic */
GLOBTF.CDWC = 1; /* Write Control for Conversion Diagnostics */
GLOBTF.CDSEL = 0; /* VAREF */
GLOBTF.CDEN = 1; /* Converter Diagnostics Enable */
GLOBTF.CDGR = 1; /* Group 1 */
GLOBTF.CDCH= 0; /* Channel0*/
我的理解是如果设定GLOBTF.CDSEL = 0(VAREF),且有正确进行converter diagnostic的话,那我trigger之后获得的数值应该要接近4095,但目前测试下来,我使用software trigger之后,得到的数值仍为1190左右,似乎没有开始进行converter diagnostic。
有看到TC3xx系列有提到说可以换成没有接input signal的channel来进行测试,不知道TC23x是否也需要,谢谢
To use the converter diagnostics without a connected input, select a non-existent channel number via the alias
feature (Section 32.7.2). Redirect channel 0 or 1 to channel 24 (not connected)