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



Connecting to the Wildcard Bus

Sellecting the Wildcard Address


Initializing the Wildcards

C code to initialize the DC Relay Wildcard (pdf)

Forth code to initialize the DC Relay Wildcard (pdf)

Controlling a Relay

C code to control the DC Relay Wildcard (pdf)

Forth code to control the DC Relay Wildcard (pdf)


DC Relay Wildcard Users Guide

<< Previous | Next>>


This section describes the software that enables you to control the DC Relay Wildcard. We first start with a description of how wildcards are addressed, then move on to how the relays are controlled, and finally present you with example software that initializes and controls the relays.

Initializing the Wildcards

Several bytes of memory on the Mosaic Controller starting at C000H are used to communicate with the DC Relay Wildcard. The page used for the memory’s extended address corresponds to the module address. For example, to communicate with wildcard 1 on the Mosaic Controller, use the 6 byte memory block starting at address C000H on page 1.

The DC Relays on the DC Relay Wildcard are controlled by a Xilinx CPLD (Complex Programmable Logic Device). The DC Relay control lines on the CPLD must be configured as outputs for proper operation (on power up, the control lines are initialized as inputs). To initialize the module, simply create a function that is defined as follows. Both C and FORTH versions are presented.
Controlling A Relay
Once you have initialized the module, use Control_DC_Relay to turn on or off the relays and Read_DC_Relay_Status to read the status of all the relays. Note that the control lines are active low, which means that to turn a relay on, you have to write a 0 to the relay.

Now you are ready to start using your DC Relay Wildcard. All of the software routines listed in this document are also on the distribution diskette that accompanies each module.

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