Microchip Technology PICDEM Mechatronics Demo Board DM163029 DM163029 User Manual
Product codes
DM163029
PICDEM
TM
Mechatronics Demo Board User’s Guide
DS51557C-page 42
©
2006 Microchip Technology Inc.
2.3.9
Project 9: Brushed DC Motor Control Using the ECCP
This project is very similar to Project 5, only in this project, we are using the Enhanced
Capture Compare PWM (ECCP) module in the PIC16F690 (see note). In PWM mode,
the ECCP module has four outputs for directly driving an H-bridge circuit. This makes
implementing bidirectional speed control of a Brushed DC motor a simple task.
Capture Compare PWM (ECCP) module in the PIC16F690 (see note). In PWM mode,
the ECCP module has four outputs for directly driving an H-bridge circuit. This makes
implementing bidirectional speed control of a Brushed DC motor a simple task.
Objectives
1.
Configure the ECCP module for Full-Bridge mode.
2.
Change motor directions.
Applicable Technical Documents
Low-Cost Bidirectional Brushed DC Motor Control Using the PIC16F684 Application
Note, AN893 (DS00893)
Note, AN893 (DS00893)
Jumper Configuration
• P1A (J6) to P1 (J1)
• P1B (J6) to N1 (J1)
• P1C (J6) to P2 (J1)
• P1D (J5) to N2 (J1)
• AN2 (J5) to POT1 (J4)
• RA5 (J6) to SW2 (J4)
• Make sure there are no shunts (two pin jumpers) on J2.
• Attach the Brushed DC motor leads to DRIVE1 (P9) and DRIVE2 (P10).
• Connect the right and center pins of JP8 using a shunt.
Note:
To change microcontrollers, disconnect power from the board. Remove the
PIC16F917 microcontroller from U1 and install the PIC16F690 in U2.
Reconnect power to the board.
PIC16F917 microcontroller from U1 and install the PIC16F690 in U2.
Reconnect power to the board.