User manual
The Demonstration Application
© 2008 Microchip Technology Inc. DS51725A-page 13
2.2.4 Real-Time Data Capture (Multitasking with USB Embedded
Host)
An extension of the Data Graphing demo shows many of the capabilities of the PIC24F
microcontroller, all running at the same time: interactive display, multitasking and USB
embedded host functionality. This feature allows users not only to graph data and view
the results in real time, but also accurately record the results to an external device.
To access this demo, first insert a USB Flash drive into the USB A-receptacle (J4).
Select “Demos” from the main menu, then “Capture” from the “Demonstrations” menu.
A graph identical in operation to that in the Data Graphing demo appears. (If a Flash
drive is not present, a prompt screen will appear instead.) The difference is that the
digital value from the potentiometer conversion is written to the Flash drive to a new
comma delimited file, CAPTURE.csv. Data is written with a second value representing
the time of capture. As the application is configured, the capture interval is 10 ms, and
is independent of the graphic display’s update rate.
To exit the demo and return to the main menu, press the center touch pad.
FIGURE 2-7: DATA GRAPHING DISPLAYS
2.2.5 Other Interactive Demos
As a final demonstration of the starter kit’s processing power and graphics display
capabilities, several other interactive demos are provided for the user to investigate.
These are accessed by selecting “Games” from the main menu.
Users may find that the three demos provided (“Shu Box”, “Shapelet” and “Blaster”)
similar to some vintage video games. As such, the operations of these demos are
regarded to be self-explanatory. Users who require more information will find additional
instructions in the comments accompanying the application source code.
Pot. Capture
i
Insert USB flash drive...
Pot. Capture
i