Kawasaki 80C51, KS152JB, 80C152 technical specifications Timer/Counter in Mode

Models: 80C51 KS152JB 80C152

1 120
Download 120 pages 28.28 Kb
Page 14
Image 14

KS152JB Universal Communications Controller Technical Specifications

OSC

 

S3P1

C/T

Tx pin

TRx

GATE

INTx pin

I0

I1

Q

TLX

5 bits

THx

8 bits

TFx

INTERRUPT

Timer/Counter in Mode 0

MODE 1

Mode 1 is similar to Mode 0 except that the counting register form a 16 bit counter, rather than a 13 bit counter. This means that all the bits of THx and TLx are used.

.

OSC

 

S3P1

C/T

Tx pin

TRx

GATE

INTx pin

I0

I1

Q

TLX

8 bits

Reload

THx

8 bits

TFx

INTERRUPT

Timer/Counter in Mode 2

MODE 2

In Mode 2, the timer/counter is in the Auto Reload Mode. In this mode, TLx acts as a 8 bit count register, while THx holds the reload value. When the TLx register overflows from FFh to 00h, the TFx bit in TCON is set and TLx is reloaded with the contents of THx and the counting process continues from here. The reload operation leaves the contents of the THx register unchanged

MODE 3

Mode 3 has different operating methods for the two timer/counters. For timer/counter TM1, mode 3 simply freezes the counter. This is the same as setting TR1 to 0.

Timer/Counter TM0 however configures TL0 and TH0 as two separate 8 bit count registers in this mode. The logic for this mode is shown in the figure. TL0 uses the Timer/Counter TM0 control bits C/T, GATE, TR0, INT0 and TF0. TH0 is forced as a machine cycle counter and takes over the use of TR1 and TF1 from Timer/Counter TM1.

Kawasaki LSI USA, Inc.

Page 14 of 120

Ver. 0.9 KS152JB2

Page 14
Image 14
Kawasaki 80C51, KS152JB, 80C152 technical specifications Timer/Counter in Mode