![background image](http://html1.mh-extra.com/html/icp-das-usa/i-8411/i-8411_user-manual_3619301086.webp)
I-8000 Series (C Language Based) User Manual, Version 1.0.1 Page: 86
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4.1.3.
API for standard COM port
The standard COM port is used to upload program from PC to the µPAC-5000.
Tips & Warnings
(C style) Standard COM port functions only can be used with the COM1
port, the following configurations of the COM1 port are fixed:
Baudrate = 115200 bps, Data format = 8 bits
Parity check = none, Start bit = 1, Stop bit = 1
API for checking if there is any data in the input buffer
1. Kbhit()
Before reading data from standard I/O port, the kbhit() must be called to check
whether there is any data currently in the input buffer.
API for reading data from standard I/O port
2. Getch()
After kbhit() confirms that the input buffer contains data, the Getch() must be called
to read data from the input buffer.