Help with DS18B20 program


Results 1 to 39 of 39

Threaded View

  1. #14
    Join Date
    Nov 2007
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    BINGO. You won't need a PIC guru

    You're using the internal oscillator, but you're not writing to OSCCON to configure it for the
    default 4MHz PBP will assume

    Drop OSCCON = %01100000 in there, and I'll bet it starts working just as expected. Check
    out the default value of OSCCON at power-up.

    Its default setting is for 1MHz. Problem solved. Even without a PIC guru..;o}
    Bruce -- It works like a charm now!

    Can't believe .... all I needed to add was that one line for the OSCCON setup. Thanks so much!

    BTW, one line of my program should be corrected. The original line - OWIN Comm_Pin, 2, [RAWTEMP] should be changed to ...
    OWIN Comm_Pin, 2, [RAWTEMP.LowByte, RAWTEMP.HighByte] - since OWIN can read in either a BIT or a BYTE only.
    Last edited by presario1425; - 21st November 2007 at 02:01.

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. Replies: 1
    Last Post: - 23rd May 2009, 09:22
  3. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. PIC16F684 Program question
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th December 2006, 14:30

Members who have read this thread : 2

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