226
CHAPTER 17 SOUND GENERATOR
Preliminary User’s Manual U14581EJ3V0UM00
Figure 17-3. Sound Generator Control Register (SGCR) Format
Address: FF94H After Reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
SGCR
TCE
0
0
0
1
SGCL2
SGCL1
SGCL0
TCE
Sound Generator Operation Selection
0
Timer operation stopped
SGO for low-level output
1
Sound generator operation
SGO for output
SGCL2
SGCL1
5-Bit Counter Input Frequency f
SG2
Selection
0
0
f
SG2
= f
SG1
/2
5
0
1
f
SG2
= f
SG1
/2
6
1
0
f
SG2
= f
SG1
/2
7
1
1
f
SG2
= f
SG1
/2
8
SGCL0
Sound Generator Input Frequency f
SG1
Selection
0
f
SG1
= f
X
/2
1
f
SG1
= f
X
Cautions 1. Before setting the TCE bit, set all the other bits.
2. When rewriting SGCR to other data, stop the timer operation (TCE = 0) beforehand.
3. Bits 4 to 6 must be set to 0.
4. Bit 3 must be set to 1.
The maximum and minimum values of the buzzer output frequency are as follows.
Table 17-2. Maximum Value and Minimum Value of Buzzer Output Frequency
SGCL2
SGCL1
SGCL0
Maximum and Minimum Values of Buzzer Output
f
SG2
f
X
= 8.00 MHz
f
X
= 8.38 MHz
Max. (kHz)
Min. (kHz)
Max. (kHz)
Min. (kHz)
0
0
0
f
X
/2
6
3.68
1.95
3.85
2.05
0
0
1
f
X
/2
5
3.68
1.95
3.85
2.05
0
1
0
f
X
/2
7
1.84
0.98
1.93
1.02
0
1
1
f
X
/2
6
1.84
0.98
1.93
1.02
1
0
0
f
X
/2
8
0.92
0.49
0.96
0.51
1
0
1
f
X
/2
7
0.92
0.49
0.96
0.51
1
1
0
f
X
/2
9
0.46
0.24
0.48
0.26
1
1
1
f
X
/2
8
0.46
0.24
0.48
0.26
Summary of Contents for mPD780851
Page 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...