Hey Darrel
I Still can not get the ECCP Port to work. I added the three lines to the INC file.
This is what I have for Code.
Define OSC 20 'OSC (20Mhz)
Include "modedefs.bas" 'Includes Definitions.
Define Loader_USED 1
INTCON = %00000000 'Turns off all Interrupts.
ADCON0.0 = 1 'Turns off A/D Module
ADCON1 = 6 'Turns PortA and PortE to Digital Pins
'Defines wait time for PulsIn.
TrisB.1 = 0
CMCON = 7
HPWM 1,127,40000
HPWM 2,200,40000
Main:
PortB.1 = 1
Pause 1000
PortB.1 = 0
Pause 1000
Goto Main
I can get this part of the code to work HPWM 1,127,40000.
But I can not get this part to work HPWM 2,200,40000.
I have all of the RD4 for ECCP and RC2 for CCP.
Please tell me what I'M missing can both ECCP and CCP run at the same time?
This is driving me nuts.
Thanks
Bookmarks