Write Onewire data toa I2C memory / read ASCI


Results 1 to 40 of 68

Threaded View

  1. #3
    Join Date
    Nov 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by inse View Post
    Hi Eugeniu,

    it's not clear to me what you want to do, maybe point 4.17.7. in the manual is what you should have a look at......................
    I will try to explain :

    I use in this moment .....writing a text in a I2C memory ........

    for adr = 0 to 135
    lookup adr,["WELLCOM ! .......................... 5"],c
    I2cwrite I2CDAT , I2CCLK , $A0,ADR,[C]
    pause 5
    next adr


    Read text :

    i2cread I2CDAT , I2CCLK , $A0,J,[caracter]

    Use " case " for select :

    SELECT CASE CARACTER
    CASE 65: SIR_NO=4 ;A
    CASE 66: SIR_NO=9 ;B
    CASE 67: SIR_NO=14 ;C
    CASE 68: SIR_NO=19 ;D
    CASE 69: SIR_NO=24 ;E


    and .....go for select what leds are on .....

    TABLOU:
    LOOKUP OFSET,[_
    $3F,$48,$48,$48,$3F,_ ;A 0-4
    $36,$49,$49,$49,$7F,_ ;B 4-9
    $22,$41,$41,$41,$3E,_ ;C 9-14
    $3E,$41,$41,$41,$7F,_ ;D 14-19
    $41,$49,$49,$49,$7F,_ ;E 19-24


    I wish to write time to time in memory a temperature from a Onewire sensor tip DS1820 and when I read from memory to find there a ASCI CODE to can use same , in my program .
    Last edited by Eugeniu; - 15th October 2008 at 15:16.

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  4. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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