[TC3XX] Can we use CH29 to read in EVADC using Alias feature ?

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

cross mob
SivakumarG
Level 1
Level 1
50 sign-ins 25 sign-ins 5 replies posted

Can we use CH29 for EVADC read operation ? 

By configuring Alias register in CH0/CH1

SivakumarG_0-1675421505800.png

 

 

0 Likes
1 Solution
Kunqiao_L
Moderator
Moderator
Moderator
First comment on blog First like given 25 likes received

Hi SivakumarG,

Are you still having issue with this question? As my colleague mentioned, just simply set GxALIAS.ALIAS0/1 to your expected channel number and config the Channel Control Register to save the result to expected place.

For rest of the ADC configuration you could refer to code example:

CCU6_ADC_1_KIT_TC397_TFT 

 

Thanks

View solution in original post

0 Likes
2 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored
The Alias feature allows the user to redirect conversion requests for channels 0 and/or 1 to other channel numbers. Using the alias feature, a conversion request for channel 0 or channel 1 leads to a conversion of the analog input channel “x” instead of channel 0 or channel 1.

To use CH29 (Vddk reference signal) for channel 0 or 1 simply set GxALIAS.ALIAS0/1=29 and the successive conversion result on Ch0/1 will contain the Vddk signal level. Channel configuration and result register assignment are chosen in GxCHCTR0/1 (Channel Control Registers).
0 Likes
Kunqiao_L
Moderator
Moderator
Moderator
First comment on blog First like given 25 likes received

Hi SivakumarG,

Are you still having issue with this question? As my colleague mentioned, just simply set GxALIAS.ALIAS0/1 to your expected channel number and config the Channel Control Register to save the result to expected place.

For rest of the ADC configuration you could refer to code example:

CCU6_ADC_1_KIT_TC397_TFT 

 

Thanks

0 Likes