This directory contains an I/O library for the MCB251 target board. The I/O library can be used to perform serial communication via the external serial device of the MCB251 board. The MCB251 library contains several functions which are described below. The I/O routines work with XON/XOFF protocol and can be directly linked together with C251 applictions. The library is available in three versions: MCB251IO.LIB for MCB251 board version 1 (with Intel 251 A-step device) MCB251V2.LIB for MCB251 board version 2 (for Intel 251 C-step and Temic) Note: MCB251IO.LIB & MCB251V2.LIB uses parameter passing for C251 Version 1 MCB251C2.LIB for MCB251 board version 2 (for Intel 251 C-step and Temic) Note: MCB251C2 uses parameter passing for C251 Version 2 Function Description -------------------------------------------------------------------------- char _getkey (void) C function _getkey which accesses the external SIO device. char putchar (char) C function putchar which accesses the external SIO device. bit instat (void) checks if a character is available in the input buffer of the external SIO device. If instat returns 0 no character is available. If instat returns 1 a character can be read via the function _getkey. The instat function is identical with checking the bit RI of the 8051 serial interface. void XSIOinit (void) initializes the external SIO interface for 8 bits, 1 stop bit, no parity. The baudrate can be defined within the source file XSIOINIT.A51. The default baudrate is 57600 Baud (bps).
fred1144