This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX-OS ->Need Help for using interrupt on at91sam7x256

Hi,all
I want to use interrupt in rtx-os for at91sam7x256 .
1- usart interrupt
2- external interrupt.
3- timer interrupt
Please help me how to config this peripheral for using in interrupt.

Thank you.
Amir Zendehdel

  • You titled your post, "RTX-OS -> Need Help for using interrupt..."

    But your question was, "help me how to config this peripheral"

    So which is it that you actually need to know - how to use RTX-OS, or how to configure the peripheral?

    How to configure RTX-OS will be descrined in the RTX-OS manuals;

    How to configure the hardware peripherals of the at91sam7x256 will be described in the at91sam7x256 documentation.

  • hello Andrew
    Thank you very much,i dont know all of email that replay to my mail from keil.com was going to my spam mail.

    dear friend i was used At91sam7x256 board and doing all example of rtx-os and all of them work goooood.

    but when i was config usart interrupt same as normal mode(none RTX-OS) then each time its interrupt happen system fall in halted state.

    in rtx-os documentation i saw a little thing about config interrupt in rtx-os .

    ------------------------ Keil Doc -------------------------------------------------
    void isr_evt_set (unsigned short event_flags, OS_TID task);
    A typical task intended to handle interrupts will have the following structure:
    void Task3 (void) {

    while (1) { os_evt_wait_or (0x0001, 0xffff); // Wait until ISR triggers an event … // Handle the interrupt } // Loop and go back to sleep
    } The actual interrupt source will contain a minimal amount of code.
    void IRQ_Handler (void) __irq {

    isr_evt_set (0x0001, tsk3); // Signal Task 3 with an event EXTINT = 0x00000002; // Clear the peripheral interrupt flag VICVectAddr = 0x00000000; // Signal end of interrupt to the VIC
    } --------------------------------------------------------------------------------------
    if keil have more document please help me.
    Please help me : for example if i want to use serial rx interrupt

    Manyyyyyyyyyyyyyyyyyyyyyyyyyyyy many thanks
    Amir

  • Hello Amir Zendehdel,

    Please check example .\Keil\ARM\Boards\Atmel\AT91SAM7X-EK\Hello.

    This example shows how to configure timer, UART, Vectored Interrupt Controller, ...

    Best Regards,
    Martin Guenther

  • Hello,Martin

    Thank you very much.

    i see its example, i think it may simple ,tTC was simple, i guess RX intrrupt will the same.

    thank you for your useful guide.

    Best regard & have nice time

    Amir

  • Hello all
    Finally im find an example for serial interrupt in RTX-OS mod

    \Keil\ARM\Boards\Atmel\AT91SAM7X-EK\RL\USB\RTX_CDC\serial.c

    Thank you from all of friend that guid meeeeeeeeeeeeeeeeeeee

    please enjoy KEIL

    RTX-OS IS GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOD

    Amir