Other Parts Discussed in Thread: SYSCONFIG
HOW TO IMPLEMENT A CODE FOR MSPM0L1105 TO CAPTURE INTERVALS BETWEEN RISING EDGES AND FALLING EDGES OF AN INPUT PIN?
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.
HOW TO IMPLEMENT A CODE FOR MSPM0L1105 TO CAPTURE INTERVALS BETWEEN RISING EDGES AND FALLING EDGES OF AN INPUT PIN?
Hi Tiago,
You can use an event and a timer capture module to do that. There is a comparator example in the SDK (comp_dac_to_timer_event) that can be modified so that instead of the timer capture being activated by the Comparator event, it gets triggered by an input event.
Best Regards,
Diego Abad
Hi Diego
Thank you for your help.
I'm having a lot of difficulty understanding the operation and settings for the capture mode.Hi Tiago,
The capture mode captures a specific time interval of "something." The comparator example captures the period time of each output of the comparator.
The Time Capture module configured in SysConfig should be good enough for those purposes.
For more information, please review the MSPM0 L-Series 32-MHz Microcontrollers Technical Reference Manual (Rev. C) Section 18.2.3.
You can also look at TI's video series on Timers.
I'm also attaching a modified version of the comparator code for you to use as a reference to whatever you want to do.
Modified_comparator_example.zip
Best Regards,
Diego Abad