Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | Calculate Interrupt Latency of FreeRTOS with LPC23xx

There are 6 messages in this thread.

You are currently looking at messages 0 to 6.

Calculate Interrupt Latency of FreeRTOS with LPC23xx - lucians - 10:09 24-07-08

Hi guys,

i'm a student of University of Genoa (Italy). I'm new on your website and
i have already found some important information for my research. You are
very cool and professional.
Now i write here because i want to try to calculate the Interrupt Latency
for freeRTOS using an ARM LPC23xx.

The idea that i have is that:
i want to generate an interrupt from extern and to misure the time that
will be between when i generate the interrupt and the time when the first
instruction af the interrupt routine will be executed. The misurement
should be made by inserting two probes of an oscilloscope in the interrupt
line and in the output. Then the time that should be between the two pulse
will be the Interrupt Latency. 

THE PROBLEM CORE IS THE CODE!!!

So, i ask you if someone has ever wrote a code to make this or has ever
made a code to calculate Interrupt Latency in some way.

Best Reguards to you all.
Thanks.
Davide.





Re: Calculate Interrupt Latency of FreeRTOS with LPC23xx - John Speth - 16:11 24-07-08

> The idea that i have is that:
> i want to generate an interrupt from extern and to misure the time that
> will be between when i generate the interrupt and the time when the first
> instruction af the interrupt routine will be executed. The misurement
> should be made by inserting two probes of an oscilloscope in the interrupt
> line and in the output. Then the time that should be between the two pulse
> will be the Interrupt Latency.
>
> THE PROBLEM CORE IS THE CODE!!!
>
> So, i ask you if someone has ever wrote a code to make this or has ever
> made a code to calculate Interrupt Latency in some way.

Yep.  That's a fool proof way to measure interrupt latency.  I've done it 
that way many times.  It's a good exercise to do with any embedded system. 
Sometimes you don't always get the response time you require and if you 
don't measure it, you'll never know for sure.

JJS



Re: Calculate Interrupt Latency of FreeRTOS with LPC23xx - Dombo - 05:56 25-07-08

John Speth schreef:
>> The idea that i have is that:
>> i want to generate an interrupt from extern and to misure the time that
>> will be between when i generate the interrupt and the time when the first
>> instruction af the interrupt routine will be executed. The misurement
>> should be made by inserting two probes of an oscilloscope in the interrupt
>> line and in the output. Then the time that should be between the two pulse
>> will be the Interrupt Latency.
>>
>> THE PROBLEM CORE IS THE CODE!!!
>>
>> So, i ask you if someone has ever wrote a code to make this or has ever
>> made a code to calculate Interrupt Latency in some way.
> 
> Yep.  That's a fool proof way to measure interrupt latency.  I've done it 
> that way many times.  It's a good exercise to do with any embedded system. 
> Sometimes you don't always get the response time you require and if you 
> don't measure it, you'll never know for sure.

It also helps if you have a scope or logic analyzer at your disposal 
that can trigger if the response time exceeds a certain value. If the 
interrupt latency always stays below that threshold the scope should 
never trigger.

Re: Calculate Interrupt Latency of FreeRTOS with LPC23xx - lucians - 10:09 01-08-08

OK! Thanks a lot to all!

I have calculate the researched time with the ROTS IAR PowerPac and it is
very short.

Now the question is: HOW CAN I REGISTER AN APPLICATION ON THE VIC?
Which are the function in FreeRTOS that handle the interrupts?

Thanks.
Bye.
Davide.



Re: Calculate Interrupt Latency of FreeRTOS with LPC23xx - lucians - 11:27 01-08-08

HELP! HELP! HELP! 

Have someone an example of using interrupts in FreeRTOS?

Thanks a lot!
Davide.

Re: Calculate Interrupt Latency of FreeRTOS with LPC23xx - FreeRTOS.org - 13:46 01-08-08

"lucians" <l...@hotmail.it> wrote in message 
news:8...@giganews.com...
> HELP! HELP! HELP!
>
> Have someone an example of using interrupts in FreeRTOS?

There are plenty in the FreeRTOS.org download - at least two for every port. 
There is also not just one way of doing it.

Write to me directly and I can help you.  r ***dot*** barry [_at_] 
freertos.org.

-- 
Regards,
Richard.

+ http://www.FreeRTOS.org & http://www.FreeRTOS.org/shop
17 official architecture ports, more than 6000 downloads per month.

+ http://www.SafeRTOS.com
Certified by TÜV as meeting the requirements for safety related systems.