3 smtsettout, 3 smtsettout -20, Smart i/o user’s manual – Pepper Computer Modular Computers RS485 User Manual

Page 60: Chapter 2 smart-base

Advertising
background image

SMART I/O User’s 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.

Advertising
This manual is related to the following products: