Hi, one of the possible solution is to start timer on transmitter empty event, initiated with a bit duration times bitframe length value (typical x10..11). During timer reload event you can simply switch RS485 line to rx mode. I use this scenario in my design with no problem. Grzegorz --- In lpc2000@yahoogroups.com, "gfaurie1" <gilles.faurie@p...> wrote: > Hello, > > I try to develop a RS485 driver, but i have a problem. > > As you know, you must stay in reception and when you have to transmit, > you change direction to be in transmission only during transmission. > When the last character has been transmitted you turn back in > reception. > > Problem is that i have no interruption on shift register empty. I have > an interruption when transmitter is empty but if i change direction at > this time, character which is in shift register is not transmitted, > and i lose it. > The only solution that i suppose is to check state of shist register > (LSR) in polling but i'd like to find a more real time solution > > Who can help me ? > > Thank
Message
Re: RS485
2005-09-19 by Grzegorz
Attachments
- No local attachments were found for this message.