xmc TRAP function response time

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

cross mob
lucas_wang
Level 2
Level 2
Distributor - Yuban(GC)
5 replies posted 10 questions asked 5 questions asked

one customer wanted to use xmc4200 for digital power, they want to know the response time of  the  TRAP function work ,such as Overvoltage and overcurrent。is there any different between xmc1000 and  xmc4000。they  said TI28035 response time is less in 100  ns。

 

 

0 Likes
1 Solution

1: You can use the fast compare mode in VADC, Comparison in Fast Compare
Mode can last a minimum of 150ns, but depends on the sampling time chosen. :

https://www.infineon.com/dgdl/Infineon-VADC-XMC4000-AP32305-AN-v01_02-EN.pdf?fileId=5546d4624e765da5...

2: From the linker file, you can find the : generating a CCU8 TRAP with ADC fast compare :

https://www.infineon.com/dgdl/Infineon-CCU8-XMC1000_XMC4000-AP32288-AN-v01_01-EN.pdf?fileId=5546d462...

3: From the linker, you can find the code example: Please search AP32288

 https://www.infineon.com/cms/en/product/microcontroller/32-bit-industrial-microcontroller-based-on-a...

Thanks,

Lingling

 

View solution in original post

0 Likes
3 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1: Please refer to the following interrupt subsystem AN about XMC1000/XMC4000.

https://www.infineon.com/dgdl/Infineon-ApplicationNote-AP32331-XMCx000-Interrupt-subsystem-AN-v01_00...

2: As my understanding, the TRAP belongs to one kind of "interrupt", from the AN, we can find the XMC4000 core response time is 12 CPU cycles. If the CPU running at 144MHZ, then the response time is (1/144)x12 =83ns. The value depending on the CPU rate.

3: There are some  differences between XMC1000 and XMC4000, you can also refer to the AN which present in point 1.

0 Likes
lucas_wang
Level 2
Level 2
Distributor - Yuban(GC)
5 replies posted 10 questions asked 5 questions asked

thanks for your reply。befor the trap function,we may  detect the voltage  through the adc compare mode,How do we calculate this time?  in one  chinese spec, i find the adc Conversion time is  550ns @ 120MHz @ 1ch/1kernel for xmc4000 series.that is too slow.is the adc compare  can faster?

0 Likes

1: You can use the fast compare mode in VADC, Comparison in Fast Compare
Mode can last a minimum of 150ns, but depends on the sampling time chosen. :

https://www.infineon.com/dgdl/Infineon-VADC-XMC4000-AP32305-AN-v01_02-EN.pdf?fileId=5546d4624e765da5...

2: From the linker file, you can find the : generating a CCU8 TRAP with ADC fast compare :

https://www.infineon.com/dgdl/Infineon-CCU8-XMC1000_XMC4000-AP32288-AN-v01_01-EN.pdf?fileId=5546d462...

3: From the linker, you can find the code example: Please search AP32288

 https://www.infineon.com/cms/en/product/microcontroller/32-bit-industrial-microcontroller-based-on-a...

Thanks,

Lingling

 

0 Likes