845
Sound Generator (SG)
Chapter 24
Preliminary User’s Manual U17566EE1V2UM00
(1)
SG0CTL - SG0 control register
The 8-bit SG0CTL register controls the operation of the Sound Generator.
Access
This register can be read/written in 8-bit or 1-bit units.
Address
<base> + 7
H
Initial Value
00
H
. This register is cleared by any reset.
Note
Change the contents of this register only when the sound is stopped (register
SG0PWM cleared).
7
6
5
4
3
2
1
0
0
0
0
PWR
0
0
OS
0
a
a)
The “0” value of this bit must not be changed!
R
R
R
R/W
R
R
R/W
R/W
Table 24-3
SG0CTL register contents
Bit position
Bit name
Function
4
PWR
Power save mode selection:
0: Clock input switched off
(
the Sound Generator is disabled and does not
operate).
1: Clock input switched on
(
the Sound Generator is enabled and ready to use).
1
OS
SG0 output mode selection:
0: Selects SGOF and SGOA outputs (frequency and amplitude separated).
1: Selects SGO output (frequency and amplitude mixed).
electronic components distributor