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?
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
that code is on the 12f683 and works fine.
for the 16f77 ive stripped it all down to
I see the start message, but nothing more.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
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.
Your code compiled with PBP3:
hex.txt
Just change extension to .hex instead of .txt.
well, it appears I need to upgrade to pbp3. :/
that bites lol.
using the 3 demo it didn't hang at the owout.
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...
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![]()
Nomad, Glad to see you got it to work by changing the .lib file.
Dave Purola,
N8NTA
EN82fn
Bookmarks