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: void Emit_UART ( uchar character, int channel_num, int module_num )
4th: Emit_UART ( char\channel_num\module_num -- )
Queues the specified character in the output FIFO for transmission on the specified serial channel. If the output FIFO is full, this routine waits and PAUSEs until there is room in the FIF0, then puts the specified character in the FIFO so that it will be transmitted. See also Ch1_Emit and Ch2_Emit.

C: void End_Break ( int channel_num, int module_num )
4th: End_Break( channel_num\module_num -- )
Ends the break sequence that was initiated by Send_Break on the specified channel, thereby returning the specified output to the idle high (mark) state at the UART.

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

C: HIGH_PARITY 4th: HIGH_PARITY ( -- n )
A constant (= 0x28) that, when passed as a parameter to the Set_Data_Format function, configures the channel’s data format for high parity, meaning that the parity bit is high at the UART. This is also known as "mark parity".

C: void Is_DTR ( int desired_state, int module_num )
4th: Is_DTR ( desired_state\module_num -- )
Writes the specified state to the DTR (Data Terminal Ready) output on channel1. If the specified state is true (nonzero), the signal is made active (i.e., high in UART register, low at the UART output pin, and high on the RS232 cable). If the specified state is false (zero), the signal is made 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: void Is_RTS ( int desired_state, int module_num )
4th: Is_RTS ( desired_state\module_num -- )
Writes the specified state to the RTS (Request To Send) output on channel1. If the specified state is true (nonzero), the signal is made active (i.e., high in UART register, low at the UART output pin, and high on the RS232 cable). If the specified state is false (zero), the signal is made 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: uchar Key_UART ( int channel_num, int module_num )
4th: Key_UART ( channel_num\module_num -- char )
Waits (if necessary) for receipt of a character from the specified channel and module, and returns the received character. PAUSEs while waiting. The returned byte is the next pending character in the FIFO (that is, the oldest unretrieved character in the receive FIFO). See also Ch1_Key and Ch2_Key.

C: LOW_PARITY
4th: LOW_PARITY ( -- n )
A constant (= 0x38) that, when passed as a parameter to the Set_Data_Format function, configures the channel’s data format for low parity, meaning that the parity bit is low at the UART. This is also known as "space parity".

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