Having trouble with SERIN command and MAX6675


Closed Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Have you tried sending the raw value received 'without modifying it' to your LCD while heating or cooling the part?

    Something like: lcdout $fe, $c0, BIN16 MXtemp

    Does it change when heated?

    Edit: Since you're using the internal osc on this one, place Define OSCCAL_1K 1 in the top section. Not sure it that will fix it, but it will for sure affect timing.
    I just tried it and there is no change

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    What's the 16-bit value shown?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Dec 2010
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    What's the 16-bit value shown?
    0000 0000 0000 0000

    zeros across the board with no change to heat

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Is the thermocouple a K type?
    The code given in the link I gave works.
    Check the hardware. Bad connections or backwards connection on the thermocouple or wrong type will cause problems.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Dec 2010
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Is the thermocouple a K type?
    The code given in the link I gave works.
    Check the hardware. Bad connections or backwards connection on the thermocouple or wrong type will cause problems.
    Both the thermocouples I have are K type and are connected properly. The ground lead on the thermocouple is tied to ground as well as the negative input on the MAX6675 as demonstrated in the datasheet. I did a continuity test on all wires coming from the chip and they're all good.

  6. #6
    Join Date
    Dec 2010
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    is the code you gave specifically for the 16f630?

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    No. The code shows how to use the MAX chip.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Did you look at the data output pin on the MAX chip with your O-scope to see if it's changing the value sent?

    If you send 16 clocks, and the data line stays at ground, I would think there's a problem with the MAX IC. If you see transitions on the data line, there's something going on with the PIC side.
    Last edited by Bruce; - 10th December 2010 at 19:30.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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