2012-06-04 07:19 AM
I'm implementing a half duplex communication on a STR912 mcu.
My problem is the usual, to know when the last bit is transmitted in the last byte. This to know when to turn off the transmit enable to the RS485 driver. The enable signal is controlled with a separate IO-pin. I'm primarily trying to find an application note describing this. I've not even managed to find a reasonable complete description of the uart's functionality, just bits and pieces here and there. Anyone with info out there? Thanks in advance. TOK2012-06-04 11:25 PM
2012-06-05 12:14 AM
Thanks, that confirmed my suspicion of the need to poll the status bits. Why can't they make an interupt based on this? It would be so much simpler if the 'busy off' transition was made an interupt, not only for a half duplex, but anywhere there is a need to reduce driver power for instance.
Very good help, thanks a lot. BTW You use a single byte buffer for this, no fifo? TOK2012-06-06 01:01 AM
we use send buffer up to 256bytes long. we also have fifo enabled.