CHAPTER 6 16-BIT TIMER
User’s Manual U15075EJ1V0UM00
128
6.4.5 Buzzer output operation
The buzzer frequency is set using buzzer output control register 90 (BZC90) based on the count clock selected
with TCL901 and TCL900 of TMC90 (source clock). A square wave of the set buzzer frequency is output.
Table 6-4 shows the buzzer frequency.
Set the 16-bit timer as follows to use it for buzzer output:
•
Set P21 to output mode (PM21 = 0).
•
Reset output latch of P21 to 0.
•
Set a count clock using TCL901 and TCL900.
•
Set BZC90 as shown in Figure 6-12.
Figure 6-12. Settings of Buzzer Output Control Register 90 for Buzzer Output Operation
0
0
0
0
0/1
0/1
0/1
1
BCS902 BCS901 BCS900 BZOE90
BZC90
Setting of buzzer frequency (see Table 6-4)
Enables buzzer output
Table 6-4. Buzzer Frequency of 16-Bit Timer
Buzzer Frequency
BCS902
BCS901
BCS900
fcl = f
X
/2
2
fcl = f
X
/2
6
fcl = f
X
/2
7
fcl = f
XT
0
0
0
fcl/2
4
(78.1 kHz)
fcl/2
4
(4.88 kHz)
fcl/2
4
(2.44 kHz)
fcl/2
4
(2.05 kHz)
0
0
1
fcl/2
5
(39.1 kHz)
fcl/2
5
(2.44 kHz)
fcl/2
5
(1.22 kHz)
fcl/2
5
(1.02 kHz)
0
1
0
fcl/2
8
(4.88 kHz)
fcl/2
8
(305 Hz)
fcl/2
8
(153 Hz)
fcl/2
8
(128 Hz)
0
1
1
fcl/2
9
(2.44 kHz)
fcl/2
9
(153 Hz)
fcl/2
9
(76 Hz)
fcl/2
9
(64 Hz)
1
0
0
fcl/2
10
(1.22 kHz)
fcl/2
10
(76 Hz)
fcl/2
10
(38 Hz)
fcl/2
10
(32 Hz)
1
0
1
fcl/2
11
(610 Hz)
fcl/2
11
(38 Hz)
fcl/2
11
(19 Hz)
fcl/2
11
(16 Hz)
1
1
0
fcl/2
12
(305 Hz)
fcl/2
12
(19 Hz)
fcl/2
12
(10 Hz)
fcl/2
12
(8 Hz)
1
1
1
fcl/2
13
(153 Hz)
fcl/2
13
(10 Hz)
fcl/2
13
(5 Hz)
fcl/2
13
(4 Hz)
Remarks 1. f
X
:
Main system clock oscillation frequency
2. f
XT
:
Subsystem clock oscillation frequency
3. The parenthesized values apply to operation at f
X
= 5.0 MHz or f
XT
= 32.768 kHz.
Summary of Contents for mPD789425
Page 2: ...2 User s Manual U15075EJ1V0UM00 MEMO ...
Page 6: ...6 User s Manual U15075EJ1V0UM00 MEMO ...
Page 10: ...10 User s Manual U15075EJ1V0UM00 MEMO ...
Page 24: ...24 User s Manual U15075EJ1V0UM00 MEMO ...
Page 36: ...36 User s Manual U15075EJ1V0UM00 MEMO ...
Page 46: ...46 User s Manual U15075EJ1V0UM00 MEMO ...
Page 176: ...User s Manual U15075EJ1V0UM00 176 MEMO ...
Page 196: ...User s Manual U15075EJ1V0UM00 196 MEMO ...
Page 210: ...User s Manual U15075EJ1V0UM00 210 MEMO ...
Page 262: ...262 User s Manual U15075EJ1V0UM00 MEMO ...
Page 278: ...278 User s Manual U15075EJ1V0UM00 MEMO ...
Page 296: ...296 User s Manual U15075EJ1V0UM00 MEMO ...
Page 298: ...User s Manual U15075EJ1V0UM00 298 MEMO ...