Tool/software:
Hello Guru,
In TRM, sample timer in ADC module select appropriate sample timer source(SCOMP0 or SCOMP1).
I couldn't find the standard of select.
Do you know the standard?
Thank you
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello Guru,
In TRM, sample timer in ADC module select appropriate sample timer source(SCOMP0 or SCOMP1).
I couldn't find the standard of select.
Do you know the standard?
Thank you
Hi Ryan, thanks for the question. The values for SCOMP0 and SCOMP1 are user-defined values. The value in SCOMPx configures the sampling period by defining the number of sample time clocks to set the sample window to. The default SCOMPx sample timer value translates to 1 cycle wide sample pulse which allows the sampling period to be solely based on the sample clock and SCLKDIV.
In the case of using auto mode, you would program the desired sample timer value in the SCOMPx register and use the STIME bits in the MEMCTLx register to select the appropriate sample timer source (SCOMP0 or SCOMP1).
Hope this helps!
Hi Brian, thank you for your answer.
So, do you know standard of select SCOMPx register?
Appropriate is ambiguous...
I would look at the register map after starting debug on your device and see which one is active. You can select which one to use soi I would recommend just setting it in your code.