Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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;
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top