I2CRead / I2CWrite Problem?


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Looks like your HSEROUT is where the problem is... flush the Transmit Buffer with a CR/LF... tell us what happens...

    either...
    Code:
    loop:
         for i = 0 to 23
           I2CREAD SDA,SCL,$A0,i,[B1] ' Read 2 locations in a row
           hserout ["Read=",#B1,13,10]        
         next i
    or this...

    Code:
    loop:
         for i = 0 to 23
           I2CREAD SDA,SCL,$A0,i,[B1] ' Read 2 locations in a row
           hserout ["Read=",#B1,"|"]        
         next i
         hserout [13,10]

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Thank you Melanie, Both methods are working perfect!!!!

Similar Threads

  1. I2CRead & I2CWrite not working as expected
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 30
    Last Post: - 27th October 2021, 18:36
  2. Problem with I2Cread and I2CWRITE function
    By Tony85 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th June 2006, 20:03
  3. Problem with I2Cread and I2CWRITE function
    By Tony85 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th June 2006, 18:32
  4. PFC8583 Connection and I2Cwrite I2cread!
    By uludere72 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 27th February 2006, 13:32
  5. I2CWRITE and I2CREAD
    By Tomas in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd April 2004, 02:30

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