Panasonic F77G, MN101C77C bit Timer Count, Clock Source Timers 0, 1, 4 and 5 at Timer Operation

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 229
Image 229

Chapter 6 8-bit Timers

6-3 8-bit Timer Count

6-3-1 Operation

The timer operation can constantly generate interrupts.

„8-bit Timer Operation (Timers 0, 1, 4 and 5)

The generation cycle of timer interrupts is set by the clock source selection and the setting value of the compare register (TMnOC), in advance. If the binary counter (TMnBC) reaches the setting value of the compare register, an interrupt is generated at the next count clock, then binary counter is cleared and counting is restarted from x'00'.

Table 6-3-1 shows clock source that can be selected.

Table 6-3-1 Clock Source (Timers 0, 1, 4 and 5) at Timer Operation

Clock source

1 count time

Timer 0

Timer 1

Timer 4

Timer 5

(8 Bit)

(8 Bit)

(8 Bit)

(8 Bit)

 

 

 

 

 

 

 

 

 

fosc

50 ns

 

 

 

 

 

 

 

 

fosc/4

200 ns

 

 

 

 

 

 

 

 

fosc/16

800 ns

 

 

 

 

 

 

 

 

fosc/32

1.6 µs

 

-

 

 

 

 

 

 

 

fosc/64

3.2 µs

 

 

 

 

 

 

 

 

fosc/128

6.4 µs

 

-

-

-

 

 

 

 

 

 

 

fs/2

200 ns

 

 

 

 

 

 

 

 

fs/4

400 ns

 

-

 

 

 

 

 

 

 

fs/8

800 ns

 

-

-

-

 

 

 

 

 

 

 

fx

30.5 µs

 

 

 

 

 

 

 

 

Notes : as fosc = 20 MHz fx = 32.768 kHz

fs = fosc/2 = 10 MHz

 

 

 

 

 

 

 

 

8-bit Timer Count VI - 15

Page 229
Image 229
Panasonic F77G, MN101C77C user manual bit Timer Count, Clock Source Timers 0, 1, 4 and 5 at Timer Operation