Forum Discussion
Altera_Forum
Honored Contributor
20 years agoClever UARTs (Interrupt Driven)
Hello all, By this time I know that everybody is tired of this topic, but I can't seem to find a clear answer anywhere. Firstly, I am not using a RTOS but am wanting to use the RX & TX...
Altera_Forum
Honored Contributor
20 years agoHi Tyrone,
I'm doing a similar thing, but with only 7 UARTs, and I have no problems. Your initialisation is similar to mine except in the order things are done. I'd always register the ISR and setup the ring indexes BEFORE enabling the IRQs. Another thing, why are you enabling Tx IRQ here? Probably better to only enable Rx at this point. I only enable Tx after putting something in the Tx ring, the Tx ISR then disables the Tx IRQ when the ring is empty. I hope this is of some help. Banx.