Posted on May 17, 2011 at 12:40Ok, figured out how the NVIC registers should be set up. Each IRQ is 8 bits, and they are packed into 32 bit registers of course. And the preemption is written into the high bits backwards, which was my confusion. So, ...
Posted on May 17, 2011 at 12:40I set the priority as: NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); Once I called NVIC_Init with all the interrupts, I am trying to read back the priority registers: myvar = NVIC->IPR[(DMA1_Channel1_IRQChannel >> 02...
Posted on May 17, 2011 at 12:40Thanks. Here is what I am coding. I have 3 interrupts: Timer2: Preemption: 0, Priority: 0 USB: Preemption: 1, Priority: 0 DMA: Preemption: 2, Priority: 0 I want the timer to turn on\off Hardware port, so I want the tim...
Posted on May 17, 2011 at 12:40I have a simple question on NVIC. I was having a little difficulty understanding the difference between preemptionpriority and subpriority for an IRQ channel. I am assuming that preemptionpriority is the actual priorit...
Posted on May 17, 2011 at 12:40Is there a quick way to temporarily disable and enble the interrupts on the Cortex? I have a critical timing loop which varies in time due to USB, DMA, and other interrupts. Is there a way to suspend interrupts for a f...