Serial Wombat
a general-purpose digital interface device for hobbyists, engineers and students

 


Home
Overview
Protocol
Documentation
Channel Modes
Direct Control
Controlled Pin
Raw A/D
A/D Averaging
A/D 1st Order Filtering
Matrix Keypad
Servo Control
Analog Direct
Analog Follow
Rotary Encoder
Debouncing
Counter
Hysteresis
Morse Code
Pulse
Unipolar Stepper
LCD Driver 1
LCD Driver 2
HW Pulse Meas.
2D Lookup
SPI Master
HD44780 Generic
Remote Control
DataLogger
Min-Max
Public Data
Timed IO
Getting Started
Connectivity
Pin Mode SDK Beta
Sample Projects
Downloads
Contact Us
Purchase
Forum

Did you know...

 

Controlled

This mode is used to indicate that a channel is being controlled by another channel. For example, the CHANNEL_MODE_ROTARY_ENCODER requires two pins to monitor the status of the encoder. The first pin is configured to rotary encoder mode. During this configuration, the second pin is specified as part of the initialization of the first pin. The initialization of the rotary encoder function places this second pin in CHANNEL_MODE_CONTROLLED. In CHANNEL_MODE_CONTROLLED no updates are made to the controlled pins buffer, unless the controlling pin causes the update.
CHANNEL_MODE_CONTROLLED can also be used for testing. When the host explicitly sets a pin to CHANNEL_MODE_CONTROLLED the host sets the state of the pin (high, low, or high impedance) and also sets the value of the public data buffer. This allows the user to set any desired value for the public data buffer. For example, suppose the user configured pin 17 as a hysteresis output based upon analog data provided by pin 2. For testing purposes, the user could initialize pin 2 as CHANNEL_MODE_CONTROLLED in order to simulate a specific value from the A/D converter. This helps facilitate automated testing, and allows testing at boundry and out-of-bounds conditions that may not be easily created with the real system attached to an A/D.

Return packet is an echo of the sent packet.

 

Copyright Wombat Interface Products, 2005-2008. All Rights Reserved.