SMART I/O User’s Manual

Chapter 2 SMART-BASE

 

 

 

 

 

 

 

 

 

 

2.6.8SMTstat Syntax

error_code SMTstat(u_int8 *value);

Description

This function reads the timer status register and clears it if set.

Input

u_int8 *value

Output

error_code

Example

Pointer to a variable in which to place the read value. 0 represents not set, 1 represents set

SUCCESS

or standard OS-9 error code (refer to the OS-9 Technical Manual Error Codes Section).

RetVal = SMTstat(buffer);

Description of the Timer Status Register (TSR)

7

6

5

4

3

2

1

0

ZDS

The timer status register contains one bit from which the zero detect status can be determined. The ZDS status bit (bit 0) is an edge-sensitive flip-flop that is set to one when the 24-bit counter decrements from $000001 to $000000. The ZDS status bit is cleared to zero following the direct reset operation or when the timer is halted. This register is always readable without consequence. A write access performs a direct reset operation if bit 0 in the written data is one!

 

 

 

 

Page

2 - 26

©1996 PEP Modular Computers GmbH

March 12, 1996

 

 

 

Page 66
Image 66
Pepper Computer RS485, RS232 user manual SMTstat Syntax, Description of the Timer Status Register TSR