Can you please give me some code to use for loading a value into CCPTMRS0 manually on the PIC16F1828.
The data sheet shows its in memory map location:
Bank5
29Eh
CCPTMRS0
Thanks in Advance!... And I'm working on purchasing PBP3.0 as well.
Can you please give me some code to use for loading a value into CCPTMRS0 manually on the PIC16F1828.
The data sheet shows its in memory map location:
Bank5
29Eh
CCPTMRS0
Thanks in Advance!... And I'm working on purchasing PBP3.0 as well.
-ray
"Imagination is more important than knowledge", Albert.E.
Hi,
I'm not sure this is the case but I think it might be an MPASM include file issue.
It looks like CCPTMRS and CCPTMRS0 registers are one and the same (they are defined that way (at 0x029E) in my version (5.47) of the MPASM .inc file) so it's possible that your version of the .inc file is missing the CCPTMRS0 regsiter definition.
So, try using CCPTMRS instead of CCPTMRS0 or you can try adding......at the very beginning of your code.Code:ASM CCPTMRS0 EQU H'029E' ENDASM
/Henrik.
DT is correct, after trying several variants of ASM code that didn't work; I was buying and downloading the PBP3.0.
The PBP3.0 is nicely packaged! Download the 128Mb flavor with all the new MPASM/Microcode Studio stuff...and you may need to get the latest Beta programmer software for newer PICs.
The multiple hardware PWMs on the PIC work from the multiple Timer2's now that I used PBP3.0
$$ well spent, and for a good cause to keep the PB biz going!
I still have a problem with keeping the hardware PWM going, it stops when I use HSER or ADC on other pins, eventhough the hardware PWM is coming out of a default ccp pin(that is not eusart by default)
..I haven't figured it out yet..
thanks all !!![]()
-ray
"Imagination is more important than knowledge", Albert.E.
Ok, the hardest problems are the one's when you are the problem yourself.
I had an error in a supporting device's code, fixed it, and now all works good.
BUT,
It would not be possible without using the PBP3.0
thanks DT !
-ray
"Imagination is more important than knowledge", Albert.E.
Thank you Olsson!!, that work-around is on the right track and I tried a few attempts as such, but no success.
The PBP3.0 works good and worth the $$ IMO.
all the best!
-ray
"Imagination is more important than knowledge", Albert.E.
Bookmarks