This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf51822's original interrupt priority

Hi everyone, I want to know the original interrupt priority of nrf51822, without using soft device or using NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority). I also want to know whether can I find this priority information through the nrf51822's datasheet or not. Thank you.

Parents
  • Hi John,

    Thank you for your kindness and your answer. I read ARM Cortex M0 datasheet, and find what you have said. But that's not my best. I find the interrupts number of nrf51822 as follows,

    Reset_IRQn = -15, NonMaskableInt_IRQn = -14, HardFault_IRQn = -13,
    SVCall_IRQn = -5, DebugMonitor_IRQn = -4, PendSV_IRQn = -2, SysTick_IRQn = -1,

    /* ---------------------- nRF51 Specific Interrupt Numbers ---------------------- */

    POWER_CLOCK_IRQn = 0, RADIO_IRQn = 1, UART0_IRQn = 2, SPI0_TWI0_IRQn = 3,
    SPI1_TWI1_IRQn = 4, GPIOTE_IRQn = 6, ADC_IRQn = 7, TIMER0_IRQn = 8,
    TIMER1_IRQn = 9, TIMER2_IRQ = 10, RTC0_IRQn = 11, TEMP_IRQn = 12,
    RNG_IRQn = 13, ECB_IRQn = 14, CCM_AAR_IRQn = 15, WDT_IRQn = 16,
    RTC1_IRQn = 17, QDEC_IRQn = 18, LPCOMP_IRQn = 19, SWI0_IRQn = 20,
    SWI1_IRQn = 21, SWI2_IRQn = 22, SWI3_IRQn = 23, SWI4_IRQn = 24,
    SWI5_IRQn = 25.

    When these nrf51822's interrupts in their default priority, in which their priority don't be modified by using NVIC_SetPriority(), I want to know the processing sequence if many interrupts are triggered at the same time. And I want to know the processing sequence in the case of not using the Soft Device. I look forward to hearing from you soon.

Reply
  • Hi John,

    Thank you for your kindness and your answer. I read ARM Cortex M0 datasheet, and find what you have said. But that's not my best. I find the interrupts number of nrf51822 as follows,

    Reset_IRQn = -15, NonMaskableInt_IRQn = -14, HardFault_IRQn = -13,
    SVCall_IRQn = -5, DebugMonitor_IRQn = -4, PendSV_IRQn = -2, SysTick_IRQn = -1,

    /* ---------------------- nRF51 Specific Interrupt Numbers ---------------------- */

    POWER_CLOCK_IRQn = 0, RADIO_IRQn = 1, UART0_IRQn = 2, SPI0_TWI0_IRQn = 3,
    SPI1_TWI1_IRQn = 4, GPIOTE_IRQn = 6, ADC_IRQn = 7, TIMER0_IRQn = 8,
    TIMER1_IRQn = 9, TIMER2_IRQ = 10, RTC0_IRQn = 11, TEMP_IRQn = 12,
    RNG_IRQn = 13, ECB_IRQn = 14, CCM_AAR_IRQn = 15, WDT_IRQn = 16,
    RTC1_IRQn = 17, QDEC_IRQn = 18, LPCOMP_IRQn = 19, SWI0_IRQn = 20,
    SWI1_IRQn = 21, SWI2_IRQn = 22, SWI3_IRQn = 23, SWI4_IRQn = 24,
    SWI5_IRQn = 25.

    When these nrf51822's interrupts in their default priority, in which their priority don't be modified by using NVIC_SetPriority(), I want to know the processing sequence if many interrupts are triggered at the same time. And I want to know the processing sequence in the case of not using the Soft Device. I look forward to hearing from you soon.

Children
No Data
Related