I have looked at all the uart interrupt example, it all send data only once, so I have modified the xuartlite_intr_example.c so that it can send the data for 6 times using for loop.I hook up two uart, uart 0 is the usb so I can see the result from my PC, uart 1 is connect to the Pmod for a physical loop,only the uart 1 was connected to the interrupt controler. During the test the data only be send in the first time, the other 5 times there were nothing. But the TotalReceivedCount and TotalSentCount in void SendHandler and void RecvHandler all show that 32 bytes data were all been send and receive, it feels like the interrupt save all the data from last time and didnt reset it or the interrupt didnt restarted after the first time. I am wondering if there are some examples that can show me how to send the data repeatedly or somebody can have a look at my code main.c. I just simplely add a for loop for the UartLiteIntrExample to repeat 6 times and XUartLite_DisableInterrupt(&UartLite);XUartLite_ResetFifos(&UartLite); at the end to clear the fifo and disable interrupt. Any help would be appreciated.
Question
martin16
Hello
I have looked at all the uart interrupt example, it all send data only once, so I have modified the xuartlite_intr_example.c so that it can send the data for 6 times using for loop.I hook up two uart, uart 0 is the usb so I can see the result from my PC, uart 1 is connect to the Pmod for a physical loop,only the uart 1 was connected to the interrupt controler. During the test the data only be send in the first time, the other 5 times there were nothing. But the TotalReceivedCount and TotalSentCount in void SendHandler and void RecvHandler all show that 32 bytes data were all been send and receive, it feels like the interrupt save all the data from last time and didnt reset it or the interrupt didnt restarted after the first time. I am wondering if there are some examples that can show me how to send the data repeatedly or somebody can have a look at my code main.c. I just simplely add a for loop for the UartLiteIntrExample to repeat 6 times and XUartLite_DisableInterrupt(&UartLite);XUartLite_ResetFifos(&UartLite); at the end to clear the fifo and disable interrupt. Any help would be appreciated.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.