User manual
F1 LV EVALUATION PLATFORM
USER’S GUIDE
2011 Microchip Technology Inc. DS41614A-page 25
Chapter 4. Demo Code
4.1 INTRODUCTION
The F1 LV Evaluation Platform demo is located at www.microchip.com/F1LVEval. The
F1 LV Evaluation demonstration program uses a single Combined Demo. The Com-
bined Demo source code is organized into sectional code for ease of portability:
This chapter provides an overview to the functions provided by these demos.
4.2 SERVICE DRIVERS
Multiple services drivers are utilized during this demo for operation. For user ease,
these drivers have been separated for easy portability.
- The I
2
C driver is used by the MCP9800 driver to read the current temperature
from the on-board MCP9800 I
2
C temperature sensor.
- Using the LCD and RTCC drivers, the LCD is used for display of the clock,
temperature, motor status and motor type.
- The UNI/O
®
driver is used to read from each add-on board which motor type
is being attached, and which firmware should be used.
4.3 COMBINED DEMO
The combined demo combines all the software from all the previous demos to show the
power of the PIC16LF1947. In this demo, the user can attach any of the (4) add-on
motor boards for use. The F1 LV Evaluation Board will auto-detect the type of motor
add-on used and automatically configure accordingly for use. All drivers are reused
from the previous demos. The RTCC is driven from the LCD peripheral.
The combined demo is preprogrammed in the F1 LV Evaluation Platform.
4.4 MOTOR CONTROL GUI APPLICATION
The F1 LV Evaluation Platform is developed to connect through the MCP2200 to the
user’s computer emulating a serial port. The GUI is capable of detecting which F1 LV
add-on board is being used. Through the application, the user is capable of exploring
the many options made with these motor types.
The GUI is capable of detecting and displaying which firmware version is being used
through the F1 LV Evaluation Platform, and also which add-on board is connected. The
features of the GUI in use with the F1 LV Evaluation Platform with its add-on boards is
discussed in the Add-on User’s Guide.
4.5 BLDC DEMO
The BLDC demo controls a sensorless, brushless DC motor connected to the PIC16F1
BLDC Expansion board (DM164130-2). Motors of the same type, but other than the
motor supplied, can also be driven by making appropriate modifications to the motor
control parameters.
Refer to application note AN1305, “Sensorless 3-Phase Brushless Motor Control with
the PIC16FXXX”, for detailed information regarding BLDC motor control.