2 smtselin, 2 smtselin -18, Smart i/o user’s manual – Pepper Computer Modular Computers RS485 User Manual

Page 58: Chapter 2 smart-base

Advertising
background image

SMART I/O User’s Manual

March 12, 1996

©1996 PEP Modular Computers GmbH

Page 2 - 18

Chapter 2 SMART-BASE

2.6.2 SMTselIn

Syntax

error_code SMTselIn(u_int8 mode);

Description

This function selects one of four possible counter/timer input (TIN) configu-

rations utilizing the 6MHz internal counter/timer clock.

Input

u_int8 mode

This represents the four input configurations. They

are:

MODE00

The Simple I/O/TIN input pin carries

the Simple I/O and the CLK and prescaler are used.

The prescaler is decremented on the falling transition

of the clock pin; the 24-bit counter is decremented,

rolls over or is loaded from the counter preload

registers when the prescaler rolls over from $00 to

$1F.

MODE01

The Simple I/O/TIN serves as a timer

input and the CLK and prescaler are used. The

prescaler and counter are decremented as in

MODE00.

MODE10

The Simple I/O/TIN pin serves as a

timer input and the prescaler is used. The prescaler is

decremented following the rising transition of the

TIN pin after being synchronized with the internal

clock. The 24-bit counter is decremented, rolls over

or is loaded from the counter preload registers when

the prescaler rolls over from $00 to $1F.

Advertising
This manual is related to the following products: