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 Entries

C: int Ask_Key_UART ( int channel_num, int module_num )
4th: Ask_Key_UART ( channel_num\module_num -- flag )
Returns a flag indicating the receipt of a character on the specified serial channel. The flag is true (-1) if there is at least one character in the input FIFO of the specified channel. Otherwise the returned flag is false (0). See also Ch1_Ask_Key and Ch2_Ask_Key.

C: int Ch1_Ask_Key ( void )
4th: Ch1_Ask_Key ( -- flag )
Returns a flag indicating the receipt of a character on serial channel 1. The value set by the last execution of Set_UART_Number specifies the module number. The flag is true true (-1) if there is at least one character in the input FIFO. Otherwise the returned flag is false (0). The demonstration program shows how to use this function to revector serial I/O in a task. See also Ask_Key_UART.

C: void Ch1_Emit ( uchar character )
4th: Ch1_Emit ( char -- )
This function queues the specified character in the output FIFO for transmission on serial channel 1. The value set by the last execution of Set_UART_Number specifies the Wildcard number. 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. The demonstration program shows how to use this function to revector serial I/O in a task. See also Emit_UART.

C: uchar Ch1_Key ( void )
4th: Ch1_Key ( -- char )
Waits (if necessary) for receipt of a character from channel 1, and returns the received character. The value set by the last execution of Set_UART_Number specifies the Wildcard number. PAUSEs while waiting. The returned byte is the next pending character in the FIFO (that is, the oldest unretrieved character in the receive FIFO). The demonstration program shows how to use this function to revector serial I/O in a task. See also Key_UART.

C: int Ch2_Ask_Key ( void )
4th: Ch2_Ask_Key ( -- flag )
Returns a flag indicating the receipt of a character on serial channel 2. The value set by the last execution of Set_UART_Number specifies the Wildcard number. The flag is true true (-1) if there is at least one character in the input FIFO. Otherwise the returned flag is false (0). The demonstration program shows how to use this function to revector serial I/O in a task. See also Ask_Key_UART.

C: void Ch2_Emit ( uchar character )
4th: Ch2_Emit ( char -- )
This function queues the specified character in the output FIFO for transmission on serial channel 2. The value set by the last execution of Set_UART_Number specifies the Wildcard number. 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. The demonstration program shows how to use this function to revector serial I/O in a task. See also Emit_UART.

C: uchar Ch2_Key ( void )
4th: Ch2_Key ( -- char )
Waits (if necessary) for receipt of a character from channel 2, and returns the received character. The value set by the last execution of Set_UART_Number specifies the Wildcard number. PAUSEs while waiting. The returned byte is the next pending character in the FIFO (that is, the oldest unretrieved character in the receive FIFO). The demonstration program shows how to use this function to revector serial I/O in a task. See also Key_UART.

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