LM71 reads garbage sometimes.


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: LM71 reads garbage sometimes.

    Pause has nothing to do with power up , sometimes mcu does not get nice crisp power on and it doesn't like slow lazy power on like when capacitors are on it's input, power up delay holds in reset until voltage is up to snuff and then allows it to boot.
    One other thought : you have changed everything except the breadboard, breadboards do go bad.
    Last edited by Archangel; - 1st February 2014 at 07:46.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Feb 2013
    Posts
    1,149


    Did you find this post helpful? Yes | No

    Default Re: LM71 reads garbage sometimes.

    Well, I'm not using breadboard at all. I've tried to make different PCBs, switched power supplies, etc. no help.

  3. #3
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: LM71 reads garbage sometimes.

    You will need to post your whole code , but here are a couple clues... The device needs a write on the rising edge, then data will be available on the falling edge. While CS is held low, send a command with a PRE then receive data with a POST. Also, are you sure you get valid data ever? The datasheet looks like you should be using LSB first, not MSB.

  4. #4
    Join Date
    Feb 2013
    Posts
    1,149


    Did you find this post helpful? Yes | No

    Default Re: LM71 reads garbage sometimes.

    The whole code, related to temperature measurement is posted above. Regarding the valid data, I had to add division by 28, to get reasonable output. I've used melting ice and boiling water to determine that coefficient.

Similar Threads

  1. ds18s20 reads incorectly
    By jcleaver in forum mel PIC BASIC Pro
    Replies: 42
    Last Post: - 28th May 2014, 19:03
  2. 5v on analog pin but reads value
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 9th November 2012, 03:41
  3. Garbage in from RFID
    By lilimike in forum Serial
    Replies: 6
    Last Post: - 6th December 2009, 14:55
  4. EEPROM writes and reads
    By boroko in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 19th November 2008, 01:56
  5. SEROUT Just Garbage!
    By Kman in forum mel PIC BASIC Pro
    Replies: 36
    Last Post: - 6th September 2006, 19:42

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