Part Number: TMS320F28379D
Hello,
I'm working on a new design using the PN in the thread title. The hardware design includes a simple RS485 half-duplex arrangement.
The firmware design does not rely on interrupts but rather polling as the data flow rate and size is nominal.
On page 161 of the data sheet the SCI block diagram is shown below on the left. On page 2266 of the Tech Ref the SCI block diagram is shown below on the right.
They do not match. The design was predicated on the DataSheet block diagram being accurate as it makes the most sense which shows the RXENA bit gating the RX data stream.
However, I believe the Tech Reference is correct. I'm seeing RX data even though RXENA has been de-asserted when transmitting data. Due to the nature of half-duplex RS485 IC design, all data presented on the TX pin is simultaneously looped back to the RX pin.
The HW design is a strict master/slave arrangement. This hardware design is the slave side. The master sends a 2-byte command via RX and a short 11-byte packet is returned via TX. Because the RXENA is not gating the data, TX responses are feeding back into the RX line and being interpreted as commands. This has created a real issue in the HW design.
If the block diagram in the Tech Ref is indeed correct, it will work fine so long as a mechanism is provided to flush the RXSHF 8-bit register. However...
My questions are:
1) Confirm Tech Ref is the correct SCI block diagram.
2) I currently disable RX inputs by de-asserting the RXENA bit prior to transmitting the response packet. Once TX packet has been sent, I re-assert RXENA. Based on the SCI Tech Ref information, I see no reasonable way to clear/flush the RXSHF register after RXENA has been re-asserted. Therefore, even though RXENA has been de-asserted, 8 bits of TX data will be received into the RXSHF register. What am I missing?
3) I need a reasonable way to flush the RXSHF buffer. Since command/response occurs approx. every 100ms, it's impractical to do any sort of SCI re-boot every time RX is re-enabled.
Much appreciated and thank you in advance.
