Bit mode – Epson S1C88650 User Manual

Page 96

Advertising
background image

88

EPSON

S1C88650 TECHNICAL MANUAL

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Programmable Timer)

8-bit data

High-order 8-bit data

[8-bit mode]

8-bit data

Timer 0
input clock

Timer 1
input clock

Interrupt request
TOUT output

Interrupt request
TOUT output

[16-bit mode]

Low-order 8-bit data

Timer 0
input clock

Timer 0
underflow
signal

Interrupt request
TOUT output

Timer 0

Timer 1

Timer 0

Timer 1

Fig. 5.10.2.1 Counter configuration in 8- and 16-bit mode (example of Timers 0 and 1)

Table 5.10.2.1(a) Control registers in 8-bit mode (example of Timers 0 and 1)

SR R/W

Address Bit

Name

Function

Comment

1

0

D7

D6

D5

D4

D3

D2

D1

D0

00FF30

MODE16_A

PTNREN_A

PTOUT0

PTRUN0

PSET0

CKSEL0

"0" when being read

Reserved register

"0" when being read

0

0

0

0

0

0

0

R/W

R/W

R/W

R/W

R/W

W

R/W

PTM0–1 8/16-bit mode selection

External clock 0 noise rejecter selection

R/W register

PTM0 clock output control

PTM0 Run/Stop control

PTM0 preset

PTM0 input clock selection

16

-

bit

x

1

Enable

1

On

Run

Preset

External clock

8

-

bit

x

2

Disable

0

Off

Stop

No operation

Internal clock

00FF31 D7

D6

D5

D4

D3

D2

D1

D0

PTOUT1

PTRUN1

PSET1

CKSEL1

R/W register

PTM1 clock output control

PTM1 Run/Stop control

PTM1 preset

PTM1 input clock selection

Constantly "0" when

being read

Reserved register

"0" when being read

0

0

0

0

0

R/W

R/W

R/W

W

R/W

0

Off

Stop

No operation

Internal clock

1

On

Run

Preset

External clock

Table 5.10.2.1(b) Control registers in 16-bit mode (example of Timers 0 and 1)

SR R/W

Address Bit

Name

Function

Comment

1

0

D7

D6

D5

D4

D3

D2

D1

D0

00FF30

MODE16_A

PTNREN_A

PTOUT0

PTRUN0

PSET0

CKSEL0

"0" when being read

Reserved register

"0" when being read

0

0

0

0

0

0

0

R/W

R/W

R/W

R/W

R/W

W

R/W

PTM0–1 8/16-bit mode selection

External clock 0 noise rejecter selection

R/W register

Invalid (fixed at "0")

PTM0 Run/Stop control

PTM0 preset

PTM0 input clock selection

16

-

bit

x

1

Enable

1

Invalid

Run

Preset

External clock

8

-

bit

x

2

Disable

0

Fixed at "0"

Stop

No operation

Internal clock

00FF31 D7

D6

D5

D4

D3

D2

D1

D0

PTOUT1

PTRUN1

PSET1

CKSEL1

R/W register

PTM1 clock output control

Invalid (fixed at "0")

Invalid (fixed at "0")

Invalid (fixed at "0")

Constantly "0" when

being read

Reserved register

"0" when being read

0

0

0

0

0

R/W

R/W

R/W

W

R/W

0

Off

Fixed at "0"

Fixed at "0"

Fixed at "0"

1

On

Invalid

Invalid

Invalid

Note: The register names contain a timer number (0–7) to identify the timer to which the register belongs.

The following explanation uses "x" instead of the timer number except when it is required. For
example, PTRUNx represents PTRUN0 through PTRUN7. Furthermore, a pair of timers are
described as Timer(L) and Timer(H) in explanations for 16-bit mode.
Timer(L) = Timer 0, Timer 2, Timer 4 or Timer 6
Timer(H) = Timer 1, Timer 3, Timer 5 or Timer 7

This is used for register names.

Advertising