I2C help Please


Closed Thread
Results 1 to 7 of 7

Thread: I2C help Please

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: I2C help Please

    Ahhh! I just checked out one of my programs and noticed that all the data had to be sent by their ASCII value.
    Instead of:
    Code:
    I2CWRITE DPIN, CPIN, $4C, ["Hello"], NOACK
    Send it:
    Code:
    I2CWRITE DPIN, CPIN, $4C, [$48,$65,$6C,$6C,$6F], NOACK  ' Using HEX values
    
    or
    
    I2CWRITE DPIN, CPIN, $4C, [72,101,108,108,111], NOACK  ' Using DEC values
    My contrast and brightness values were also set a lot lower: Contrast= $1C or 28 and Brightness= $6 on a Newhaven serial display.

    Louie

  2. #2
    Join Date
    Dec 2011
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: I2C help Please

    I finally got the thing working!!! I realized that the address I was using $4C was only 7bits long, tried $98 for the address and it started working. Been working on this for about 5 days now, guess the important thing is that its working and I can now start my project as everything revolves around this lcd controller.

    Thanks LinkMTech for all your input!!!!


    Code:
    SDA var PORTC.4                     
    SCL var PORTC.3 
    
    I2CWRITE SDA,SCL,$98, ["HELLO"]

  3. #3
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: I2C help Please

    Awesome!
    Best of luck on the rest of your project!
    Louie

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