Hi
I'm configuring the ADC to convert some data from a pressure and I need to read the data every 378ms. I have some question on this topic.
first:
what is that cycle time?? What does it do?? is the sampling time for the ADC?? (I changed from 800 to 100)
second:
Here I have the configuration for Group1. Im going to use those pins.
Here I have 4 questions:
a) The FIFO size. If im going to only use those 6 channels, should I just write 6 in there?? because thats what the message says when putting the mouse in there (BTW it has a typo)
b) What could work better for me? Use a continuous conversion and read the data every timer compare? or just call the START_CONVERSION function from timer compare and wait for the data to be ready on GROUP1 interrupt and STOP_CONVERSION??
c) About the ID. Why do I need that?? The ADC doesnt go from channel 0 to channel N?? or the scanning is random? I saw on the example that it was used adc_data[0], so I assumed that the ADC scans all the pins and save the data on the corresponding location... If the ADC actually saves the data from channel 0 on [0] and channel 1 in [1] why would I need the ID??
d) If using continuous conversion for both, Group1 and Group2 is possible for what I read on TMR, but just to make sure I understand: The Group1 is high priority compared to Group2, so first convert Group1 and when finishes all the channels, starts with Group2 right?
Third question:
Here we have the memory configuration. BNDA corresponds to Group1? or for Group event?? What this part does?? what is BNDA and BNDB?? why 2*N there?? Im guessing 64 is the maximum words I can save inside the FIFO right??
Fourth question:
I read on TMR that when FIFO is full, a flag is turned and I have to reset FIFO right? but I could reset it every time I get the data no?? of FIFO is cleared when using adcGetData()???
Thanks for the answer in advance!!!