Lower case defines?
Robert
My PBP3.0 client (MicroCode Studio) automatically turns the defines into lower case.
In any case (no pun intended), I have a number of other defines used for A/D conversion and LCD prep that work fine.
Since I posted the code above, I changed "duty" and "Freq" from Var to Con (constant), not that it made any difference.
I'm pulling the chip and will see if it's a hardware problem. I could also check if RB0 works instead of RB3, because I cannot see where there's a problem in software.
Believe it or not, I replaced the chip and now the pwm is working. (see attached screenshot of scope trace). Yet, all the other sections were working fine, A/D conversion, LCD display, interrupts and timer.
Now, I will go back and make it not work to see what codes I don't need and/or do need.
I was going to say that I "wasted" a lot of time trying to make the software work, but in a way I didn't waste anything because I was forced to read the data sheet with a little more care, and investigate other programs for solutions.
Bookmarks