CHAPTER 18:Sound Generator
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
431
(10) DMAC clears the interrupt, and write registers in the Sound Generator through the "DMA Transfer
Intermediate Register (SGDMAR)".
(*3: DMA block size must to be "2-byte size x 2" for the access to "DMA Transfer Intermediate Register
(SGDMAR)")
(11) The Sound Generator keeps outputting SGO and SGA, according to the register settings above.
(12) The Tone pulse counter counts the number of tone pulses. When the following conditions are
satisfied, the interrupt is generated.
-
Tone pulse counter is 0x00
-
Decrement counter is 0x00
-
At the rising edge of SGO
DMAC doesn't assert an interrupt to MCU until the DMAC completes all DMA transfer (with 2-byte size x2,
N times).
(13) Repeat the flow from 10 to 12 to continue outputting the sound.
(14) When DMAC completes all DMA transfer (with 2-byte size x2, N times), it asserts an interrupt to
MCU.
(15) Software writes "0" to the Start bit (SGCR.ST) to stop outputting the sound.
(16) When above operation (15) was made within the following time, the Nth DMA transfer doesn't come
to the output of SGO and SGA. The Sound Generator stops driving SGO and SGA just before outputting
the data of Nth DMA transfer.
The limit time = (Frequency Data Register [SGFR] + 1) x 1 PWM cycle
(*4: The data of the Nth DMA transfer are written to the Sound Generator, however, they are not output.
DMAC issues this Nth DMA transfer only to assert an interrupt toward the MCU.)
(17) If above (16) is not done within the limit time, the Sound Generator keeps driving SGO and SGA in
order to output the data of the Nth DMA transfer. Then, the Sound Generator stops driving SGO and SGA
after the end of all data.
(*4: The data of the Nth DMA transfer are written to the Sound Generator, and they are output to the end.)
Notes:
−
The DMAC must finish the sequence from step 6 to 7, within the following time.
The limit time = (Frequency Data Register [SGFR] + 1) x 1 PWM cycle
−
The DMA transfer error means the occurrence of delay in the sound data setting. It causes
unsteady sound output. In that case, please fix the priority of DMA transfer in the system to finish
all data transfer within the limit time.
Содержание 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...