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

cross mob
koala
Level 4
Level 4
10 likes given 50 replies posted 5 likes given

Using iLLD API to program TC357, how to configure its two ADC kernels to simultaneously and continuously sample following two channels:

  • AN2 (EVADC_G0CH2)
  • AN8 (EVADC_G1CH0)
0 Likes
1 Solution
Kunqiao_L
Moderator
Moderator
Moderator
First comment on blog First like given 25 likes received

Hi Koala,

Please refer some discussion at here: Can-we-do-Parallel-conversion-together-for-primary-and-secondary-cluster/td-p/401732 

synchronized conversions need some groups with same channel, but you could use alias feature to achieve with different channel.

The second option use external source to trigger both two ADC kernel could also work, but it might have some jitter.

Thanks

View solution in original post

4 Replies
Meet_T
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi @koala ,

 

Kindly refer to ADC_Queued_Scan_1_KIT_TC375_LK code example for this. This example is for tc375 but you can refer to this to get an idea of the program flow and which iLLDs can be used to implement your use case. You can also refer to the related presentation . I hope this example gives you a basic idea to get started, please let me know if any further help is required.

0 Likes
koala
Level 4
Level 4
10 likes given 50 replies posted 5 likes given

I went through the github examples and the presentations before posting this question. The examples are so simple that they do not help much. 

Is it even possible to sample AN2 (EVADC_G0CH2) and AN8 (EVADC_G1CH0) in parallel? 

  • User manual mentions "Synchronized kernels convert the same channel that is requested by the master." and "The synchronization master controls the slave(s) by providing the control information GxARBCFG (x=0-11).ANONS (see Figure 272) and the requested channel number." So it seems AN0 and AN8 can be sampled simultaneously, but not AN2 and AN8, right?
  • However, the user manual also mentions "synchronized conversions request the same channel number, defined by the master. Using the alias feature, analog signals from different input channels can be converted." Would this "alias feature" be the best solution? would this still achieve the maximum 2.6MHz sampling rate?
  • Would it be better if I just ignore the "synchronized conversions" feature and let two ADC kernel work independently but configure them to have same configuration and especially triggered by the same source. Would this in fact achieve the same result as "synchronized conversions" where both kernels take sample at exactly the same time instance. 

 

 

 

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

Hi Koala,

Please refer some discussion at here: Can-we-do-Parallel-conversion-together-for-primary-and-secondary-cluster/td-p/401732 

synchronized conversions need some groups with same channel, but you could use alias feature to achieve with different channel.

The second option use external source to trigger both two ADC kernel could also work, but it might have some jitter.

Thanks

koala
Level 4
Level 4
10 likes given 50 replies posted 5 likes given

Any updates?

0 Likes