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.

LP-MSPM0L1306: Capture Compare Function

Part Number: LP-MSPM0L1306
Other Parts Discussed in Thread: MSPM0L1306

Tool/software:

Hi team,

My customer would like to build a sample code that checks whether the PWM output period match with the value set using capture function.

They shared the following samples code but it seems like they could not confirm the capture value on the register as following.

Could you check the code and give any suggestions on how to fix them ?

TIMG0 is for PWM output

TIMG1 is for capture 

 empty_LP_MSPM0L1306_nortos_ticlang_CPWM Sys.zip

Connecting PA7(capture input TIMG1) to PA12 (PWM output TIMG0)

Best regards,

Kenley