SMART I/O User’s Manual
March 12, 1996
©1996 PEP Modular Computers GmbH
Page 2 - 22
Chapter 2 SMART-BASE
Example for a Square Wave Generator
The Timer Control Register
In this configuration, the timer produces a square wave at the TOUT pin
which is connected to the user’s circuitry. The TIN pin may be used as a
clock input. The processor loads the counter preload registers and the timer
control register and then enables the timer. When the 24-bit counter passes
from $000001 to $000000, the ZDS status bit is set and the TOUT is
toggled. At the next clock to the 24-bit counter it is again loaded with the
contents of the CPRs and thereafter decrements.
7
6
5
4
3
2
1
0
TOUT/TIAC
Control
Z.D.
Control
•
Clock
Control
Timer
Enable
0
1
x
0
0
00 or 1x
Changed