EmbeddedRelated.com

AT91SAM7x256 Interrupts

Started by boerrick in AT91SAM ARM18 years ago 3 replies

I'm using the AT91SAM7X256 on the AT91SAM7x-EK evaluation board. I can run my code on the microcontroller (leds, joystick, uart) and now I...

I'm using the AT91SAM7X256 on the AT91SAM7x-EK evaluation board. I can run my code on the microcontroller (leds, joystick, uart) and now I try to use interrupts. Has anybody a startup file (in assembler for GNU compiler) for the AT91SAM7x256 with the use of interrupts?? I've made my own crt.s but it is not working, why, I have no idea!


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by "FreeRTOS.org Info" in AT91SAM ARM17 years ago 3 replies

> Ok! I've made the changes. So this might be the problem. The=20 > interrupts are working, but the tasks do not. What should I do next? So...

> Ok! I've made the changes. So this might be the problem. The=20 > interrupts are working, but the tasks do not. What should I do next? So the tick interrupt now runs. Are you still installing other interrupts? If you have just the tick interrupt running, do the flash tasks now execute= ? Can you place a break point in the flash task to be double sure it is not running. Regards, Rich


arm926ejs simple interrupts

Started by kumori0 in AT91SAM ARM17 years ago 11 replies

Hello everyone, I'm a student, trying to move up from programming PIC micros to working with ARM microcontrollers. At the moment I have a...

Hello everyone, I'm a student, trying to move up from programming PIC micros to working with ARM microcontrollers. At the moment I have a lot of problems with the whole concept of interrupts in ARM. Could someone tell me where I could find a simple hello world like application that would have only the interrupt on timer0 or something like that. Thanks in advance, Jani


USART and Interrupt nesting

Started by Eric Pasquier in AT91SAM ARM18 years ago 9 replies

I am using an AT91SAM7S256. I do have some dificulties in reading the documentation about USART and interrupts : 1) what is the difference...

I am using an AT91SAM7S256. I do have some dificulties in reading the documentation about USART and interrupts : 1) what is the difference between TXRDY and TXEMPTY interrupt/status ? 2) the documentation is very clear about nested interrupt in AIC, but not about what is happening in this case : - I have a bidirectional comunication in progress with TX and RX interrupts enabled. - RX...


USART0 Recieve Interrupt does not return.

Started by userpaul2 in AT91SAM ARM17 years ago 2 replies

When I enable a Uart recieve interrupt, it either continually interrupts, or if I clear the interrupt in the AIC with: AT91C_BASE_AIC->...

When I enable a Uart recieve interrupt, it either continually interrupts, or if I clear the interrupt in the AIC with: AT91C_BASE_AIC-> AIC_EOICR = 0; then execution hangs. Both situations prevent the running of both the program and higher priority interrupts. Does anybody know why this is? Is it because the PDC HAS to be used with UART recieve interrupt? #define BR 115200


level vs. edge triggered interrupts

Started by romanua1 in AT91SAM ARM19 years ago 2 replies

Hallo everybody, In what cases should one use level and in what cases edge triggered interrupts for the internal sources? Regards, Roman

Hallo everybody, In what cases should one use level and in what cases edge triggered interrupts for the internal sources? Regards, Roman


How to create nested interrupts for the SAM7?

Started by ratb...@... in AT91SAM ARM19 years ago 3 replies

In one the posts someone wrote: \

In one the posts someone wrote: \


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by "FreeRTOS.org Info" in AT91SAM ARM17 years ago 1 reply

> I'm using the WinARM GCC. I have never used WinARM, but assume it to be the same as GNUARM and YAGART= O as far as functionality and usage...

> I'm using the WinARM GCC. I have never used WinARM, but assume it to be the same as GNUARM and YAGART= O as far as functionality and usage goes... Take a look in port.c, at the function prvSetupTimerInterrupt(). This installs a different handler depending on the pre-emption setting. The tic= k ISR is set to either vNonPreemptiveTick() or vPreemptiveTick(). None of th= e interrupt


SPI chip select questions

Started by mla_o_matic in AT91SAM ARM19 years ago 5 replies

Greetings Fellas, Im only having one device on my SPI bus. This device needs CS (SS or NPCS.. pick your choice), as delimiter between...

Greetings Fellas, Im only having one device on my SPI bus. This device needs CS (SS or NPCS.. pick your choice), as delimiter between transactions. I use DMA for posted writes (I dont use interrupts but trying to gain some performance). The problem is that AT91C_SPI_DLYBS only affects delay between two _different_ chipselects. The Chipselect


About interrupt handling

Started by "ICLI, Bekir (EXT)" in AT91SAM ARM16 years ago 5 replies

Hi all, In ARM926EJ-S Architecture, If I am not using nested interrupts, do I need to perform a write to IVR register? > From the...

Hi all, In ARM926EJ-S Architecture, If I am not using nested interrupts, do I need to perform a write to IVR register? > From the beginning, I started with the interrupt handling atmel provided and did not question it, just understand what it does. But now, out of curiosity, I tried not doing it (write to IVR) and it works.. Why would one need it really? In the manual it says "This (Pr


Spurious interrupt

Started by kiwanda206 in AT91SAM ARM19 years ago 3 replies

Hello everybody, this is my first post to this group - I just started with the AT91. I downloaded a demonstration program (AT91SAM7...

Hello everybody, this is my first post to this group - I just started with the AT91. I downloaded a demonstration program (AT91SAM7 Interrupts Example blinking LEDs) for the AT91SAM7S, compiled it (arm-elf-gcc) and loaded it into my AT91SAM7S-EK with sam7s2565 dev board. The program has the standard C startup code that I encounter everywhere. The execution however gets stuck in the AT91F


AT92SAM7_Lib using USART transmit interrupt

Started by dclapp01 in AT91SAM ARM20 years ago 4 replies

I am trying to use the AT92SAM7 library to implement a uputs to USART0, but I am having a hard time getting the transmit...

I am trying to use the AT92SAM7 library to implement a uputs to USART0, but I am having a hard time getting the transmit interrupt going. All the samples I can find on the AT91 CD trigger output when a receive character comes in (I get interrupts when I receive), but


AT91 USART Interrupt Source Code GCC

Started by jannethgil in AT91SAM ARM19 years ago 2 replies

Hi Does anybody has an simple example on using usart interrupts using the GCC compiler for an AT91 ARM7 microcontroller?. I just...

Hi Does anybody has an simple example on using usart interrupts using the GCC compiler for an AT91 ARM7 microcontroller?. I just need to get started. Any links, sugestions or source code will be appreciated Thanks :)


Timer0 interrupts..

Started by strong_arm7s in AT91SAM ARM20 years ago 3 replies

Hello, I am using the ThreadX OS and tring to get it to work with the AT91SAM7S-EK eval kit and IAR Embeded Workbench. Much of last...

Hello, I am using the ThreadX OS and tring to get it to work with the AT91SAM7S-EK eval kit and IAR Embeded Workbench. Much of last week was conversing with IAR and Expresslogic in tryting to get a file compiled and run in the flash of the AT91SAM7S. We have that going, however ThreadX requires Timer0 of the TC to run and cause an interrupt. If ti


interrupts before FreeRTOS scheduler start

Started by Michał in AT91SAM ARM16 years ago 6 replies

Hello, I working on project that is based on FreeRTOS for AT91SAM7X256 (Crossworks compiler). I would like to implement following...

Hello, I working on project that is based on FreeRTOS for AT91SAM7X256 (Crossworks compiler). I would like to implement following functionality. Let?s assume that because of some system conditions (e.g. number of watchdog system restarts) I would like to decide if software should start FreeRTOS kernel or not. If not it would start typical while(1) loop and work without FreeRTOS but


problem with USB CDC

Started by "Marcio Campos Lima(Net Open)" in AT91SAM ARM17 years ago

I?m developing a CCID compatible USB device with AT91SAM7S. I modify de CDC source code and I?getting a problem with tranmsitting the response to...

I?m developing a CCID compatible USB device with AT91SAM7S. I modify de CDC source code and I?getting a problem with tranmsitting the response to a SETUP. Everytime I try to send the descriptor to the HOST I get an AT91C_UDP_RX_DATA_BK0 after I fill the second 8 byte block to the FIFO. This interrupts the transmission and the HOST does not understanding the respose. It is amazing because the HO...


Interrupt not working on Eval Board...

Started by strong_arm7s in AT91SAM ARM20 years ago 6 replies

Hello, Has anybody else experienced where Interrupts are not working on the AT91SAM7S-EK eval board when one downloads a new version of...

Hello, Has anybody else experienced where Interrupts are not working on the AT91SAM7S-EK eval board when one downloads a new version of code into the flash via the JTAG and then running it under the debugger.. They are all ther ein the AIC module Interrupt Pending register. I have to power down the board, repower, burn the flash with the FREERTOS


spi pdc aic interupt

Started by gamerz267 in AT91SAM ARM17 years ago 6 replies

i need some help with using aic with pdc. How do you initiate it. This is how i set it up. // Configure interupt when End of...

i need some help with using aic with pdc. How do you initiate it. This is how i set it up. // Configure interupt when End of Transfer AT91F_SPI_EnableIt(pSPI, AT91C_SPI_ENDTX); // Configure the AIC for SPI interrupts AT91F_AIC_ConfigureIt(AT91C_BASE_AIC, AT91C_ID_SPI0, AT91C_AIC_PRIOR_HIGHEST, AT91C_AIC_SRCTYPE_INT_HIGH_LEVEL, SPI0_Handler); // Enable the interrupt on the interrupt co...


Redirect ADS7846 interrupt from IRQ to GPIO on at91sam9261ek like

Started by pasc...@hotmail.com in AT91SAM ARM12 years ago 4 replies

Hi there, I'm working on at91sam9261ek like board with linux 2.6.30 kernel. I need to redirect the interrupts from IRQ to gpio(PIN_PB6) for the...

Hi there, I'm working on at91sam9261ek like board with linux 2.6.30 kernel. I need to redirect the interrupts from IRQ to gpio(PIN_PB6) for the touchscreen. When i connect the IRQ and the gpio(PIN_PB6) with a wire, than i the touchscreen is working. The init function is called right, after login into linux on console i see "touchscreen0" device under "/dev/input". But of course i don't get a...


Interesting Interrupts

Started by Henk Visser in AT91SAM ARM19 years ago 3 replies

With my AT91SAM7S256 project the only configuration I do for the AIC is my single call to AT91F_AIC_ConfigureIt().  I set a infinite...

With my AT91SAM7S256 project the only configuration I do for the AIC is my single call to AT91F_AIC_ConfigureIt().  I set a infinite loop in my interrupt service routine so that I can catch the first occurrence. __ramfunc void irq