MPC5604 CMP output pad

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5604 CMP output pad

667 Views
shifeiqian
Contributor II

Dear Sir or Mandam,

 

I have a problem when configuring CMP module. I use the CMP2_IN[1] as the positive input of CMP, 3.3V as the negative input of CMP, ccording to the datasheet, the CMP2_O (PB10) should change with the result of the comparasion, however, in fact the CMP2_O (PB10) is always high whatever the result of the comparasion is.

 

Attached is my project, could you please to tell me what's wrong with my program?

 

Thank you very much!

Original Attachment has been moved to: mpc5748g_Z4_1.rar

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

558 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Without any deeper study of your complex code I see you don’t have set SIUL_MSCR26[SSS] to 0x3 what selects CMP2_O functionality.

0 Kudos
Reply