owout not working on 16f77 ? (hangs)


Closed Thread
Results 1 to 11 of 11

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: owout not working on 16f77 ? (hangs)

    Nomad, I'm going out on a limb here but, looking at your code are you sure it's hanging on the OWOUT statement and not the OWIN? I see where you are queing the sensor for a busy signal but what happens if you do not receive any?
    Dave Purola,
    N8NTA
    EN82fn

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: owout not working on 16f77 ? (hangs)

    that code is on the 12f683 and works fine.

    for the 16f77 ive stripped it all down to
    Code:
    @ __CONFIG  _BODEN_ON & _CP_OFF & _PWRTE_ON & _WDT_ON & _HS_OSC
    
    DEFINE OSC 16
    
    ADCON1 = 7
    
    
    start:
    
        pause 500
        debug "owout (start conversio)"     
        OWOUT portb.2, 1, [$CC,$44] 
        debug "success!"
        pause 500
    
    goto start
    I see the start message, but nothing more.
    what really has me is even if there wasn't a device connected, it shouldn't hang on owout, and I can't even think of a condition it could hang at owout. I've found nothing on this being an issue, so I'm just going to have to use a different device.

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: owout not working on 16f77 ? (hangs)

    Your code compiled with PBP3:
    hex.txt
    Just change extension to .hex instead of .txt.

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: owout not working on 16f77 ? (hangs)

    well, it appears I need to upgrade to pbp3. :/
    that bites lol.

    using the 3 demo it didn't hang at the owout.

  5. #5
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: owout not working on 16f77 ? (hangs)

    Look in .mac file which macro is called when compile for 12F, and which for 16F.
    I think that should be same. If it is same, then problem must be in MPASM. So try another version of MPASM...

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: owout not working on 16f77 ? (hangs)

    the 12f683 and 16f77 are both 14bit. ( It works on 16f917, and tried both pm and mpasm prior to posting)
    As I mentioned getting pbp3, my wife gave me that *oh heck no* look, (I just bought some electronic toys).
    So that will have to wait a while.
    I copied the pbp3 pbppic14.lib,.mac,and .ram files to my pbp, and presto, it didn't hang!
    actually had temp readings on the lcd!
    going to compare the ow macros and see what is different from 2.5 to 3 that the 16f77 was choking on when I get time.

    ***Thank You*** for taking the time to compile it, I don't know that I would have went to pbp3 to test on my own.
    problem solved (well, it's working anyways), now to watch other devices wig from the wrong macro file lol

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


    Did you find this post helpful? Yes | No

    Default Re: owout not working on 16f77 ? (hangs)

    Nomad, Glad to see you got it to work by changing the .lib file.
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. pic18f4550 hangs.. RX_INT DT_INTS-18.. please help
    By cluster in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th November 2011, 16:32
  2. uC Hangs after second serout command
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th August 2011, 17:57
  3. AC voltage measurement with 16F77
    By MARWEN in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 22nd May 2011, 20:54
  4. PIC HANGS with SERIN and Timeout?
    By koossa in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th January 2008, 17:33

Members who have read this thread : 0

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