Panasonic F77G, MN101C77C user manual TM0PWM, Normal timer operation

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 259
Image 259

Chapter 6 8-bit Timers

Setup Procedure

 

Description

 

 

(6) Select the normal timer operation.

(6) Set both of the TM0MOD flag and TM0PWM

TM0MD (x'3F54')

 

flag of the TM0MD register to "0" to select

bp4

: TM0PWM

= 0

normal timer operation.

bp5

: TM0MOD

= 0

 

(7) Select the count clock source.

(7) Select fosc to clock source by the

TM0MD (x'3F54')

 

TM0CK2-0 flag of the TM0MD register.

bp2-0

: TM0CK2-0 = 000

 

(8) Set the base cycle of remote control

(8) Set the base cycle of remote control carrier by

carrier.

 

 

writing x'6C' to the timer 0 compare register

TM0OC (x'3F52')

= x'6C'

(TM0OC). The set value should be (8 MHz/

 

 

 

73.4 kHz) - 1 = 108(x'6C')

 

 

 

8 MHz is divided to be 73.4 kHz, 2 times

 

 

 

36.7 kHz.

(9) Start the timer operation.

 

(9) Set the TM0EN flag of the TM0MD register to

TM0MD (x'3F54')

 

"1" to stop the timer 0 counting.

bp3

: TM0EN

= 1

 

(10) Enable the remote control carrier

(10) Set the RMOEN flag of the RMCTR register to

output.

 

 

"1" to enable the remote control carrier output.

RMCTR (x'3F6E')

 

 

bp3

: RMOEN

= 1

 

 

 

 

 

TM0BC counts up from x'00'. Timer 0 outputs the base cycle pulse set in TM0OC. Then, the 1/3 duty remote control carrier pulse signal is output. If the RMOEN flag of the RMCTR register is set to "0", the remote control carrier pulse signal output is stopped.

Remote Control Carrier Output VI - 45

Page 259
Image 259
Panasonic F77G, MN101C77C user manual TM0PWM, Normal timer operation