I2CWRITE problem


Results 1 to 36 of 36

Threaded View

  1. #11
    Join Date
    Jan 2010
    Location
    morocco
    Posts
    16


    Did you find this post helpful? Yes | No

    Default

    hi art im newbe but if im right i noticed an error in your code .sorry if its not.
    Code:
    W0 var byte
    epin var word   <<<<<  i think this is address ?
    
    W0 = 0
    FOR cntr = 0 TO 2000  	'should be( FOR epin= 0  TO 2000 )!	or (cntr)should be var  xxx
    epin = epin + 5		'
    I2CWRITE porte.1,porte.2,%10100000,epin,[W0,W0,W0,W0,W0],error	
    pause 10						'
    						'
    NEXT cntr
    hope this helps
    see Gusse code moght it helps
    Last edited by MR2010; - 26th January 2010 at 06:08.

Similar Threads

  1. My I2CWRITE - timings and tricks
    By FinchPJ in forum Code Examples
    Replies: 5
    Last Post: - 3rd March 2008, 21:40
  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. Another I2CWRITE problem
    By ErnieM in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th May 2006, 21:57
  5. I2CRead / I2CWrite Problem?
    By koossa in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st October 2005, 18:26

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