AnsweredAssumed Answered

the window mode of MPC5748G,CMP module

Question asked by Shifei Qian on Jun 30, 2016
Latest reply on Jul 4, 2016 by Petr Stancik

Dear Sir or Mandam,

 

I have encountered some problem when configuring window mode of MPC5748G, CMP module.

 

Attached is my test project. I have used CMP_0 module, the positive input is the voltage that I give through PG7, the negative input is set to 3.3V through DAC, the output pin is PC10, and its voltage will change with the result of comparision. When the voltage of PG7 is higher than 3.3V, LED2 is turned on, and PC10 is high. When the voltage of PG7 is lower than 3.3V, LED1 is turned on, and PC10 is low.

 

In test_demo.c, when the input of PG7 is a square wave of 5V, 50Hz, 50% duty, why is the output wave of PC10 in CMP_WINDOWED_INT_CLK_Mode, CMP_WINDOWED_RESAMPLED_Mode and CMP_WINDOWED_FILTRED_Mode always low?

What should I do if I want to get the following output wave?

 

Could you please help me to find out what mistake I have made, and how to configure correctly these three modes with window?

 

Thank you very much for your help!

 

Yours sincerely,

QIAN Shifei

Original Attachment has been moved to: mpc5748g_Z4_1.rar

Outcomes