Microchip Technology DM164130-7 Data Sheet

Page of 60
The Bipolar Stepper Add-on Board
 2012 Microchip Technology Inc.
DS41629A-page 37
 below gives an insight on how to use the PIC MCU modules as part of a 
current chopper: 
FIGURE 4-2:
CURRENT CHOPPER CIRCUITRY EMULATED WITH 
PIC16LF1947 INTERNAL MODULES
4.5
DEMO SOFTWARE
4.5.1
Introduction
The F1 LV evaluation demonstration program uses a single combined demo. The 
combined demo source code is organized into sectional code for ease of 
accommodating several motor types. This chapter provides an overview to the 
functions provided by the bipolar stepper demo.
The bipolar stepper demo code accommodates Full Step, Half Step and Microstep 
modes of operation. The software can be easily tuned to the needs of your application 
or motor, by modifying parameters in the Motor Control GUI.
4.5.2
The Motor Control GUI Application
Using the Motor Control Application GUI, you can change the following parameters:
• Speed [arbitrary range 0 to 255]
• Maximum speed [rpm]
• Drive voltage [% of full scale]
• The minimum and maximum PWM duty cycle [% of full scale]
• Motor step angle [degrees]
• Run/Stop hysteresis drive voltage [% of full scale]
• Microstepping granularity [1:4, 1:8, 1:16]
• Microstepping look-up table
• Stepping mode [Wave, Full, Half and Microstep]
Also, the motor can be run in open/closed loop and forward/reverse.
Clicking on the ‘RPM’ text in the Operate tab, will display the actual speed in the text 
box next to it.
PIC16LF1947
J1
Bipolar Transistor 
Command Bridge
Q1
Q3
Q4
Q6
V_MOTOR
R8
I1
_
+
M
W
X
DAC
[4:0]
Vdd
GND
FVR
[1.024V:1x/2x/4x]
CMxCON1
CCPxAS
PWMxCON
ECCPx:
PWM Auto-Shutdown
PWM Auto-Restart