Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Compiling 16F628A - problem

Status
Not open for further replies.

kenmac

New Member
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?
???????

kenmac
 
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.


kenmac
 
:oops: 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).

Any help would be appreciated.
:?: :?:

kenmac
 
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.


kenmac
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top