write -read problem?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    55


    Did you find this post helpful? Yes | No

    Default

    hi

    you have CD declared as a word variable and also :

    CD =B-A

    did you mean CB and not CD ?

  2. #2
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default sory

    Hi.
    Sory for miss writing it must be CD Not CB .
    Thanks.

    ------
    CD =B-A

    Write 0,CD.Byte 0
    Write 1,CD.Byte 1
    ----------------------
    ..
    Read 0,AB.Byte 0
    Read 1,AB.Byte 1
    Read 0,CD.Byte 0
    Read 1,CD.Byte 1

    LCDOUT ,"adrste"#AB,"rtrefrt",#CD

    -----------
    Maybe this code mustbe as;??????

    CD =B-A

    Write 2,CB.Byte 0
    Write 3,CB.Byte 1
    ----------------------
    ..
    Read 0,AB.Byte 0
    Read 1,AB.Byte 1
    Read 2,CB.Byte 0
    Read 3,CB.Byte 1

    LCDOUT ,"adrste"#AB,"rtrefrt",#CB
    Last edited by turkuaz; - 30th August 2009 at 00:59.
    Birbirimize yardım için buradayız.
    We are here to help each other....

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Code:
    Write 2,CB.Byte 0
    Write 3,CB.Byte 1
    That looks correct now. Is it working?
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default OK!

    Yes now it is working .
    Thanks
    Birbirimize yardım için buradayız.
    We are here to help each other....

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  2. Read Write Problem
    By kduck63 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th June 2009, 19:03
  3. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  4. problem to read write 24LC512
    By edysan in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2008, 21:46
  5. Read Modify Write problem?
    By markedwards in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th November 2005, 21:02

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