Unpacking a PICkit 2 Programmer/Debugger


Results 1 to 21 of 21

Threaded View

  1. #8
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Anand,

    When you create a variable for a port like PORT VAR PORTB or PORT VAR GPIO, all you're
    doing is creating an alias to the port. It doesn't create a variable in RAM like it would for
    something like X VAR BYTE.

    Look at the screen capture attached. Check out the address for _PORT, GPIO, _X and _Y.

    X and Y are variables in RAM. _PORT is just another name for the physicall address of GPIO.
    It's not a variable created in RAM. Just an alias to the port address.

    Running animations in MPLAB for PBP programs is a bit different than using it with assembly.

    If you run something like what's shown in my screen capture, and hit animate, it will show
    the green cursor on each line as it executes. Now insert a PAUSE 1 just after PORT = X.

    When it lands on the PAUSE 1 it calls the PBP library routine, so the library window opens
    and you don't see it execute the PAUSE 1 in the BASIC source window. It's only going to
    show inline type commands. Calls to PBP library functions aren't shown in the source code
    window. That's why the library window pops up.

    Using MPLAB with PBP takes a bit of getting used to, but it's worth the effort.
    Attached Images Attached Images  
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. PICkit 2 and RBC interrupts
    By jderson in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 4th April 2009, 02:33
  2. PICkit 2 for £9.99 inc P&P
    By Agent36 in forum General
    Replies: 6
    Last Post: - 16th November 2008, 23:44
  3. PicKit 2 Questions
    By dmairspotter in forum General
    Replies: 3
    Last Post: - 11th November 2007, 21:10
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Programming from MicroStudio to a PICKit 2
    By jblackann in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th November 2006, 03:56

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