Bit Banging input to output on PIC16F876A


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Cool Ok so now... to the SIM!

    Now that I'm pretty sure I have the software settled... Has anyone been able to simulate a PIC16F876A with MPLAB's Simulator? What's the trick? I think I have everything set up right, it doesn't complain, but when I run the compile option it opens the PBP editor and then nothing else happens... Anyone?

    Bron

    Ok I did a IDE Compile in PBP(Microcode Studio +) and the simulator started running after I exited manualy from PBP

    For some reason it's stuck in this loop in PBPPIC14.LIB

    CLRWDT? macro
    ifndef NO_CLRWDT
    clrwdt
    endif
    endm
    hserinloop CLRWDT? ; Keep Watchdog timer clear
    btfss PIR1, RCIF ; Check for char
    goto hserinloop ; Loop till char
    NOLIST
    HSERINX_USED = 1
    endif
    Return

    Is it looking for the watchdog timer?
    I'll keep playing with the simulator but this isn't my code, it looks like junk PBP added from the PBPPIC14.LIB?
    Last edited by Bronurstomp; - 27th June 2008 at 03:49. Reason: Stuck in MPLAB SIM
    The less you expect, the more you get.

Similar Threads

  1. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  2. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 01:50
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  4. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  5. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29

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