841
Preliminary User’s Manual U17566EE1V2UM00
Chapter 24 Sound Generator (SG)
The Sound Generator (SG0) generates an audio-frequency tone signal and a
high-frequency pulse-width modulated (PWM) signal. The duty cycle of the
PWM signal defines the volume.
By default, the two signal components are routed to separate pins. But both
signals can also be combined to generate a composite signal that can be used
to drive a loudspeaker circuit.
24.1 Overview
The Sound Generator consists of a programmable square wave tone generator
and a programmable pulse-width modulator.
Features summary
Special features of the Sound Generator are:
• Programmable tone frequency (245 Hz to 6 KHz with a minimum step size
of 20 Hz)
• Programmable volume level (9 bit resolution)
• Wide range of PWM signal frequency (32 KHz to 64 KHz)
• Sound can be stopped or retriggered
• Composite or separated frequency/volume output for external circuitry
variation
• Hardware-optimized update of frequency and volume to avoid audible
artifacts
electronic components distributor