Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 21st September 2004, 05:40 AM   (permalink)
Default Compiling 16F628A - problem

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
kenmac is offline  
Old 21st September 2004, 06:23 AM   (permalink)
Default

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
kenmac is offline  
Old 21st September 2004, 09:18 AM   (permalink)
Default

ops: 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
kenmac is offline  
Old 21st September 2004, 05:46 PM   (permalink)
Default

i wish i could help , but i dont use picbasic.
assembly is the only way to go.
williB is offline  
Old 23rd September 2004, 06:00 AM   (permalink)
Default

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
kenmac is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:53 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker