upd70f3422gj-gae-qs-ax Renesas Electronics Corporation., upd70f3422gj-gae-qs-ax Datasheet - Page 848

no-image

upd70f3422gj-gae-qs-ax

Manufacturer Part Number
upd70f3422gj-gae-qs-ax
Description
32-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet
Chapter 24
848
Initial Value
Address
Access
Note
(5)
SG0PWM - SG0 volume register
The 16-bit register SG0PWM is used to specify the sound volume. It holds the
target value for the sound amplitude that is given by the duty cycle of the PWM
signal.
This register is can be read/written in 16-bit units. It cannot be written if bit
SG0CTL.PWR = 0.
<base> + 4
0000
The value written to this register must be considered in conjunction with the
contents of register SG0FL. The register SG0FL specifies the maximum value
of the counter SG0FL.
For the calculation of the resulting duty cycle refer to “PWM calculations“ on
page 852.
The setting takes effect after the SG0PWM buffer has been updated (see
“Updating the volume buffer value“ on page 851).
1.
2.
3.
Preliminary User’s Manual U17566EE1V2UM00
15
R
0
The bits 15:9 are not used.
The value read from this register does not necessarily reflect the current
volume, because the value of counter SG0FL is compared with the
contents of the volume buffer. The buffer might not be updated yet.
The sound stops immediately when this register is cleared.
H
14
. This register is cleared by any reset.
R
0
13
H
R
0
12
R
0
11
R
0
10
R
0
R
9
0
8
7
Sound volume target value
6
5
R/W
Sound Generator (SG)
4
3
2
1
0

Related parts for upd70f3422gj-gae-qs-ax