getting started


Closed Thread
Results 1 to 6 of 6

Thread: getting started

  1. #1

    Default getting started

    I need some help getting started with picbasic pro, my copy arrived in the post today. I open microcode studio, and the example blink.bas. When I try to compile it I get a long list of errors. How do I get started? Im using MPASM v5.01 and the velleman k8048.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Welcome to the forum.

    If you could post some of the errors it would help us figure it out.

    But to start with make sure you are using MPASM.
    Goto editor options in MCS and make sure MPASM is checked.
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thanks for the quick reply Dave. The first error is 'cannot open file (include file P16f84.inc not found)
    The rest of the errors are 'symbol not previously defined........'
    Am I correct in thinking that the include file is an assembly language header for the 16f84? I have found this by manually searching.
    I have 'use mpasm' checked under compile and program options.
    Regards, John

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Where the "use MPASM" check box is at , did you click find automatically and did it find MPASM the same place you found the inc?

    And yeas about the *.inc. There is a set of them in the PBP directory and another in the MPASM directory. The ones starting with a "P" are from MPASM.


    What OS are you using?
    Dave
    Always wear safety glasses while programming.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Thanks for your help so far dave, I have sorted the problem out now. I have 2 hard drives installed on my computer, and ended up with the mecanique folder on D: and mpasm on C: or something, so I think the program was looking in the wrong place for the INC files. I now have a set of flashing LEDs in front of me, so im off to a good start and very pleased.

    Thanks very much Dave
    BR John

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    COOL!
    More fun with BLINKY
    Play with this a little. Change the PORT setting to match you PIC
    Code:
    X	VAR	BYTE
    
    Y	VAR	BYTE
    
    X = 1
    
    
    
    RAMPUP:
    
    FOR Y = 0 TO 10
    
      HIGH PORTB.2
    
    LOW PORTB.3
    
    PAUSE X
    
    LOW PORTB.2
    
    HIGH PORTB.3
    
    PAUSE X
    
    NEXT Y
    
    X = X + 10
    
    IF X => 100 THEN RAMPDOWN
    
    GOTO RAMPUP
    
    
    
    RAMPDOWN:
    
    FOR Y = 0 TO 10
    
      HIGH PORTB.2
    
    LOW PORTB.3
    
    PAUSE X
    
    LOW PORTB.2
    
    HIGH PORTB.3
    
    PAUSE X
    
    NEXT Y
    
    X = X - 10
    
    IF X =< 25 THEN RAMPUP
    
    GOTO RAMPDOWN
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Trying to get started w/ HPWM
    By circuitpro in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 20th February 2010, 18:42
  2. Getting started... again...
    By Neosec in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 31st May 2008, 02:09
  3. MPASM 18F4550 getting started
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th September 2007, 23:59
  4. How did you get started .....
    By keithdoxey in forum General
    Replies: 25
    Last Post: - 13th April 2007, 19:29
  5. getting started with a PIC 18F4550
    By bigbear in forum General
    Replies: 2
    Last Post: - 16th October 2006, 02:31

Members who have read this thread : 1

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