According to the datasheet it's on GPIO.2
Place these defines in the top section of your code;
DEFINE CCP1_REG GPIO
DEFINE CCP1_BIT 2
Should compile & work fine now.
It's still giving me a series of the same errors... I'm so confused!
If you're using MPASMWIN as the assembler, make sure you have the latest version of
MPLAB installed with the P12F615.INC header file.
You could also try switching to PM as the assembler for a quick check.
If you upgraded from an older version of PBP that may be a problem too if MCS is still using
the old version at compile time. Support for the 12F615 was added in version 2.50.
oups, i think i didn't check the right datasheet...
something is weird in the CCP1_REG and in CCP1_BIT declaration... So try to add the following defines
EDIT: OUPS again... Bruce beat me. So now, what are those errors ??? Which version are you using?Code:DEFINE CCP1_REG GPIO 'Hpwm 1 pin port DEFINE CCP1_BIT 2 'Hpwm 1 pin bit
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I have v. 2.5
I must be missing something... Those defines look the same as the ones above????
Error[113]c:\pbp\pbppic14.lib 1972 : Symbol not previously defined(registername)
mmm, how about your code? so we can check it here as well.
<hr>
For the other members, you can fix this little problem and modify the 12F615.BAS file located in your PBP folder. Just open it and add the line in RED
This will set the Default settings, and avoid to see that Warning [219] message again.Code:BANK0 $0040, $007F LIBRARY "PBPPIC14" DEFINE CCP1_REG GPIO DEFINE CCP1_BIT 2 include "PIC14EXT.BAS" PORTL VAR GPIO PORTH VAR GPIO TRISL VAR TRISIO TRISH VAR TRISIO include "PBPPIC14.RAM" '*-----------------------* EOF 12F615.BAS *---------------------*
Thanks Charles from Melabs!
It doesn't explain error [113] of WireMan in the previous post... let's see it's code first
Last edited by mister_e; - 9th November 2007 at 23:47.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Here is what I have.....
Duty var Word
DEFINE CCP1_REG GPIO
DEFINE CCP1_BIT 2
TRISIO = %00000000
T2CON = %00010101
PR2 = 249
Duty = 200
HPWM 1,duty,1000
End
On the [113] ERROR it references the following registers...
T2CON, PR2, CCPR1L, CCP1CON
Then there are two registers I don't see in the data sheet...
T2CKPS0 and T2CKPS1
I feel like I'm shooting in the dark here...
Error 113 is an MPASM assembler error for Symbol not previously defined
This means you either don't have an updated version of MPLAB with the P12F615.INC, it's
bad, it's not being found because your path is not setup right, etc, etc,,.
Set PM as the assembler in MicroCode Studio. If it compiles OK, then you know what the
problem is, and can fix it.
Bruce,
Thanks!!! For some reason the program got confused as to the path for the assembler. I directed it manually and it is working fine... compiled the first time with no errors!
Thank you to everyone who tried to help with this!!!
Pat
Bookmarks