User`s manual

BL4S100 Users Manual 44
Stop bits: 1
Flow control: None
Once you compile and run this program, configure the serial port using the following
menu options in the Dynamic C STDIO window.
Type in the Hyperterminal window to send characters to the sample program. The char-
acters typed will be echoed in the terminal emulation program and will be displayed on
the top of the Dynamic C STDIO window with a message displaying whether there was
an error or not. There may be some differences for special characters such as new lines
(enter key), delete, backspace, and others. Each character sent will also increment
either the successful or the error counter, depending on the parity of both the BL4S100
and the terminal emulation program.
COMPUTER3WIRE.C—This sample program demonstrates basic initialization for a sim-
ple three-wire RS-232 connection. Characters typed in either the Dynamic C STDIO
window or in a serial terminal emulation program are echoed in both displays.
The setup and run instructions are the same as for the COMPUTER_PARITY.C sample
program.
COMPUTER5WIRE.C—This sample program demonstrates basic initialization for a sim-
ple five-wire RS-232 connection. Characters typed in either the Dynamic C STDIO
window or in a serial terminal emulation program are echoed in both displays.
The setup and run instructions are the same as for the
COMPUTER_PARITY.C sample
program.
Menu
q - Quit
s - Send "Sample Text"
r - Reset Counters
n - Set No Parity
e - Set Even Parity
o - Set Odd Parity