Very first use of PBP (newbie!)


Results 1 to 8 of 8

Threaded View

  1. #4
    Join Date
    Jul 2007
    Posts
    53


    Did you find this post helpful? Yes | No

    Default A few things are wrong here

    Rich,

    "define osc 8" Is NOT changing oscillator frequency, It's just telling PBP at which frequency the oscillator is running. And most important, all defines must be in UPPERCASE when using PBP. Not 100% sure if required, but I would also try writing PORTB.0 uppercase.

    BobK is right too, try adding define TRISB = %00000000. I don't exactly remember why, but I had some problem a while ago using high and low without having defined the port as an output, (but PORTB.0=1 was working fine!)

    Picaxe is fantastic to learn PIC, but is missing all details related with PIC registers. When you're programming with PBP you have to read and understand the datasheet of the chip you're using. Then you will be able enjoy PBP and use all the flexibility of you're PIC.

    J-P
    Last edited by GrandPa; - 15th September 2007 at 19:41.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13: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, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 03:16

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