Hi,
I have recently changed from 16F84 to 16F628A.
To do so I have upgraded Melabs v1.42 Picbasic Compiler to v1.45.
I used a small test Picbasic program is written using DOS Edit, then Run ...\PBC\pbc -p16F628A filename
The result is this error message:
"Error .....\PBC\INC\B16F628A.INC 7:[225]Undefined Symbol 'INTRC_OSC' "
The v1.45 uses PM v4.02
Does the different assembler has new requirements?
???????
Hi again,
It's OK folks - I have sorted this one.
Apparently it is necessary to declare the operating frequency, which wasn't necessary with the 84A.
So the following was added: symbol xtal = 4
The program now compiles OK.
Fooled myself - when testing the changes I accidentally left out the -p option, thus it programmed as a 84A, and didn't reflect the problem!
So, I still have the original problem with that error message [225].
I have tried a few things, with no joy.
Incidentally, the PM is v4.06, not v4.02 (typo).
I have solved this one.
Eventually I consulted with Melabs Support and they supplied a later version of the P16F62XA.INC file.
I compared that with the Upgrade version and found 3 lines with differences - appear to be spelling errors, INTOSC in lieu of INTROSC.
Anyway, I substituted the later file and it all works OK now.