PDA

View Full Version : Christmas star panic ..again !



Davidmarks
- 6th December 2009, 10:29
Hi all
You good people were kind enough last year to help me get my Christmas star working. Haning lost the source code I have retrieved the copy I sent to this forum, entered it into a newly downloaded version of Code studio and tried to compile it with a newly installed version of PBP v 2.50 I then get the following errors:
undefined symbol 'pic16f887'
undefined symbol 'ansel'
undefined symbol 'portd'
undefined symbol 'portc'
too many errors

The first part of the code which contains these errors is as follows:
[@ DEVICE pic16f887,intrc_osc_noclkout
ansel = %00000000
delay var word

fastflash var word

PORTD = 0
PORTA = 0
PORTC = 0
TRISD = 0
TRISA = 0
TRISC = 0
fastflash = 150
]
I am at a loss to understand why last years apparently good code no longer works although I have that familiar sinking feeling that I am doing something extremely stupid (As I said previously its probably my age which has got worse since last year !) Any comments would be greatly appreciated.

Acetronics2
- 6th December 2009, 10:38
Hi,David

Looks you've forgotten to tell MCS Which PIC you intend to use ...

Upper left window ... Which Pic ref. do you read ???

Alain

Davidmarks
- 6th December 2009, 11:02
OH dear ! I Knew it was going to be something dumb ! Thanks a lot Alain, the christmas star is successfully reprogrammed. One small electronic problem to sort out and the wise men will be heading this way .. Heaven knows I need them !! many thanks again