ONE WIRE & Oscillator Frequency


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136

    Default ONE WIRE & Oscillator Frequency

    I'm using:

    PIC16F877A, DS1820 One-wire digital thermometer (with pull-up), readout on LCD and PBP compiler.

    1. With a 4 MHz Xtal all is fine and I get accurate temperatures.

    2. Change to 20 MHz and use DEFINE OSC 20 and it won't work? The compiler is getting the DEFINE OSC 20 all right as the LCD works Ok.

    3. I've used other functions at 20 MHz (RS232, I2C etc) and they have been OK but the OWIN OWOUT don't want to play.

    Any ideas?

    Thanks. Bill Legge

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Bill Legge View Post
    2. Change to 20 MHz and use DEFINE OSC 20 and it won't work? The compiler is getting the DEFINE OSC 20 all right as the LCD works Ok.
    Thanks. Bill Legge
    This might help:

    http://www.picbasic.co.uk/forum/show...ighlight=owout

    Actually, as long as you are using PBP 2.50, I think it WILL fix your problem.
    Last edited by skimask; - 10th February 2008 at 09:04.

  3. #3
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136

    Default Ow Osc Problem

    Thanks very much for the solution. I'm a month into using the PIC & PBP and running into a brick wall is depressing.

    Regards Bill Legge

  4. #4
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Bill Legge View Post
    Thanks very much for the solution. I'm a month into using the PIC & PBP and running into a brick wall is depressing.

    Regards Bill Legge
    Ah! Running... Brick Wall... Depressing... I get it! Ha!

    Seriously... Keep checking back at melabs for updates/patches/etc. and of course here. There's a couple of other small bugs out there that I know of, and at least one that's not covered in the 2.50a patch...yet. Quite frankly, PBP is about as rock solid as there is. The average user would most likely never come across them.

  5. #5
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136

    Default One Wire/osc

    Hi,

    I've just made the changee and it's workin fine @ 20 MHz. I'm amazed that someone knows their way around such a huge pile of code.

    Who is this fellow?

    Bill Legge

  6. #6
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Bill Legge View Post
    Hi,
    I've just made the changee and it's workin fine @ 20 MHz. I'm amazed that someone knows their way around such a huge pile of code.
    Who is this fellow?
    Bill Legge
    It's just stuff that gets picked up along the way, and somebody happens to remember it from time to time. It's not witch-craft, but sometimes I think it's real close...

Similar Threads

  1. 1 Wire Search Routine
    By Dave in forum Code Examples
    Replies: 3
    Last Post: - 4th March 2016, 07:39
  2. Need Single wire serial LCD converter example
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th December 2009, 02:30
  3. how can I make 1 wire between two pic 16f877
    By povulon in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th July 2008, 14:44
  4. Oscillator stops when touching with a wire
    By Wilbert Ingels in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 25th April 2008, 08:51
  5. RPM with wire and PIC
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2004, 20:42

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