XMC1302-ACMP0 does not work

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,
Target : XMC1300 bootkit
Problem : ACMP0 does not work properly.
I have a XMC1300 boot kit and am testing App ANACMP01/0 ver 1.0.12.
Two inputs being compare are: INP(P2.7) and INN(P2.8).
Voltage on INP is 1V and a variable voltage 0-3.3V is given to INN.
There is no change in comparator output(CMP_OUT bit) when voltage at INN falls below 1V.

Comparator operates at other INP voltages as follows:
INP = 3V, CMP_OUT = 0 at INN = 2.4V
INP = 2.5V, CMP_OUT = 0 at INN = 2.3V
INP = 1.5V, CMP_OUT = 0 at INN = 0.8V



With manual coding(ie without DAVE APP), results are the same.

WR_REG(COMPARATOR->ANACMP0,COMPARATOR_ANACMP0_CMP_EN_Msk,COMPARATOR_ ANACMP0_CMP_EN_POS,1);
WR_REG(COMPARATOR->ANACMP0,COMPARATOR_ANACMP0_ACMP0_SEL_Msk,COMPARAT OR_ANACMP0_ACMP0_SEL_POS,1);

ANACMP1 and ANACMP2 work perfectly.
Thinking that the chip could be damaged, the same tests were carried out on another board with the
same results.

What could be the problem?
This is second post in the forum. Please tell us answer.
Regards,
Naresh
0 Likes
2 Replies
Not applicable
Hi Naresh,

P2.7 and P2.8 are not from the same ACMP channel.
ACMP0 uses P2.8 and P2.9 while ACMP1 uses P2.6 and P2.7.
You can refers the pining on the I/O function table in Reference Manual.
0 Likes
Not applicable
Hi Naresh,

Thank you very much for the feedback. This issue has been addressed in eTicket 251789775.

Best regards,
Sophia
0 Likes