I hope to know where ADC results are saved

cancel
Showing results for 
Search instead for 
Did you mean: 

I hope to know where ADC results are saved

172 Views
rlatndus3113
Contributor I

I see source code  "MTRCKTSPS5744P_SW"

but, i don't know what variable ADC result data is saved.

When i was watching ADC Example(served from S32 Design Studio),

ADc result data was saved at "ADC_1.CDR[6].B.CDATA"(See below Picture)

20190131_223851.jpg

please answer me.

Thank you.

0 Kudos
2 Replies

103 Views
petervlna
NXP Employee
NXP Employee

Hi,

This is quite complex for understanding without deeper knowledge.

Data in this PMSM system are measured by ADC which is operating in CTU mode.

Measured data from ADC result register are stored in CTU FIFO buffer automatically by HW on conversion done valid flag.

From CTU FIFO data are processed to MCLib (yellow blocks).

pastedImage_1.png

So in short, you can find you data in CTU FIFO.

regards,

Peter

0 Kudos

103 Views
rlatndus3113
Contributor I

Thank you for your answer.

 

But, I still have question.

Although I was searching "CTU FIFO Buffer(FIFO Right Aligned Data Register)" as your talk, I can't find it in a source code.

 

I have plan to erase All code except Register initiation. Because I will rewrite a code in my style. 

So, I have to know how i read and use ADC result from CTU FIFO.

0 Kudos