Hello everybody
I have read the xuartps.h. It is written that we can enable which interrupt by setting the interrupt mask according to this condition:
- A change in the modem signals
- Data in the receive FIFO for a configurable time without receiver activity
- A parity error
- A framing error
- An overrun error
- Transmit FIFO is full
- Transmit FIFO is empty
- Receive FIFO is full
- Receive FIFO is empty
- Data in the receive FIFO equal to the receive threshold
I got example from Xilinx SDK. The interrupt mask can be set as:
IntrMask = XUARTPS_IXR_TOUT | XUARTPS_IXR_PARITY | XUARTPS_IXR_FRAMING | XUARTPS_IXR_OVER | XUARTPS_IXR_TXEMPTY | XUARTPS_IXR_RXFULL | XUARTPS_IXR_RXOVR;
But when I change it to:
IntrMask = XUARTPS_IXR_TOUT | XUARTPS_IXR_RXFULL | XUARTPS_IXR_RXOVR;
The program is still interrupted when I send something to the uart using XUartPs_Send.
Can anybody hep me? Thanks before