Digilent PmodHB5 Manuale di riferimento - Pagina 2
Sfoglia online o scarica il pdf Manuale di riferimento per Microcontrollori Digilent PmodHB5. Digilent PmodHB5 4.
PmodHB5: Demo
Function
HB_MotorConfigure1
HB_MotorCommand1 main/main.c
HB_MotorReaction1
mIncrementRealTime
Because PmodCLP port J1 is plugged into JA and J2 is plugged into JB, no changes were required in
ClpLib_Config.h. If PmodCLP needs to be connected to another connector, then changes should be
made.
The following library functions from ClpLib.h were used:
Function
ClpPinsConfigure
ClpInit
ClpSetBackLight
ClpWriteStringAtPos
For more information on the HB_MotorLib.h library usage, see the PmodHB5 Library Reference
Manual. Also, if the user is interested in more information on the PmodCLP library operation, see the
PmodCLP Library Reference Manual found under the PmodCLP webpage at
Demo Documentation
Project Files
File
main.c
util.h
util.c
stdtypes.h
www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
Where (function / file)
main/main.c
Display/main.c
Main/Timer5Handler
Where (function / file)
DeviceInit/main.c
main/main.c
main/main.c
Display/main.c
Containing
Main application file. Contains main application loop,
interface ISR, buttons processing.
Common Utility Procedures. This is a standard Digilent
file, also used in other applications.
It was not modified for this application.
Common Utility Procedures. This is a standard Digilent
file, also used in other applications, implementing some
led and wait functions.
It was not modified for this application.
Digilent Standard Type Declarations. This is a standard
Digilent file, also used in other applications.
It was not modified for this application.
Purpose
Configure HB_Motor
Command the motor with the
desired duty and direction.
Compute and read the motor
speed.
Macro used to increment the
value of the real time counter
Purpose
Configure CLP pins.
Initialize CLP.
Turn backlight ON.
Write text to CLP.
www.digilentinc.com
Digilent, Inc.
.
page 2 of 4