pause loop lockup with mplab sim


Closed Thread
Results 1 to 3 of 3
  1. #1
    power67's Avatar
    power67 Guest

    Default pause loop lockup with mplab sim

    Ok all;
    I am new to picbasic pro and this one is driving me nuts.
    I am working with a pic16f88 and attempting to simulate it within mplab ide v7.00. When I even load the simple led blink program, the sim goes into a continious loop within the pause section of the program.
    it appears to hang on this section of the pbpic14.lib file

    pauseusloop nop ; 1
    addwf R0, F ; 1
    btfsc STATUS, C ; 1 / 2
    goto pauseusloop ; 2 / 0
    addwf R0, F ; 1 Do an extra countdown

    can someone let me know what I am doing wrong

    thanks in advance

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


    Did you find this post helpful? Yes | No

    Default

    Software simulation in MPLAB can take hours to run through a PBP PAUSE command depending on the period.

    Try PAUSEUS set to the absolute minimum delay period for the osc speed you're using. Or just comment out the PAUSE for software simulation.

    If you really want to watch it simulate a long PAUSE, then you can speed things up by changing the MPLAB sim Animate step time.

    In MPLAB click Debugger >> Settings, then select the Debugger Animation tab, and set Animate step time to 1mS.

    That will help speed things up, but you'll still want to avoid long PAUSE periods during software sim.
    Regards,

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

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


    Did you find this post helpful? Yes | No

    Smile

    Hi, Power 67

    I encountered such lockings ( computer error ...) with old releases of MPLAB.

    I didn' t see those since 6.x releases ...

    Only a little problem when simulating with 16F84 or 16F84a ( one of them ...)

    Alain

Similar Threads

  1. Controlsystem for compact sporting (clay shooting)
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th July 2009, 16:48
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. Replies: 11
    Last Post: - 12th July 2008, 02:36
  4. Fade out LEDs question
    By Sam in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd June 2008, 10:50
  5. Help Quick Need to make code smaller
    By Programmednew in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th January 2005, 03:46

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