Can somebody help me find why the hpwm command doesn't compile in this code. I'm using MCS compiler with PBP 2.47
Can somebody help me find why the hpwm command doesn't compile in this code. I'm using MCS compiler with PBP 2.47
No idea which PIC this is for...or even if said PIC has a PWM module in it...
And these lines:
Put them in CAPs, like the book says, and you'll discover a brand new error, also explained in the HPWM section of the book...Code:define ccp1_reg = portb define ccp1_bit = 0
And which PIC, exactly, has a PWM module assigned to PortB.0?
DEFINE's don't use = signs.
Code:define ccp1_reg = portb define ccp1_bit = 0
DT
If you have the datasheet did you notice the note?
Note 1: The CCP1 pin is determined by CCPMX in
Configuration Word 1 register. You have a choice of 1 of 2 pins.
Note: The TRISB bit (0 or 3) is dependant upon
the setting of configuration bit 12 (CCPMX).
Darrel
I was not trying to override your suggestion, just asking cpillips82 if he noticed the note. It caught me by surprise is all.
I always bow to your experience. I am lucky if I don't get smoke when I plug something in.
I read every post and see if I can follow through on everything. Turns out I searched the datasheet for the wrong thing. Looked for CCPMX not CONFIG1.
PS NO BET, I be flat broke I play with PICs because they be cheaper than cars!
But if you every get down my way I'm always good for at least one beer.
Sorry to butt in cphillips82, I will crawl back into my hole now.
Last edited by manwolf; - 26th July 2008 at 06:43.
Bookmarks