Sound Generation Logic (SGL)
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor 1109
 
Chapter 34  
Sound Generation Logic (SGL)
34.1 Introduction 
This chapter describes the Sound Generation Logic (SGL) module.
Refer to Figure 34-1 for the detailed block diagram of the SGL.
34.1.1 Overview
The SGL provides a single output to the speaker or buzzer interface.
It selects outputs from the PWM channels being used for sound generation. In case of monophonic sound, 
two PWM channels are required while, in the case of polyphonic sound, only one PWM channel is 
required. Monophonic / polyphonic sound can be selected through the signal mono/poly_b.
A 32-bit counter value determines the duration for which sound will be played.
NOTE
In this document, the term “polyphonic” refers to PCM-based sound 
generation as described in Section 34.4, Functional description. 
Figure 34-1. Block diagram
34.1.2 Features
The SGL has the following basic features:
 ÷
÷
pwm_ch0
To
Speaker/
Buzzer
pwm_ch0
pwm_ch15
MUX
C
2X1
sound_out
MUX
B
MUX
A
pwm_ch15
AND
GATE
ch2_sel
ch1_sel
mono/poly_b
MODE_SEL
Reserved Field
Reserved Field
AND
GATE
SOUND_CONTROL_LOGIC
ipi_int_sgl
clk
Programmable
Prescaler
(1 to 128)