公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

AURIX ADC Converter Diagnostic使用方法

AURIX ADC Converter Diagnostic使用方法

abcmo123
Level 1
Level 1
25 sign-ins 10 questions asked 5 questions asked

请教各位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)

0 点赞
540 次查看