Hi
I have a small question
To use the ADC on the TMs570LS1224 can I just use this lines?
adcInit(); /* start adc conversion */ adcStartConversion(adcREG1,adcGROUP1); /* ... wait and read the conversion count */ while((adcIsConversionComplete(adcREG1,adcGROUP1))==0); ch_count = adcGetData(adcREG1, adcGROUP1,&adc_data[0]); ch_count = ch_count; /* conversion results : */ /* adc_data[0] -> should have conversions for Group1 channel1 */ /* adc_data[1] -> should have conversions for Group1 channel2 */ id = adc_data[0].id; value = adc_data[0].value;
Second
On Halcogen I need to select the channels I want to work with, I see there is an option to start the conversion once an event has occured. But I only need to start the conversion when I tell it to do.
This lines does that?
adcStartConversion(adcREG1,adcGROUP1);
I have seen the example for that but... amm Im not prety sure about some thing, because it uses a gio to start the conversion...
So... can I start it without an event??
and the last
how can I tell it to read the singal on pinX?? and retrieve that data??
thanks!