SMART I/O User’s Manual | Chapter 2 | |||
|
|
|
|
|
|
|
|
|
|
2.6.3SMTsettout Syntax
error_code SMTsettout(u_int8 mode);
Description
This function sets the timer output (TOUT) control.
Input
u_int8 mode
Output
error_code
Example
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).
SUCCESS
E_BMODE Unsupported mode
or standard
RetVal = SMTsettout(MODE_SQUARE);
TOUT
| Timer |
OFF | Stop |
| ON |
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.
|
|
|
|
Page | 2 - 20 | ©1996 PEP Modular Computers GmbH | March 12, 1996 |
|
|
|