EasyManua.ls Logo

PEP Modular Computers Modular Computers RS485 - Smtselin

Default Icon
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SMART I/O Users 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.

Table of Contents