IBM EM78P809N TC4CR Timer/Counter 4 Control Register Address 0Bh, TC4S = 1 Start, TC4FF1 TC4FF0

Models: EM78P809N

1 75
Download 75 pages 33.67 Kb
Page 15
Image 15

EM78P809N

8-Bit Microcontroller

PORT9 Port 9 I/O Data Register ( Address: 09h )

Bit 7

Bit 6

 

Bit 5

Bit 4

Bit 3

Bit 2

 

Bit 1

Bit 0

 

 

P97

P96

P95

P94

P93

P92

P91

P90

 

 

 

 

 

 

 

 

 

 

Bit 7 ~ Bit 0 ( P97 ~ P90 ) : 8-bit Port 97 ~ Port 90 I/O data register

User can use IOC9 register to define each bit whether input or output.

TC4CR — Timer/Counter 4 Control Register ( Address: 0Bh )

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

 

 

 

 

 

 

Bit 1

Bit 0

 

 

TC4FF1 TC4FF0

TC4S

TC4CK2 TC4CK1 TC4CK0 TC4M1

TC4M0

Bit 7 ~ Bit 6 ( TC4FF1 ~ TC4FF0 ) : Timer/Counter4 flip-flop control.

TC4FF1

 

TC4FF0

Operating Mode

0

 

0

Clear

 

 

 

 

0

 

1

Toggle

 

 

 

 

1

 

0

Set

 

 

 

 

1

 

1

Reserved

 

 

 

 

Bit 5 ( TC4S ) : Timer/Counter 4 start control.

TC4S = “0” : Stop and clear counter

TC4S = “1” : Start

Bit 4 ~ Bit 2 ( TC4CK2 ~ TC4CK 0 ) : Timer/Counter 4 Clock Source Select

TC4CK2

TC4CK1

 

TC4CK0

 

Clock Source

 

Resolution

 

Max. Time

 

 

 

( Normal, Idle )

 

( Fosc=8M )

 

( Fosc=8M )

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

 

0

 

Fc/2^11

 

250uS

 

64mS

 

 

 

 

 

 

 

 

 

 

0

0

 

1

 

Fc/2^7

 

16uS

 

4mS

 

 

 

 

 

 

 

 

 

 

0

1

 

0

 

Fc/2^5

 

4uS

 

1mS

 

 

 

 

 

 

 

 

 

 

0

1

 

1

 

Fc/2^3

 

1uS

 

255uS

 

 

 

 

 

 

 

 

 

 

1

0

 

0

 

Fc/2^2

 

500nS

 

127.5uS

 

 

 

 

 

 

 

 

 

 

1

0

 

1

 

Fc/2^1

 

250nS

 

63.8uS

 

 

 

 

 

 

 

 

 

 

1

1

 

0

 

Fc

 

125nS

 

31.9uS

 

 

 

 

 

 

 

 

 

 

 

1

1

 

1

 

External clock (TC4 pin)

 

--

 

--

 

 

 

 

 

 

 

 

 

 

 

 

Bit 1 ~ Bit 0 ( TC4M1 ~ TC4M0 ) : Timer/Counter 4 Operating Mode Select

 

TC4M1

 

 

TC4M0

 

Operating Mode

 

 

 

0

 

 

0

 

Timer/Counter

 

 

 

 

 

 

 

 

 

 

0

 

 

1

 

Reserved

 

 

 

 

 

 

 

 

 

 

1

 

 

0

 

Programmable Divider output

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

Pulse Width Modulation output

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Product Specification (V1.0) 07.26.2005

 

 

11

(This specification is subject to change without further notice)

Page 15
Image 15
IBM EM78P809N TC4CR Timer/Counter 4 Control Register Address 0Bh, TC4S = 1 Start, TC4FF1 TC4FF0, TC4CK2 TC4CK1 TC4CK0