Datasheet

PIC32MX Starter Kit User’s Guide
DS61144D-page 20 © 2009 Microchip Technology Inc.
FIGURE 2-13: PIC32MX TUTORIAL PROGRAM FLOWCHART
Power Up
Display the Build
Date and Time
Ask user for the
menu choice
Is Menu choice ‘e’
or ‘E?
Ask user for the string
of maximum 256
characters
Display the user string back to
the output window
Return
No
Yes
Initialize the LE Ds
Is “repeat == ‘x’
Is Menu choice ‘r’
or ‘R?
Is Menu choice ‘o’
or ‘O?
Is Menu choice ‘g’
or ‘G?
Is Menu choice ‘x’
or ‘X?
Toggle the RED
LED
Toggle the
ORANGE LED
Toggle the
GREEN LED
Display that the
user choice is
invalid and Toggle
all the LEDs once.
Display that the
program has
terminated
Make repeat = ‘x’
Yes
Yes
Yes
Yes
No
No
No
No
Yes
No