Philips Semiconductors

User’s Manual - Preliminary -

 

 

 

TIMERS 0 AND 1

P89LPC906/907/908

 

PCLK

C/T = 0

 

TL0

Overflow

 

 

 

 

 

 

 

 

 

TF0

Interrupt

T0 Pin*

 

 

(8-bits)

 

C/T = 1

Control

 

 

 

 

Toggle

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T0 Pin*

 

TR0

 

 

 

ENT0

 

 

 

 

 

 

 

 

PCLK

 

TH0

Overflow

TF1

Interrupt

 

Control

(8-bits)

 

 

 

 

 

 

 

 

 

 

 

 

 

TR1

 

 

* T0 Pin functions available on P89LPC907

 

 

 

 

 

Figure 5-7: Timer/Counter 0 Mode 3 (two 8-bit counters)

 

 

 

 

 

 

 

 

PCLK

 

T0C/T = 0

 

 

 

 

 

 

 

 

 

 

 

TR0

Control

TL0

Overflow

 

 

 

TF0

 

Interrupt

(8-bits)

 

 

 

 

 

 

 

 

Reload TH0 on falling transition and (256-TH0) on rising transition Toggle

T0 Pin

TH0

 

(8-bits)

ENT0 (AUXR1.4)

Figure 5-8: Timer/Counter 0 in Mode 6 (PWM auto-reload), P89LPC907.

TIMER OVERFLOW TOGGLE OUTPUT - P89LPC907

Timer 0 can be configured to automatically toggle the T0 pin whenever the timer overflow occurs. This function is enabled by control bit ENT0 in the AUXR1 register. The port output will be a logic 1 prior to the first timer overflow when this mode is turned on. In order for this mode to function, the T0C/T bit must be cleared selecting PCLK as the clock source for the timer.

2003 Dec 8

45

Page 45
Image 45
Philips P89LPC906, P89LPC908 user manual Timer Overflow Toggle Output P89LPC907, Pclk TL0, TR0 ENT0 Pclk TH0