Pepper-computer Modular Computers RS485 Uživatelský manuál Strana 60

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 320
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 59
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.
Zobrazit stránku 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 319 320

Komentáře k této Příručce

Žádné komentáře