CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Programmable Timer)

4.10.8 I/O memory of programmable timer

Table 4.10.8.1 shows the I/O addresses and the control bits for the programmable timer.

Table 4.10.8.1 Control bits of programmable timer

 

Address

 

 

Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Comment

 

 

 

 

 

 

 

D3

 

D2

 

D1

D0

Name

Init 1

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

EVCNT

 

FCSEL

PLPOL

0 3

2

 

 

 

 

 

 

 

 

 

Unused

 

 

 

 

 

 

 

 

FFC0H

 

 

EVCNT

0

Event ct.

Timer

 

Timer 0 counter mode selection

 

 

 

 

 

 

 

R

 

 

 

R/W

 

FCSEL

0

With NR

No NR

 

Timer 0 function selection (for event counter mode)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLPOL

0

 

 

 

 

 

 

 

 

 

Timer 0 pulse polarity selection (for event counter mode)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CHSEL

 

PTOUT

 

CKSEL1

CKSEL0

CHSEL

0

Timer1

Timer0

 

TOUT output channel selection

 

 

 

 

 

 

 

FFC1H

 

 

 

PTOUT

0

 

On

 

Off

 

TOUT output control

 

 

 

 

 

 

 

 

 

 

 

R/W

 

CKSEL1

0

OSC3

OSC1

 

Prescaler 1 source clock selection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CKSEL0

0

OSC3

OSC1

 

Prescaler 0 source clock selection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTPS01

PTPS00

PTRST0

PTRUN0

PTPS01

0

 

 

 

 

 

 

 

 

 

 

Prescaler 0

[PTPS01, 00]

0

1

2

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

division ratio

 

 

 

 

 

 

 

 

 

 

PTPS00

0

 

 

 

 

 

 

 

 

 

 

Division ratio

1/1

1/4

1/32

1/256

 

 

FFC2H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

selection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

 

W

R/W

PTRST03

2

Reset

Invalid

 

Timer 0 reset (reload)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTRUN0

0

Run

Stop

 

Timer 0 Run/Stop

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTPS11

PTPS10

PTRST1

PTRUN1

PTPS11

0

 

 

 

 

 

 

 

 

 

 

Prescaler 1

[PTPS11, 10]

0

1

2

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

division ratio

 

 

 

 

 

 

 

 

 

 

PTPS10

0

 

 

 

 

 

 

 

 

 

 

Division ratio

1/1

1/4

1/32

1/256

 

 

FFC3H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

selection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

 

W

R/W

PTRST13

2

Reset

Invalid

 

Timer 1 reset (reload)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTRUN1

0

Run

Stop

 

Timer 1 Run/Stop

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD03

 

RLD02

 

RLD01

RLD00

RLD03

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

RLD02

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFC4H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 0 reload data (low-order 4 bits)

 

 

 

 

 

 

 

R/W

 

RLD01

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD00

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD07

 

RLD06

 

RLD05

RLD04

RLD07

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

RLD06

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFC5H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 0 reload data (high-order 4 bits)

 

 

 

 

 

 

 

R/W

 

RLD05

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD04

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD13

 

RLD12

 

RLD11

RLD10

RLD13

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

RLD12

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFC6H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 1 reload data (low-order 4 bits)

 

 

 

 

 

 

 

R/W

 

RLD11

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD10

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD17

 

RLD16

 

RLD15

RLD14

RLD17

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

RLD16

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFC7H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 1 reload data (high-order 4 bits)

 

 

 

 

 

 

 

R/W

 

RLD15

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RLD14

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD03

 

PTD02

 

PTD01

PTD00

PTD03

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

PTD02

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFC8H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 0 data (low-order 4 bits)

 

 

 

 

 

 

 

 

 

R

 

PTD01

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD00

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD07

 

PTD06

 

PTD05

PTD04

PTD07

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

PTD06

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFC9H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 0 data (high-order 4 bits)

 

 

 

 

 

 

 

 

 

R

 

PTD05

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD04

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD13

 

PTD12

 

PTD11

PTD10

PTD13

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

PTD12

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFCAH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 1 data (low-order 4 bits)

 

 

 

 

 

 

 

 

 

R

 

PTD11

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD10

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD17

 

PTD16

 

PTD15

PTD14

PTD17

0

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

PTD16

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFCBH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programmable timer 1 data (high-order 4 bits)

 

 

 

 

 

 

 

 

 

R

 

PTD15

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PTD14

0

 

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

EIPT1

EIPT0

0 3

2

 

 

 

 

 

 

 

 

 

Unused

 

 

 

 

 

 

 

 

 

 

 

 

0 3

2

 

 

 

 

 

 

 

 

 

Unused

 

 

 

 

 

 

 

 

FFE2H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

 

R/W

EIPT1

0

Enable

Mask

 

Interrupt mask register (Programmable timer 1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EIPT0

0

Enable

Mask

 

Interrupt mask register (Programmable timer 0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

IPT1

IPT0

0 3

2

 

(R)

 

(R)

 

Unused

 

 

 

 

 

 

 

 

 

 

 

 

0 3

2

Yes

 

No

 

Unused

 

 

 

 

 

 

 

 

FFF2H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

 

R/W

IPT1

0

(W)

(W)

 

Interrupt factor flag (Programmable timer 1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IPT0

0

Reset

Invalid

 

Interrupt factor flag (Programmable timer 0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*1 Initial value at initial reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*2 Not set in the circuit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*3 Constantly "0" when being read

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S1C63558 TECHNICAL MANUAL

 

 

 

 

 

EPSON

 

 

 

 

 

 

 

71