I2C writing hex value


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Location
    Salt Lake City, Ut, USA
    Posts
    108

    Default I2C writing hex value

    Hello all,

    Well, I've got a quick question for one of you, before I potentially make this alarm panel an expensive paperweight. What I need to do is write the HEX characters to the i2c memory slot.
    If I do this:
    Code:
    WriteValue = $05
    EEAddress = 3160
        gosub WriteEEprom
    
    WriteEEprom:
        I2Cwrite DPIN,CPIN,$A0,EEAddress,[WriteValue]
        pause 500
            LCDout $fe, 1
            LCDout $fe, 2,"WRITING ADDR: ", DEC EEAddress
            Lcdout $fe, $C0,"DEC VAL = ", dec WriteValue
            Lcdout $fe, $94,"HEX VAL = ", HEX WriteValue
        hserout [dec EEAddress,"= DEC ",dec WriteValue,"   HEX ",HEX WriteValue,13,10]
    return
    Am I going to write "05" in the slot? Am I over-thinking this thing? Just don't want to doom the alarm panel!
    Thanks for the help guys,
    Chris

  2. #2
    Join Date
    Dec 2005
    Location
    Salt Lake City, Ut, USA
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    I am so impatient! No worries, it worked .

    Thanks for lookin' anyhow.

    Chris

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