Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hi, I have just started programming on TMS570ls043 launchpad . I am very new to these controller . also i have seen the videos and how to use Halcogen software to program TMS570 .
I have written simple program for ADC and have properly configured ADC for channel 9 which is connected to light sensor and software trigger .
Following is my code , its not working
while(1)
{
adcStartConversion(adcREG1, 2U);
while((adcIsConversionComplete(adcREG1, 2U))==0);
adcGetData(adcREG1, 2U, &adcdata);
value = (uint16)ptr->value;
delayms(500);
}
please help me to move forward.
Thanks .