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>>

Glossary Quick Reference

Configuration Functions
int Read_UART_Number( void )
void Set_Baud ( uint baudrate, int channel, int module )
void Set_Data_Format ( int numbits, int stopBits, int parity, int channel, int module )
void Set_UART_Number( int module )
int Set_Protocols ( int ch1_modem, int ch1_protocol, int ch2_protocol, int module )

Constants
CHANNEL1 CHANNEL2
EVEN_PARITY HIGH_PARITY
LOW_PARITY NO_PARITY
NOT_USED ODD_PARITY
RS232 RS422
RS485

RS485 Direction Control
void RS485_Rcv_UART ( int channel_num, int module_num )
void RS485_Rcv_When_Xmit_Done ( int channel_num, int module_num )
void RS485_Xmit_UART ( int channel_num, int module_num )

Serial I/O Primitives
int Ask_Key_UART ( int channel_num, int module_num )
int Ch1_Ask_Key ( void )
void Ch1_Emit ( uchar character )
uchar Ch1_Key ( void )
int Ch2_Ask_Key ( void )
void Ch2_Emit ( uchar character )
uchar Ch2_Key ( void )
void Emit_UART ( uchar character, int channel_num, int module_num )
uchar Key_UART ( int channel_num, int module_num )

Utility Functions
void End_Break ( int channel_num, int module_num )
void Is_DTR ( int desired_state, int module_num )
void Is_RTS ( int desired_state, int module_num )
int Read_CTS ( int module_num )
int Read_DCD ( int module_num )
int Read_DSR ( int module_num )
void Send_Break ( int channel_num, int module_num )
void Wait_Until_Xmit_Done ( int channel_num, int module_num )

Demonstration Program Constants
DEFAULT_BAUDRATE DEFAULT_BITS_PER_CHAR
DEFAULT_MODEM_SUPPORT DEFAULT_PARITY
DEFAULT_PROTOCOL DEFAULT_STOP_BITS
UART_MODULE_NUM

Demonstration Program Functions
int Default_UART_Init ( int module_num )
void Run_Demo ( void )

<< 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