PDA

View Full Version : compiling 12f675



MOUNTAIN747
- 14th October 2009, 20:18
I am starting my first 12f675 project. I have worked with PBP on 16fxxx controlers for sometime. To speed things up I used Ian Burn's simple led blink program (http://members.shaw.ca/picgroup/Resources/Picadilly_12.pdf) code to get up and running. When I compile I get a number of errors.
Undefined symbol 'pic12f675'
Undefined symbol 'mclr_on'
Undefined symbol 'ansel'
Undefined symbol 'trisio' and so on...

If I use, INCLUDE 'pic12f675', and compile, all symbols are recognized
but I get a Syntax error on the INCLUDE line number.

I've never had this problem on 877A, 873A or other parts. Is the include file a given on MicroCode Studio Plus? I'm using 3.0.0.5 And if so, why are the symbles not being recognized?

I'm sure it's a simple fix but the solution is not obvious.
comments please!

Darrel Taylor
- 14th October 2009, 20:49
Make sure you have the correct chip selected in the drop-down box in MicroCode Studio.

The file you are trying to include does not exist.
So PBP flags an error on the include line, and does not try to assemble the program.

The other errors are coming from the assembler, which won't show because it was not assembled.
<br>

LarryZ
- 13th November 2009, 01:22
I tryed to get an answer about the same thing here a couple of months ago but no one knew what to do.
I stumbled over the fact that PBP dosen't have a 12F675 chip in the trail version.
You just have to tell it you are using a 12F683.
If you download the Spec sheet for the 12F683 you will see it works fine.