Announcements

Curious on how you can apply XMC™ to Smart Home Appliances? Register for the ASEAN Smart Home Appliance Webinar here to find out how.

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

XMC™ Forum Discussions

winnie_zhan
Level 1
10 sign-ins First reply posted 5 sign-ins
Level 1

Hello, I want to use the analog comparator (ACMP) function of XMC1300_PG_PSSOP_28 to realize the overcurrent protection function. I hope that the current range can be controlled by programming; I would like to ask whether XMC1300_PG_PSSOP_28 can realize the programmable current range;

0 Likes
1 Solution
Vasanth
Moderator
Moderator 250 sign-ins 500 solutions authored First question asked
Moderator

Hi,

By programming I am assuming you want to change the reference with the requirement. There is an option which could be helpful.

A resistor chain (in the order of 500kOhm) divides the reference voltage value from ACMP.REF input if bit ANACMP1.REF_DIV_EN is set. According to Figure  the divided voltage is delivered to pin ACMP1.INP.

Vasanth_0-1646995627568.png

This is the programmability of the reference connected to ACMP. 

Best Regards,
Vasanth

View solution in original post

0 Likes
1 Reply
Vasanth
Moderator
Moderator 250 sign-ins 500 solutions authored First question asked
Moderator

Hi,

By programming I am assuming you want to change the reference with the requirement. There is an option which could be helpful.

A resistor chain (in the order of 500kOhm) divides the reference voltage value from ACMP.REF input if bit ANACMP1.REF_DIV_EN is set. According to Figure  the divided voltage is delivered to pin ACMP1.INP.

Vasanth_0-1646995627568.png

This is the programmability of the reference connected to ACMP. 

Best Regards,
Vasanth

0 Likes