Re: Serial Interrupt
- From: "Dick Grier" <dick_grierNOSPAM@.msn.com>
- Date: Wed, 21 May 2008 14:03:19 -0600
What Bruce and Paul say is correct. However, you need to recognize that
there is a limitation in the hardware that may affect your progress. The
standard UART does not allow you to set the parity bit separately from data.
Rather, parity is calculated by the UART hardware, and the bit is set by the
hardware. The UART does not support 9-bit data (which really is what most
protocols that use parity bit sync assume).
So... Even with a device driver modification, you'd also have to calculate
the actual parity (bit) required, and to set that parity immediatly prior to
sending the associated byte. Similarly, on receipt, parity is not a
separate bit, but is indicated by an error bit in the status register.
What you want to do (probably) is possible, but I suspect that you will have
to disable both the transmit and receive FIFOs, and process data
byte-by-byte.
Recognize that what I've said here is based on things that I did long ago,
in the days of 8-bit microprocessor programming. I've never tried to
implement the equivalent, very awkward, protocol in CE. IMO, your work is
cut out for you.
***
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
.
- Follow-Ups:
- Re: Serial Interrupt
- From: Bradley Remedios
- Re: Serial Interrupt
- References:
- Serial Interrupt
- From: Stefano
- Serial Interrupt
- Prev by Date: Re: C# Service for Windows CE 6.0 R2
- Next by Date: Re: C# Service for Windows CE 6.0 R2
- Previous by thread: Re: Serial Interrupt
- Next by thread: Re: Serial Interrupt
- Index(es):