V Varunme Member Apr 17, 2016 #1 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;
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;
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Apr 18, 2016 #2 More info please.... What doesn't work... Have you any more code... You mention "soft" UART... Do you mean software UART??? What compiler?
More info please.... What doesn't work... Have you any more code... You mention "soft" UART... Do you mean software UART??? What compiler?