Marty Kraimer wrote:
>
> When you enable the transmit interrupt an interrupt will occur as soon
> as the 1 character transmit buffer is empty, i.e. almost always
> immediately.
There are serial chips which will only generate an interrupt if
interrupts are enabled when the transmit buffer *goes* empty. A driver
for these would have to output the first character from the Write
function, and this is why some drivers work this way. However, if the
chip you have will do it, the approach Marty describes is much cleaner.
-- Andrew
___
.' `. Andrew Johnson, Head of Electronics
/ Royal ) Royal Greenwich Observatory
\ Greenwich Madingley Road, Cambridge, CB3 0EZ
| Observatory Tel: +44 1223 374823 Fax: 374700
+---------- WWW: http://www.ast.cam.ac.uk/~anj
- References:
- Re: Greenspring rs422 support Peregrine M. McGehee
- Re: Greenspring rs422 support Marty Kraimer
- Navigate by Date:
- Prev:
Re: Greenspring rs422 support Marty Kraimer
- Next:
Re: SNC crashes William Lupton
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Greenspring rs422 support Marty Kraimer
- Next:
Re: Greenspring rs422 support Peregrine M. McGehee
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|