PIC32 multiple UART interrupt

Varunme

Member
I have two UART interrupts, to initialize it, below code doesnt works,
what may be the problem?
someone kindly help me


Code:
   UART2_Init(9600); // Initialize Soft UART at 14400 bps
    Delay_ms(200);

    UART1_Init(9600);
    Delay_ms(200);

    DHT11_Init();
   
    U1IP0_bit = 0;                     // Set UART2 interrupt
    U1IP1_bit = 1;                     // Set interrupt priorities
    U1IP2_bit = 1;                     // Set UART2 interrupt to level 6

    U1RXIE_bit = 1;

    EnableInterrupts();
             
    U1RXIF_bit = 0;
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…