Home » Source Code » Nine Bit serial port

Nine Bit serial port

Krionix
2017-11-03 20:21:39
The author
View(s):
Download(s): 0
Point (s): 1 
Category Category:
C,c++C,c++ AllAll

Description

9 bit serial port communication with PC UART.  harder to do on a regular Windows or Linux machine, there's a driver between the user mode program and the UART. The driver generates a "transmit buffer empty" status bit, like WaitCommmEvent() for EV_TXEMPTY on Windows, but this doesn't include the fifo empty status, it only indicates that the buffer is empty. A workaround would be to wait for the buffer empty status and then sleep() long enough to ensure that the fifo is emptied. A fifo is typically 16 bytes deep so sleep for 16 times the bit time. You'll need the datasheet for the UART on the card you selected to know these details for sure
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.97 kB
.gitignore338.00 B2016-10-30 11:30
LICENSE1.05 kB2016-10-30 11:30
ninebituart.pro383.00 B2016-10-30 11:30
01.97 kB
main.cpp3.51 kB2016-10-30 11:30
uartcommunicator.cpp6.16 kB2016-10-30 11:30
uartcommunicator.h2.71 kB2016-10-30 11:30
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

Nine Bit serial port (5.70 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D