beautypg.com

Zilog Z08470 User Manual

Page 38

background image

< %27 2GTKRJGTCNU

7UGT /CPWCN

UM008101-0601

Counter/Timer Channels

Bit 7 = 1. Each channel is enabled to generate an interrupt request sequence
when the down-counter reaches a zero-count condition. To set the interrupt
bit to 1 in any of the four Channel Control registers an interrupt vector is
written to the CTC before operation begins. Channel interrupts may be
programmed in either Counter or Timer mode. If an updated channel
control word is written to a channel in operation, with bit 7 set, the interrupt
enable selection is not retroactive to a preceding zero-count condition.

Bit 7 = 0. Channel interrupts disabled.

Bit 6 = 1. Counter mode selected. The down-counter is decremented by
each triggering edge of the External clock (CLK/TRG) input. The prescaler
is not used.

Bit 6 = 0. Timer mode selected. The prescaler is clocked by the System
clock

Φ, and the output of the prescaler in turn clocks the down-counter.

The output of the down-counter (the channel’s ZC/TO output) is a uniform
pulse train of period given by the product as shown below

8

-

$

4

CLK/TRG Edge
Section

R/W

1
0

Rising Edge
Falling Edge

3

Time Trigger*

R/W

1
0

CLK/TRG Pulse Starts Timer
Automatic trigger when time constant is loaded

2

Time Constant

R/W

1
0

Time Constant Follows
No Time Constant Follows

1

Reset

R/W

1
0

Software Reset
Continue Operation

0

Control or Vector

R/W

1
0

Control
Vector

Bit
Number

Field

R/W

Value

Description

*TIMER mode only

This manual is related to the following products: