AT91SAM7x256 Interrupts

Started by boerrick in AT91SAM ARM16 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!


Interrupts not firing

Started by jellybean10025 in AT91SAM ARM15 years ago 14 replies

I have a strange situation. I am using timer0 on a 50 mS cycle to fire an interrupt. It works for hours, days, or weeks then the interrupt...

I have a strange situation. I am using timer0 on a 50 mS cycle to fire an interrupt. It works for hours, days, or weeks then the interrupt code stops being executed. My first thoughts were a loop or that somehow the interrupts were being disabled. I happened to catch the situation in the debugger yesterday and now I'm truly baffled. It's not in a loop and the interrupts are enable...


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by "FreeRTOS.org Info" in AT91SAM ARM15 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


Interrupts (AT91SAM9261 + GHS MULTI for ARM)

Started by senthil kumar in AT91SAM ARM14 years ago

Hi, ?? We are using SAM9261 and GHS MULTI IDE for ARM for our new project. ??????? Inputs,outputs and serial (tx/rx) were working in...

Hi, ?? We are using SAM9261 and GHS MULTI IDE for ARM for our new project. ??????? Inputs,outputs and serial (tx/rx) were working in polling method. But Interrupts were not working while using MULTI. ? ? ? ? ?? while using KEIL or IAR interrupts were working. what may be the problem? Any solution please... Regards L.Senthilkumar Add more friends to your messenger and enjoy...


arm926ejs simple interrupts

Started by kumori0 in AT91SAM ARM14 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 ARM16 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...


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by axl_dudu in AT91SAM ARM15 years ago

I'm using the WinARM GCC. --- In A...@yahoogroups.com, "FreeRTOS.org Info" =20 wrote: > > > Hi Richard. I have tried the flash demo in...

I'm using the WinARM GCC. --- In A...@yahoogroups.com, "FreeRTOS.org Info" =20 wrote: > > > Hi Richard. I have tried the flash demo in cooperative mode but=20 it=20 > > doesn't work. I have also tried to see if there is a problem with=20 the=20 > > interrupts, and they are NOT working in cooperative mode. I don't=20 > > know why.=20 > > I haven't made any changes to the ker


USART0 Recieve Interrupt does not return.

Started by userpaul2 in AT91SAM ARM15 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


Re: Processor wakeup time from processor idle mode

Started by bernd schuster in AT91SAM ARM15 years ago

2007/12/7, andnan : > > I want to reduce my power consumption to a minimum. If I put the > processor into idle mode, but leave the MCK...

2007/12/7, andnan : > > I want to reduce my power consumption to a minimum. If I put the > processor into idle mode, but leave the MCK chugging away, interrupts > will still happen at the MCK frequency correct? > right - all interrupts will continue Does the processor require any time to wake up (like my wife in the > morning), or is it ready to go on the next cloc


level vs. edge triggered interrupts

Started by romanua1 in AT91SAM ARM17 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 ARM17 years ago 3 replies

In one the posts someone wrote: \

In one the posts someone wrote: \


Re: PIT

Started by capiman26061973 in AT91SAM ARM14 years ago 1 reply

Hello, > While trying to figure out the interrupts > I encountered the following problem. > for (;;) { > if((pitGetPIIR() & 0x000FFFFF)...

Hello, > While trying to figure out the interrupts > I encountered the following problem. > for (;;) { > if((pitGetPIIR() & 0x000FFFFF) == 0){} > uart0_putc('A'); > } i must say sorry, i have don't know or used AT91 yet, just reading posts about it. So my hint could be nonsense, than just ignore me. The value you compare is a "self-resetting" hardware counter ? Could it be that y


AT91SAM7SE512 CDC interrupts?

Started by v333k in AT91SAM ARM14 years ago 2 replies

Hi, I would like know if the following is possible and/or doable. I am working on some code for my SAM7SE512 chip that would go into...

Hi, I would like know if the following is possible and/or doable. I am working on some code for my SAM7SE512 chip that would go into an infinite while loop. However, I would like to be able to cause an interrupt (FIQ or IRQ) when I receive something from the PC via CDC. Is this possible? If not, what would likely be my best choice. The while loop is extremely important to run infinitely. ...


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by "FreeRTOS.org Info" in AT91SAM ARM15 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


Re: PIT

Started by ffredrik in AT91SAM ARM15 years ago

One reason could be that the {} after the if statement. This is actually a dummy statement, executed conditionally after the if. The uart...

One reason could be that the {} after the if statement. This is actually a dummy statement, executed conditionally after the if. The uart call is always executed. Fredrik ----- Original Message ---- From: kumori0 To: A...@yahoogroups.com Sent: Thursday, March 13, 2008 2:26:24 PM Subject: [AT91SAM] PIT Hello again, While trying to figure out the interrupts I e


SPI chip select questions

Started by mla_o_matic in AT91SAM ARM17 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 ARM14 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 ARM17 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 ARM18 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 ARM17 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 :)