john2020
Full Member level 5
Real time app problem
Hi all,
I am using the Infineon C167 Microcontroller with Keil Environment for an Ignition Controller application. I capture positive transition of the input signal at the CapCom unit and generate, service the interrupt to set a port(port 2) high. The code which I have written in a function call from the ISR is a few simple switch case statements and some floating point calculations. But the time taken between getting a positive transition at the input and the setting of the port is nearly 700 us. Even accounting for the interrupt latency it is very large and it is above the tolerance limit for our Ignition controller. Can someone pl explain why it takes such a long time?? I checked the clock speed(20 MHz) and I have optimized the compiler to level 7.
Thanks for your time
john
Hi all,
I am using the Infineon C167 Microcontroller with Keil Environment for an Ignition Controller application. I capture positive transition of the input signal at the CapCom unit and generate, service the interrupt to set a port(port 2) high. The code which I have written in a function call from the ISR is a few simple switch case statements and some floating point calculations. But the time taken between getting a positive transition at the input and the setting of the port is nearly 700 us. Even accounting for the interrupt latency it is very large and it is above the tolerance limit for our Ignition controller. Can someone pl explain why it takes such a long time?? I checked the clock speed(20 MHz) and I have optimized the compiler to level 7.
Thanks for your time
john