Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Help ADC sampling rate eZdsp TMS320F28335

$
0
0

I`m working with eZdsp TMS320F28335 and I set the ADC module like in the next way:

EALLOW;
SysCtrlRegs.HISPCP.all = 0x2;
EDIS;

InitAdc(); // For this example, init the ADC

AdcRegs.ADCMAXCONV.all=0x0002;
AdcRegs.ADCTRL1.bit.ACQ_PS = 0xf;
AdcRegs.ADCTRL3.bit.ADCCLKPS = 0x1;
AdcRegs.ADCTRL1.bit.SEQ_CASC = 1; // 1 Cascaded mode
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0x0;
AdcRegs.ADCCHSELSEQ1.bit.CONV01 = 0x1;
AdcRegs.ADCCHSELSEQ1.bit.CONV02 = 0x2;

AdcRegs.ADCTRL1.bit.CONT_RUN = 1; // Setup continuous run

AdcRegs.ADCTRL2.all = 0x2000;

My question is...  How is "the sampling rate" calculated?

I want a sampling rate of 15Khz for my aplication, so how do I have to setup the ADC Module if also i want a SYSCLOCK of 150MHz?

 I hope,  you can help me. 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>