User`s guide
MPLAB Starter Kit for dsPIC
®
DSCs User’s Guide
DS51700A-page 12 © 2008 Microchip Technology Inc.
FIGURE 2-2: APPLICATION FLOW CHART – PART ONE
START
Initialize Audio Codec Driver
Start Audio Codec Driver
Record = 1?
Yellow LED On
G.711 μ-Law Encode
Yes
No
Initialize Flash Memory Driver
Start Flash Memory Driver
Playback = 1?
Play back
Intro Message
No
Yes
A*
B*
Is Flash Erased?
No
Erase Flash
Red LED On
Yes
Read Codec Data
Store In Flash
Output Audio Data
Is Flash Full?
No
Yes
C*
A*
C*
*Refer to the corresponding letter in Figure 2-3: “Application Flow Chart – Part Two” for the
continuation of the flow chart.