CHAPTER 18:Sound Generator
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
421
(3) By setting "1" to the Start bit (SGCR.ST), the Amplitude Data Register (SGAR) value is loaded into the
PWM pulse generator, the Frequency Data Register (SGFR) value into the Frequency counter, the Tone
Output Number Register (SGNR) value into the Tone pulse counter, the Time Cycle Register (SGTCR)
value into the Decrement counter.
(4) The operation flag (SGCR.BUSY) is automatically set.
(5) Due to the operation that the Decrement counter counts the number of tone pulses until it reaches the
reload value, the Amplitude Data Register (SGAR) value decreases according to the setting of the
Automatic increase/decrease enable bit (SGCR.GEN) and the Increase/decrease setting bit
(SGCR.GID).
(6) The Tone pulse counter counts the number of tone pulses. When the following conditions are satisfied,
it sets the Interrupt status bit (SGCR.INT) and asserts the Interrupt request (PIRQ).
-
Tone pulse counter is 0x00
-
Decrement counter is 0x00
-
At the rising edge of SGO
(7) Write "0" to the Start bit (SGCR.ST). The Sound Generator keeps operating until the Busy status bit
(SGCR.BUSY) turns "0".
(8) The Sound Generator stops when the current tone cycle finishes.
(9) The Busy status bit (SGCR.BUSY) turns "0".
DMA Transfer Start Interrupt Setting Enable Bit (SGCR.DMA)
To assert the first Interrupt request (PIRQ) after starting (SGCR.ST="1"), there are two modes for the
request. And the selection depends on the setting of the "DMA transfer start interrupt setting enable bit
(SGCR.DMA)".
-
Normal mode :
When Sound Generator outputs the tone pulses, to the number programmed in the
Time Cycle Register (SGTCR)
-
DMA mode :
Immediately after the setting of Start bit (writing "1" to SGCR.ST)
(In this case, the Interrupt request (PIRQ) is regarded as the DMA transfer request.)
DMA Transfer
The following registers are set through the DMA Transfer Intermediate Register (SGDMAR).
-
Amplitude Data Register (SGAR)
-
Frequency Data Register (SGFR)
-
Time Cycle Register (SGTCR)
-
Tone Output Number Register (SGNR)
-
Increase and Decrease Data Register (SGIDR)
-
PWM Cycle Data Register (SGPCR)
Summary of Contents for S6J3200 Series
Page 1041: ...CHAPTER 28 LCD Controller 1040 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Page 1044: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1043...
Page 1047: ...CHAPTER 28 LCD Controller 1046 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Page 1050: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1049...
Page 1084: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1083...
Page 1086: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1085...
Page 1088: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1087...