This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

f28335

Q.1.The  maximum value is 4095.But I am not getting 4095 even though I am rotating the potentiometer/variable resistor  to its maximum level.I am attaching the screenshot with the values I got

Q.2.I am confused in some part of the code so I am mentioning one by one

i)if we are using Inline shift so why we have to use no shift and post shift?

ii)What is the use of GPIO34 pin?

iii) AdcRegs.ADCCHSELSEQ1.all = 0x00;  In this statement will it initialize all the the channels of A1?

iv) for (i=0; i<(BUF_SIZE/16); i++)

Why we have to divide BUF_SIZE/16?

v)What is the need of this two statements?

while (AdcRegs.ADCST.bit.INT_SEQ1== 0){}
GpioDataRegs.GPBSET.bit.GPIO34 = 1; // Set GPIO34 for monitoring -optional