PIC32 multiple UART interrupt

Status
Not open for further replies.

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;
 
More info please.... What doesn't work... Have you any more code... You mention "soft" UART... Do you mean software UART???

What compiler?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…