I need help to bigin with pbp


Closed Thread
Results 1 to 4 of 4
  1. #1
    fdo2424's Avatar
    fdo2424 Guest

    Default I need help to bigin with pbp

    I have pic kit2 and dimo boad. and I have mastered asambly somewhat with it. I have run some asamby programs with my demo boad succesfully. but simple pbp program compiled with micro code plus, do not work. my my pic is 16f877a, with 20mhz oscilater. the program is below
    loop: high port.b
    pause 500
    low port.b
    pause 500
    goto loop
    end

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    The default PBP configuration fuses are set for an XT crystal. You will need to change them to accept HS osc.

    Presetting Configuration Fuses (PIC Defines) into your Program
    http://www.picbasic.co.uk/forum/showthread.php?t=543

    PORTB.b will not compile, you want to use PORTB.0, PORTB.1 or else.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    fdo2424, What port bit are you trying to toggle?

    Dave Purola,
    N8NTA

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


    Did you find this post helpful? Yes | No

    Default

    Your code should look something like this
    [code]
    HIGH PORTB.0
    PAUSE 500
    LOW PORTB.0
    PAUSE 500
    [code]
    The above will toggle pin 0 on PORTB.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 13:55
  2. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 14:43
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 20:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th December 2005, 00:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 04:16

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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