PDA

View Full Version : 16F877A Microcode Studio won't compile



curt66111
- 24th November 2009, 20:01
This is my first thread. I am new at the microcontroler game and I have been intrested receintly in finding out how to program microcontrolers. I have been studing and reading the last couple of years on the internet, down loading data sheets, and books I have ordered off the web.
(PICBASIC PROJECTS by Dogan Ibrahim,,, Programing PIC Microcontrolers With PICBASIC by Chuck Hellebuyck,,, PBP manuals)
I would be greatfull if any of you would be able to recomend any other books that would better explane the include files, the definations, and boot loaders? I know I have much to learn.

I have had good luck so far in learning PICBASIC PRO by the examples given in the books. I am currently using Microcode Studio Plus 3.0.0.5 and PBP 2.60. I want to use the SPI 4 wire comunication on master and slave PIC16F877A 's. The books don't get into SPI (serial periphal interface) much.
I found the spimast.bas and the spislave.bas in the MEL BASIC SAMPLES CODE. I typed them into Microcode Studio Plus. But when I try to compile them, I get errors.

THE SLAVE ERRORS ARE
Error [113] c:\pbp\pbppic14.lib 5974:Symbol not previously defined(GO_DONE)
Error [113] c:\pbp\pbppic14.lib 5991:Symbol not previously defined(ADCON0)
Error [113] c:\pbp\pbppic14.lib 6000:Symbol not previously defined(ADCON0)
Error [113] c:\pbp\pbppic14.lib 6007:Symbol not previously defined(ADCON0)
Error [113] c:\pbp\pbppic14.lib 6007:Symbol not previously defined(GO_DONE)
Error [113] c:\pbp\pbppic14.lib 6008:Symbol not previously defined(ADCON0)
Error [113] c:\pbp\pbppic14.lib 6008:Symbol not previously defined(GO_DONE)
Error [113] c:\pbp\pbppic14.lib 6015:Symbol not previously defined(ADRESH)
Error [113] c:\pbp\pbppic14.lib 499:Symbol not previously defined(TRISC)
Error [113] c:\pbp\pbppic14.lib 463:Symbol not previously defined(TRISC)
Error [113] c:\pbp\pbppic14.lib 477:Symbol not previously defined(TRISC)
Error [113] c:\pbp\pbppic14.lib 491:Symbol not previously defined(TRISC)
Error [113] c:\pbp\pbppic14.lib 899:Symbol not previously defined(TRISC)
Error [113] c:\pbp\pbppic14.lib 449:Symbol not previously defined(SSPCON)
Error [113] c:\pbp\pbppic14.lib 463:Symbol not previously defined(SSPCON)
Error [113] c:\pbp\pbppic14.lib 477:Symbol not previously defined(SSPCON)
Error [113] c:\pbp\pbppic14.lib 491:Symbol not previously defined(SSPCON)
Error [113] c:\pbp\pbppic14.lib 899:Symbol not previously defined(SSPCON)
Error [113] c:\pbp\pbppic14.lib 918:Symbol not previously defined(SSPCON)
Error [113] c:\pbp\pbppic14.lib 499:Symbol not previously defined(SSPSTAT)
THE MASTER ERRORS ARE PRETY MUCH THE SAME

I have read that the compiler has to compile a different way for this type Microcontroler. Can it even be done through Microcode Studio Plus? If so how?
I know it is something simple to alot of you to correct this, but I Have hamered on this in different directions for the last three months and I can't seem to figure it out. I hope some one can Help me with this problem. Thanks for your time in reading this. Have a nice day.

Acetronics2
- 24th November 2009, 20:13
Hi,

The question will be ...

Which processor reference appears in the little white window of M.C.S. , in the upper left zone ???

Alain

curt66111
- 25th November 2009, 19:35
I am so stupid. I closed that tool bar down way back when I first got the M. C. S. and I didn't know that little white window even existed until your Question caused me to look for it.
Thank you so much. I AM BACK LEARNING AGAIN.