Sound Generation Logic (SGL)
MPC5606S Microcontroller Reference Manual, Rev. 7
1110 Freescale Semiconductor
• It can be used to produce two types of sounds — monophonic and polyphonic sound.
• It selects the PWM channels being used for sound generation and provides the PWM output from
single channel or anded output from 2 PWM channels depending on whether polyphonic or
monophonic sound is to be produced.
• It provides programmability to generate periodic or continuous sound, for desired duration which
may be predefined.
• It has the facility for enabling/disabling the generation of interrupts.
34.2 External signal description
Figure 34-2. SGL External signal description
34.2.1 Detailed signal descriptions
Table 34-1. Detailed signal descriptions
Name Function I/O Reset
1
1
This is the value that the output signals will have when the module is reset.
Clock System clock I
pwm_ch0 to pwm_ch15 PWM Channel Output [15:0],
• Signals coming from eMIOS0[23:16] correspond to pwm_ch[7:0]
• Signals coming from eMIOS1[23:16] correspond to pwm_ch[15:8]
Signals can have variable duty cycles as well as variable frequencies.
See Tabl e 34-4 for more information.
I
sound_out Output signal carrying the generated sound that is fed into the speaker
interface.
O 0
ipi_int_sgl Interrupt signal generated by SGL whenever the SOUND_DURATION
counter reaches 0
O 0
pwm_ch0
pwm_ch15
SGL Top Level
sound_out
Clock
ipi_int_sgl
...