In the videos below, the emotor
is tested as a standalone unit.
Download source code: emotor.c
Create a new project in MPLAB or MPLABX IDE and add this source file to the project. Compile and load to the dsPIC. Pop a beer (if you haven’t done so.)