EasyManua.ls Logo

PEP Modular Computers Modular Computers RS485 - Smtsettout

Default Icon
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SMART I/O Users Manual
March 12, 1996
©1996 PEP Modular Computers GmbH
Page 2 - 20
Chapter 2 SMART-BASE
2.6.3 SMTsettout
Syntax
error_code SMTsettout(u_int8 mode);
Description
This function sets the timer output (TOUT) control.
Input
u_int8 mode
Two modes of TOUT control are available. They are:
MODE_PORTC
tout has the Simple I/O function.
MODE_SQUARE
tout toggles on counter zero.
When the timer is stopped, tout is high (see diagram).
Output
error_code SUCCESS
E_BMODE
Unsupported mode
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMTsettout(MODE_SQUARE);
T
OUT
OFF
ON
Timer
Stop
t
The high state of TOUT illustrated in the above diagram shows that the
output is deactivated i.e. OFF. Only when TOUT is in the low state can a
load be driven.

Table of Contents