
CHAPTER 18:Sound Generator
420
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
3.5.
Sound Generator Operation
This section describes the Sound Generator operation as below
Figure
3
-
6 Sound Generator Operation
(1) The reload values are written to the Amplitude Data Register (SGAR), the Frequency Data Register
(SGFR), the Tone Output Number Register (SGNR), and the Time Cycle Register (SGTCR) by software.
Also the selection of increment and decrement of the amplitude is written to the Increase and Decrease
Data Register (SGIDR) by software as well as the number of cycles in 1 PWM cycle to the PWM Cycle
Data Register (SGPCR).
Moreover, set other information to the Sound Control Register (SGCR) to control the Sound Generator.
Initialize the Interrupt status bit (SGCR.INT) and set the Interrupt enable bit (SGCR.INTE).
(2) Write "1" to the Start bit (SGCR.ST).
SGAR[15:0]
SGFR[7:0]
SGNR[7:0]
SGTCR[7:0]
SGIDR[7:0]
SGCR.GID
SGCR.GEN
SGCR.BUSY
SGCR.TONE
SGCR.INTE
SGCR.INT
SGCR.ST
Amplitude Data Register (0x00FE)
Frequency Data Register (0x00)
Tone Output Number Register (0x02)
Time Cycle Register (0x01)
Increase and Decrease Data Register (0x20)
SGA
SGO
PIRQ
(0x00DE)
(0x00BE)
(0x009E)
(0x007E)
Interrupt set
(0x00FE)
PWM pulse generator
Decrement counter
Tone pulse counter
(0x00DE)
(0x00BE)
(0x009E)
(0x007E)
(0x02)
(0x01)
(0x00)
(0x02)
(0x01)
(0x01)
(0x00)
(0x01)
(0x00)
(0x01)
(0x00)
(0x01)
(0x00)
(0x01)
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
SGPCR[15:0]
PWM Cycle Data Register (0x00FF)
SGCR.DMA
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...