UART Rx Preemption in Cortex M0

Discussion in 'Embedded Systems and Microcontrollers' started by arunjoec, Jul 14, 2016.

  1. arunjoec

    Thread Starter New Member

    Jul 14, 2016

    I'm using UART 2 as a higher priority interrupt than other UART ports in Nuc-220 ARM Cortex M0

    1. I want to know what happen if I use UART 2 Tx while inside a UART2 Rx interrupt Service Routine, will it become a pending interrupt or trigger an Tx interrupt at the same time?
    2. I'm using the UART2 Tx inside a UART2 Rx interrupt to communicate with a GSM module,so for each commands I send I would also get replies and these Replies will also create UART2 Interrupt of same priority.
    In this case will it preempt the current Rx Interrupt or become another Rx pending interrupt? or is there any ways to configure this in the Nuc-220 MC?
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    I would consult datasheet. It should list interrupt priority.