CHAPTER 18:Sound Generator
452
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
4.5.
Tone Output Number Register (SGNR)
The Tone Output Number Register (SGNR) stores the reload value for a Tone pulse counter.
The Tone pulse counter accumulates the number of tone pulses (or the number of sound
increment/decrement). When the accumulated value reaches the reload value, it sets the Interrupt status
bit (SGCR.INT). This operation is to reduce the frequency of interrupts.
bit
7
6
5
4
3
2
1
0
Field
SGNR[7:0]
Attribute
R/W
Initial value
0x00
[bit7:0] SGNR : Tone output number bits
These bits store the reload value for the Tone pulse counter,
and the value is written either in the following ways.
(1)Software writes a value to this register.
(2)DMAC writes a value through DMA Transfer Intermediate Register (SGDMAR).
Notes:
−
The number of pulses is equal to "SGNR + 1".
−
During operation, in the case of changing a register value, meet the following either conditions.
(1)Sound generator is in the stop state (SGCR.BUSY="0").
(2)The changing comes between an interrupt occurrence and falling edge of the first tone pulse.
(The limit time = (Frequency Data Register [SGFR] + 1) x 1 PWM cycle)
When it meets neither condition, the sound output cannot guarantee the expected duty ratio.
Содержание S6J3200 Series
Страница 1041: ...CHAPTER 28 LCD Controller 1040 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Страница 1044: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1043...
Страница 1047: ...CHAPTER 28 LCD Controller 1046 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Страница 1050: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1049...
Страница 1084: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1083...
Страница 1086: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1085...
Страница 1088: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1087...