A help with Write/Read a I2C memory


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    POST #10, not #9

    anyways, look what your actual code do...
    Code:
    FOR ADDR=0 TO 13
    I2Cread SDA,SCL,$A0,ADDR,[bYTEA]
    
    lcdout $FE,1  ' it always clear your LCD and return to home
    LCDOUT $FE,$80,"INCERCARI" ' it always draw this line
    LCDOUT $FE,$C0+addr ,ByteA '  and finally here, it will only draw a single character, because you ALWAYS clear the WHOLE lcd with $FE,1
    
    pause 300
    next
    hence why i've move most LCDOUT BEFORE the FOR/NEXT loop.... twice.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Nov 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    POST #10, not #9

    anyways, look what your actual code do...
    Code:
    FOR ADDR=0 TO 13
    I2Cread SDA,SCL,$A0,ADDR,[bYTEA]
    
          I understand that  : in this line " byTEA is a new variable where PBP put what read at "ADDR"  I have change with "C" and is the same .
    
    lcdout $FE,1  ' it always clear your LCD and return to home
    
          Aha , I will delete this line !! .....and WORK !! 
    
    LCDOUT $FE,$80,"INCERCARI" ' it always draw this line
    
          yes , I wish this .
    
    LCDOUT $FE,$C0+addr ,ByteA '  and finally here, it will only draw a single character, because you ALWAYS clear the WHOLE lcd with $FE,1
    
    pause 300
    next
    hence why i've move most LCDOUT BEFORE the FOR/NEXT loop.... twice.
    I understand , I have make changes in programs and now it work !

    Thank you very much for all help ! Have you only a happy days !

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Grreeeeeeeeeeeeeat! Enjoy!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    "Have you only a happy days !"

    Quote of the day.
    No, I'm not Superman, but I did stay at a Holiday Inn Express last night!

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    ah come on... read first post
    Quote Originally Posted by POST #1
    My name is Eugen , from Romania - Bucharest .
    Chances are that our friend is not English, and try to do it's best... as i do each days since i'm here.... and yes i do tons of mistakes here and there, in each and every of my over 4,800 posts.

    Time to raise Melanie's post once again
    http://www.picbasic.co.uk/forum/showthread.php?t=4583
    Last edited by mister_e; - 27th March 2008 at 22:10.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    mister-e, tong-in-cheek, you know that. I would have stuck with helping him but my job called me away. Thanks for jumping in. It's best anyway, as I'm working on alot of I2C code right now and this kind of evolved into an LCD issue, which is not in the front of my mind.
    No, I'm not Superman, but I did stay at a Holiday Inn Express last night!

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Talking

    You just provided one example for me and probably tons of other users + spelling mistake . Tongue-in-cheek... for me, French Quebecer, it doesn't mean anything... but thanks Wikipedia...
    Tongue-in-cheek is a term that refers to a style of humour in which things are said only half seriously, or in a subtly mocking way. It is related to satire and irony.
    I learn something new everyday Thanks!
    Last edited by mister_e; - 27th March 2008 at 22:41.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  4. Please help with i2cslave i2c slave
    By cycle_girl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st December 2005, 13:55
  5. I need help with i2c memory
    By -c3- in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 23rd June 2005, 19:57

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