Start Back Next End
  
ZBasic System Library
101
ZBasic Microcontrollers
This call sequence prepares software-based channel 4 for transmit-only using pin 12, eight data bits, no
parity and non-inverted logic.
Call DefineCom(2, 0, 0, &H07, 2)
Call OpenCom(2, 19200, iq, oq)
This call sequence prepares hardware-based channel 2 for seven data bits, no parity, and two stop bits.
Compatibility
This routine is not available in BasicX compatibility mode; you must use DefineCom3().  Additionally,
BasicX does not support 8-bit plus parity modes nor does it support the “Ignore Parity” mode. 
Furthermore, in BasicX characters received in 7-bit/no parity mode are aligned toward the MSB while in
this implementation they are properly aligned toward the LSB.  The 5-bit and 6-bit modes are only
supported for native mode targets.
For mega32-based ZX devices (e.g. the ZX-24), the ability to define the characteristics of Com1 is not
supported nor is half-duplex bussed mode supported.  Specifying the same pin for rx and tx on these
devices will produce undefined results.
See Also
Previous page Top Next page