Keil Logo

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

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Amir Zendehdel
Posted
10-Mar-2011 06:49 GMT
Toolset
ARM
New! 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

Read-Only
Author
Andrew Neil
Posted
10-Mar-2011 07:59 GMT
Toolset
ARM
New! Clarify?

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.

Read-Only
Author
Amir Zendehdel
Posted
31-Mar-2011 13:03 GMT
Toolset
ARM
New! RE: Clarify?

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

Read-Only
Author
Martin Günther
Posted
31-Mar-2011 13:08 GMT
Toolset
ARM
New! RE: RTX-OS ->Need Help for using interrupt on at91sam7x256

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

Read-Only
Author
Amir Zendehdel
Posted
31-Mar-2011 14:07 GMT
Toolset
ARM
New! RE: RTX-OS ->Need Help for using interrupt on at91sam7x256

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

Read-Only
Author
Amir Zendehdel
Posted
1-Apr-2011 18:12 GMT
Toolset
ARM
New! RE: RTX-OS ->Need Help for using interrupt on at91sam7x256

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

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.