Part Number: TMS320F280039C
Other Parts Discussed in Thread: SYSCONFIG
Hi,
I am using the board "TMDSCNCD 280039C" with Docking station.
I was reading Analog using example "adc_ex1_soc_software". In the example the four input pin reading OK from A0,A1,C2, C3.
I am not able to read different pin like A2,A3.. etc.
Can you please provide which part need to change exactly to read any analog pin.
///////////////////////////////////My code////////////////////
while(1)
{
//
// Convert, wait for completion, and store results
//
ADC_forceMultipleSOC(myADC0_BASE, (ADC_FORCE_SOC0|ADC_FORCE_SOC1|ADC_FORCE_SOC2|ADC_FORCE_SOC3));
//
// Wait for ADCA to complete, then acknowledge flag
//
while(ADC_getInterruptStatus(myADC0_BASE, ADC_INT_NUMBER1) == false)
{
}
ADC_clearInterruptStatus(myADC0_BASE, ADC_INT_NUMBER1);
// ADC_forceMultipleSOC(myADC1_BASE, (ADC_FORCE_SOC0 | ADC_FORCE_SOC1));
// //
// // Wait for ADCC to complete, then acknowledge flag
// //
// while(ADC_getInterruptStatus(myADC1_BASE, ADC_INT_NUMBER1) == false)
// {
// }
// ADC_clearInterruptStatus(myADC1_BASE, ADC_INT_NUMBER1);
//
// Store results
//
myADC0Result0 = ADC_readResult(ADCARESULT_BASE, ADC_SOC_NUMBER3);
// myADC0Result1 = ADC_readResult(ADCARESULT_BASE, ADC_SOC_NUMBER1);
// myADC1Result0 = ADC_readResult(ADCCRESULT_BASE, ADC_SOC_NUMBER0);
// myADC1Result1 = ADC_readResult(ADCCRESULT_BASE, ADC_SOC_NUMBER1);
//
// Software breakpoint. At this point, conversion results are stored in
// myADC0Result0, myADC0Result1, myADC1Result0, and myADC1Result1.
//
// Hit run again to get updated conversions.
//
ESTOP0;
}
///////////////////////////////////////////////////////////////
Regards-
sudip