Question about IRQ

Started by Pietro Maggi in AT91SAM ARM11 years ago 2 replies

Hi everybody, I'm using an AT91SAM7S256 and I'd like to capture level change on a couple of input pins using IRQ interrupt (Parallel IO...

Hi everybody, I'm using an AT91SAM7S256 and I'd like to capture level change on a couple of input pins using IRQ interrupt (Parallel IO Controller A source). My question is about how to detect which pin generated an IRQ. I can look at the two pin status to see which level changed since last IRQ but I hope for a better method (any status register can help me here?) best regards Pietr...


Problem with timer IRQ

Started by camenzied in AT91SAM ARM10 years ago 2 replies

Hi everybody, I have problem with a Timer-IRQ which I don't understand. The timer is used in waveform mode. The C- and A-Compare-IRQ...

Hi everybody, I have problem with a Timer-IRQ which I don't understand. The timer is used in waveform mode. The C- and A-Compare-IRQ are enabled and CPCTRIG is set. The interrupt is EDGE_TRIGGERED and nested interrupts are not allowed. The Status-Register of the Timer is read at the begin of the IRQ-Handler. If the C- and A-Compare are close together, it could happen that after a time no ...


Redirect ADS7846 interrupt from IRQ ro GPIO

Started by pana...@yahoo.com in AT91SAM ARM7 years ago

Hi dear friend, I'm working on linux2.6.30 kernel for At91sam9261-ek like board, in our board we have connected the irq pin of ads7846 to a...

Hi dear friend, I'm working on linux2.6.30 kernel for At91sam9261-ek like board, in our board we have connected the irq pin of ads7846 to a gpio(PIN_PA22) instead of IRQ2(PIN_PC2), therefore we have encountered a problem in the kernel for activation of gpio interrupt instead of IRQ. My question is, How can I redirect the interrupt routine from IRQ to gpio? Also I have done the following m...


Turn IRQ into an FIQ?

Started by Leighton Rowe in AT91SAM ARM10 years ago

Question... For AT91SAM7S mcu's, is it possible to make an IRQ source - basically one of the peripherals (Timer0, SPI, etc.) - behave like...

Question... For AT91SAM7S mcu's, is it possible to make an IRQ source - basically one of the peripherals (Timer0, SPI, etc.) - behave like an FIQ interrupt? If yes, then how? If not, then why? I'm aware that IRQs on AT91SAM7S mcus have a priority scheme. However, I'm somewhat concerned about sharing ISRs over the IRQ level, especially if one of the ISRs must execute immediately onc...


disabling interrupt

Started by Pietro Maggi in AT91SAM ARM11 years ago 3 replies

Hi everybody, starting from the blinking sample by J.P.Lynch (using the yagarto tool-chain), I've added the handling of a couple of PIA IRQ...

Hi everybody, starting from the blinking sample by J.P.Lynch (using the yagarto tool-chain), I've added the handling of a couple of PIA IRQ giving an Interrupt level of 5 (i left the timer IRQ level at 4). What I see now using the enableIRQ and disableIRQ function included in the project (and attached below) is that the timer IRQ can be disabled and re-enabled, while the PIA interrupt is a...


Re: GPIO interrupt edge triggering

Started by pana...@yahoo.com in AT91SAM ARM7 years ago 1 reply

Hi dear friend, I'm working on linux2.6.30 kernel for At91sam9261-ek like board, in our board we have connected the irq pin of ads7846 to a...

Hi dear friend, I'm working on linux2.6.30 kernel for At91sam9261-ek like board, in our board we have connected the irq pin of ads7846 to a gpio(PIN_PA22) instead of IRQ2(PIN_PC2), therefore we have encountered a problem in the kernel for activation of gpio interrupt instead of IRQ. My question is, How can I redirect the interrupt routine from IRQ to gpio? Also I have done the following m...


Redirect ADS7846 interrupt from IRQ to GPIO on at91sam9261ek like

Started by pasc...@hotmail.com in AT91SAM ARM5 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...


Semaphore

Started by eran...@gmail.com in AT91SAM ARM9 years ago

Hi all, In my application i have an IRQ on IRQ0 and two more taskes. I would like to create a semaphore that indicates when i receive an...

Hi all, In my application i have an IRQ on IRQ0 and two more taskes. I would like to create a semaphore that indicates when i receive an interrupt. I create a semaphore and use these function call in: In the IRQ function: OSSemPost(AlEvent); In the Task function: OSSemPend(AlEvent,0,&ErrAlSem); I try to figure how to use these function, becuse I never success to restore the calling to ...


IRQ STACK size

Started by Henk Visser in AT91SAM ARM12 years ago 1 reply

Under the link configuration tool I can see that the value for the IRQ STACK size is 100. Is there a rule of thumb on how large this...

Under the link configuration tool I can see that the value for the IRQ STACK size is 100. Is there a rule of thumb on how large this should be set to?   Thanks.  


AT91SAM7SE512 CDC interrupts?

Started by v333k in AT91SAM ARM9 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. ...


TCM vs. internal SRAM

Started by "ICLI, Bekir (EXT)" in AT91SAM ARM10 years ago 6 replies

Hi all, I was curious if I could increase my performance using TCMs. Currently, I am loading my interrupt handler code to internal fast...

Hi all, I was curious if I could increase my performance using TCMs. Currently, I am loading my interrupt handler code to internal fast SRAM. Would it make sense if use part of this memory as I-TCM and load the irq handlers to this location? Regards, Bekir


problems with interrupts while debugging

Started by tseug_76 in AT91SAM ARM11 years ago 2 replies

Hi all, i work with AT91SAM7S256 and IAR since 2 months. I had the problem that after correct (i think so) configuration of interrupt...

Hi all, i work with AT91SAM7S256 and IAR since 2 months. I had the problem that after correct (i think so) configuration of interrupt and debugging mode i catch sometimes the interrupt and sometimes i got nothing. I set an breakpoint in ISR, but frequently nothing happens in spite of high on IRQ Input pin. After disconection of all hardware and new loading somtimes i got the interrupt. I t...


Re: urgent: AT91SAM7SE512: UART Reciver Interrupt is not working

Started by willoughby_jon in AT91SAM ARM10 years ago

If you set a break point in the ISR does it ever get there? If not, check IRQ vector (0x18) has the following code: ldr pc,[pc,#-0xF20] The...

If you set a break point in the ISR does it ever get there? If not, check IRQ vector (0x18) has the following code: ldr pc,[pc,#-0xF20] The AIC manages the prioritization by using an internal stack on which the current interrupt level is automatically pushed when AIC_IVR is read, and popped when AIC_EOICR is written (any value), so AT91C_BASE_AIC-> AIC_EOICR = AT91C_BASE_US0-> US_CSR; a


AT91SAM9RL64 Memory Mapping

Started by "ICLI, Bekir (EXT)" in AT91SAM ARM9 years ago

Hi all, I've gone thru the atmel manual and seen that the internal SRAM (64K) can be shared between Instruction TCM or Data TCM, each of which...

Hi all, I've gone thru the atmel manual and seen that the internal SRAM (64K) can be shared between Instruction TCM or Data TCM, each of which can have 32K. But in this case, there will be no memory for internal SRAM and as a result no memory to remap to the address 0x0. My question is: how is this possible? I mean, where do I load my irq vectors and other exception vectors, when not at 0...


Interesting Interrupts

Started by Henk Visser in AT91SAM ARM12 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


MMC card on at91sam9260 board

Started by Virupax SS in AT91SAM ARM8 years ago

Hi I am using MTFC2GDKDM eMMC card on At91sam9260 board running linux 2.6.22 kernel. I am continuosly getting below debug output and the...

Hi I am using MTFC2GDKDM eMMC card on At91sam9260 board running linux 2.6.22 kernel. I am continuosly getting below debug output and the mount commad hangs on trying to mount the mmc card ##cat /proc/partitions 179 0 2008064 mmcblk0 ##dmesg -c MCI irq: status = 0000C0E5, C07F0020, 00000020 Card is ready Completed command Status = 0000C0E5 [00000B00 00000000 00000000...


PIO Interrupt not recognised after Software Reset

Started by saiberion in AT91SAM ARM9 years ago 4 replies

I have a strange interrupt behaviour. First a bit explanation of my set up and expected behaviour: Communication between controllers: - RS485...

I have a strange interrupt behaviour. First a bit explanation of my set up and expected behaviour: Communication between controllers: - RS485 Bus - input/output control lines The RS485 master drives the input lines of the slaves, the inputs generate a PIO IRQ of the slaves. Slave controllers: - Watchdog enabled, counter set to ca. 3s - Watchdog resets at PIO interrupt on designate...


Interrupt Speed

Started by Henk Visser in AT91SAM ARM12 years ago 8 replies

Miro,   How long should it be taking to detected that there was an SPI interrupt, jump to the irq handler, and begin my...

Miro,   How long should it be taking to detected that there was an SPI interrupt, jump to the irq handler, and begin my service routine?