|
Post by abiswas on Jul 17, 2019 22:38:50 GMT
Hello Everyone,
I need to generate 1 us interrupt with Shield buddy. The basic create timer function is efficient for interrupt time ranging from 20 us - 42 sec.
/* 10ns per bit count */
CreateTimerInterrupt(ContinuousTimerInterrupt, 10000, STM0_inttest);
Can anyone suggest me the right way to generate 1/0.5 us interrupts?
Thanks.
|
|
|
Post by Admin on Jul 18, 2019 8:09:00 GMT
This can be done but not using arduino-style functions. You will have to use proper C programming in the Infineon framework using a static interrupt table, Please bear in mind that even with a 200MHz processor you will not be able to get much done in 1us!
|
|
|
Post by abiswas on Jul 19, 2019 17:02:50 GMT
This can be done but not using arduino-style functions. You will have to use proper C programming in the Infineon framework using a static interrupt table, Please bear in mind that even with a 200MHz processor you will not be able to get much done in 1us! Thank you so much for your answer. Could you please refer me to the programming reference? Moreover, does Arduino compiler support this native functions? I need to read two ports and store it to a variable within that 1 us. I hope that can be handled by the processor?
|
|
|
Post by Admin on Jul 24, 2019 7:39:31 GMT
This would be better done using DMA triggered from a timer!
|
|