Not applicable
Jun 28, 2014
04:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 28, 2014
04:16 AM
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,COMPARATOR_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?
Regards,
Naresh
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,COMPARATOR_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?
Regards,
Naresh
0 Replies