This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C / C ++編譯器
Sorry,myTMS320F28035 SCI example can't work normally,
When I lost the word from the computer to the TMS320F28035, TMS320F28035 can not return the word to me, he will only have a reflex signal to me, but not the Example above the program back, and ask where is the problem?
Hello,
What example are you using? Can the TMS320F28035 receive a word from the computer?
Regards,
Cody
Mickey,
You should check the SCI receive status register(SCIRXST), it has many helpful bits RXERROR, BRKDT, FE, OE, and PE. These bits will tell you what goes wrong when receiving messages from the computer.
If none of these bits are set you probably are not receiving a signal from the PC and should check the following:
1. Your PC is transmitting, the best way is to put a Oscilloscope on the PC's TX line.
2. Hardware connections from the PC's TX to the F28035's RX line.
3. Check your GPIO configurations. To do this you should use a wire to connect between the SCIa Rx and SCIa Tx. You can then send a message, and check that it matches the result you Receive, if nothing appears then you have something configured incorrectly on the F28035.
Regards,
Cody
The "(SciaRegs.SCIFFRX.bit.RXFFST! = 1) {}" line means that the code should wait there unless there is exactly one word in the receive FIFO. There is a description of these bits in the SCI User Guide. RXFFST tells you how many unread messages are inside of the FIFO. The device will sit there if it doesn't have EXACTLY 1 message, if it has zero messages, or more than one message it could stop forever at that line.
Regards,
Cody
Mickey,
to determine how many unread messages have been received you should look at RXFFST. RXFFST simply indicates the number of unread messages in the receive FIFO. A full description can be found in the SCI users guide.
Regards,
Cody
Cody,
Thank you for answering questions, I try to find a problem, I am asking you questions, thank you very much.
Regards,
Micky