We're evaluating the K64F for an instrumentation application. We'd like to do the following:
Steps 1-5 should proceed without code intervention.
The next question is how to configure K64F to perform steps 2-3:
How do I trigger ADC conversion at the end of each DAC-DMA-major-loop completion?
Thanks in advance,
Best Regards, Dave
Hi
Customer could using ADC software trigger mode.
In Software Trigger mode, when SC2[ADTRG]=0, writes to SC1A subsequently initiate a new conversion, if SC1[ADCH] contains a value other than all 1s.
After DMA to DAC major loop finished, customer could set a major loop link to another DMA channel to transfer already ADC channel value(variable in RAM) to ADC Status and Control Registers 1 (ADCx_SC1n) as software trigger ADC conversion. For only the SC1A is used for both software and hardware trigger modes of operation. Customer could using DMA link channel to transfer data to ADCx_SC1A register as software trigger.
Customer could refer application note AN4590, which using a hardware trigger. Customer can use ADC software trigger to instead of the hardware trigger.
AN4590 software could be downloaded from here.
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Sorry, I think I understand your answer; I will try:
Thanks,
Best Regards, Dave