AN2274 Freescale Semiconductor / Motorola, AN2274 Datasheet - Page 10

no-image

AN2274

Manufacturer Part Number
AN2274
Description
Generic Tone Generation on the StarCore SC140 Core
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Tone Generator Implementation
10
No
Component Number. Update
Initialize Next Component
in Respect of Cycles and
Flag if Tone is complete.
Generated Samples = 0
silence_duration=0?
Flag = Not Completed
sound_duration=0?
fsl_tone_gen BEGIN
Is Generated
sample_out?
+ Buffer Empty
Samples =
Is
Is
Yes
Yes
Generic Tone Generation on the StarCore™ SC140/SC1400 Cores, Rev. 1
Figure 5. Structure of the Tone Generator Code
No
No
Yes
Generated Samples += 8
Fill Memory 2 With 8
Fill Memory 1 With 8
Silence Samples
Silence Samples
ts_generate END
Return Flag
Generated Samples += 8
Load Previous Oscillator
SAMPLE1 + SAMPLE2
Generate 8 Couples of
Fill Output Buffer With
flag = Not Completed
State and Coefficient
Samples (SAMPLE1,
+ Buffer Not Empty
Freescale Semiconductor
SAMPLE2)

Related parts for AN2274