Melexis


Closed Thread
Results 1 to 5 of 5

Thread: Melexis

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    9


    Did you find this post helpful? Yes | No

    Default update on code

    Here's my subroutine. It worked like a charm!

    read_temp:
    sensortemp = 0
    reg = $07
    addr = 0
    I2CRead Tda, Tcl, addr, reg, [sensortemp.lowbyte, sensortemp.highbyte]
    Return

    I used a 18F6720 using a define of 4 mhz, with sensortemp defined as a word.
    reg and addr were defined as bytes. Tda and Tcl were pin assigments.
    reg $07 sets the sensor to send Object Temperature 1.
    Last edited by rtsandiego; - 20th September 2009 at 01:14.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts