Christmas star panic ..again !


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Posts
    21

    Default Christmas star panic ..again !

    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.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Talking

    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
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Dec 2009
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Whoops !

    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

Similar Threads

  1. Smart Star (how to use shift registers)
    By mackrackit in forum Code Examples
    Replies: 3
    Last Post: - 30th November 2008, 20:06
  2. Top christmas projects star
    By rickyD in forum mel PIC BASIC
    Replies: 1
    Last Post: - 20th July 2008, 08:55
  3. Merry Christmas everyone...
    By joseph Degorio in forum Off Topic
    Replies: 0
    Last Post: - 24th December 2007, 15:43
  4. Happy Christmas
    By Adrian in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th December 2007, 14:58
  5. Merry Christmas Everyone
    By jessey in forum Off Topic
    Replies: 4
    Last Post: - 24th December 2006, 14:13

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts