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
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.