manufacturer of I/O-rich SBCs, operator interfaces, handheld instruments, and development tools for embedded control low cost single board computers, embedded controllers, and operator interfaces for scientific instruments & industrial control development tools for embedded control order our low cost I/O-rich embedded control products embedded controller manufacturer profile single board computers & embedded controllers development tools & starter kits for your embedded design operator interfaces with touchscreens and graphical user interface plug-in expansion modules for digital & analog I/O C language & Forth language integrated development tools, IDE single board and embedded computer accessories embedded controller enclosures, bezels, environmental gaskets
Table of Contents

Introduction

Serial Communications Basics

RS232

RS422

RS485

UART Wildcard Hardware

Connecting To Mosaic Controller

Selecting the Module Address

RS422/485 Configuration Jumpers

Protocol Configuration and Direction Control Registers

Modem Handshaking Signals

UART Module Field Header

Cable Connections

Software

Overview of the Software Device Driver Functions

Installing the UART Module Driver Software

Using the Driver Code with C

Using the Driver Code with Forth

UART Direction Control in a Multitasking System

Glossary

Overview of Glossary Notation

Glossary Quick Reference

Glossary Entries

C Demonstration Program (in pdf)

Forth Demonstration Program (in pdf)

Hardware Schematics (in pdf)

UART Wildcard User Guide

<< Previous | Next>>

C: NOT_USED
4th: NOT_USED ( -- n )
A constant (= 0) that, when passed as a parameter to the Set_Protocols function, indicates that the specified channel is not in use.

C: NO_PARITY
4th: NO_PARITY ( -- n )
A constant (= 0) that, when passed as a parameter to the Set_Data_Format function, configures the channel’s data format for no parity.

C: ODD_PARITY
4th: ODD_PARITY ( -- n )
A constant (= 0x08) that, when passed as a parameter to the Set_Data_Format function, configures the channel’s data format for odd parity, meaning that the sum of the bits is constrained to be odd.

C: int Read_CTS ( int module_num )
4th: Read_CTS ( module_num -- flag )
Returns the current state of the CTS (Clear To Send) input on channel1. Returns true (-1) if the signal is active (i.e., high in UART register, low at the UART output pin, and high on the RS232 cable). Returns false (zero) if the signal is inactive (i.e., low in the UART register, high at the UART output pin, and low on the RS232 cable). This signal is typically used for modem handshaking.

C: int Read_DCD ( int module_num )
4th: Read_DCD ( module_num -- flag )
Returns the current state of the DCD (Data Carrier Detect) input on channel1. Returns a true (-1) flag if the signal is active (i.e., high in UART register, low at the UART output pin, and high on the RS232 cable). Returns false (zero) if the signal is inactive (i.e., low in the UART register, high at the UART output pin, and low on the RS232 cable). This signal is typically used for modem interfacing.

C: int Read_DSR ( int module_num )
4th: Read_DSR ( module_num -- flag )
Returns the current state of the DSR (Data Set Ready) input on channel1. Returns true (-1) if the signal is active (i.e., high in UART register, low at the UART output pin, and high on the RS232 cable). Returns false (zero) if the signal is inactive (i.e., low in the UART register, high at the UART output pin, and low on the RS232 cable). This signal is typically used for modem handshaking.

C: int Read_UART_Number ( void )
4th: Read_UART_Number ( -- module_num )
Returns the module number that was set by the last execution of Set_UART_Number; see its glossary entry.

<< Previous | Next>>


Home|Site Map|Products|Manuals|Resources|Order|About Us
Copyright (c) 2006 Mosaic Industries, Inc.
Your source for single board computers, embedded controllers, and operator interfaces for instruments and automation