I know RTFM, but why?


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Smile Not really :-)

    WRITE to the internal EE2 does not support writing of word sized variables to the EE2 so you have to write them as you do, byte-wise as you do in your code and then you just decide what way to store them. My problem is that I2CREAD and I2CWRITE will put the HB and LB as HB-LB if i write a single word but as LB-HB if I use the STR modifier for the same commands. Of course i can in the same way as you do switch HB and LB before using a single word read or write BUT why does PBP have this feature. Since someone put it there it must be reason for storing variables as "this order is different than the way variables are normally stored" the manual sais.
    Is it possible to "HACK" the I2C commands to make them store variables in the same way? I might guess a HB and LB mixup in your fail-safe RC would create some big surprises for the pilot.

    Using the page (STR) mode when writing large amounts of data saves tons of time. Writing 64 words, word by word with a 5 ms delay would take 320ms compared to 5ms if you write one page at the time (24LC512) and we all hate to wait :-)
    Last edited by Jumper; - 21st July 2006 at 16:34.

Similar Threads

  1. New version of Pic BASIC Pro released
    By Demon in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th March 2010, 15:41
  2. Using both DIV32 and LONGs together
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th January 2009, 12:46
  3. 18F Config fuses
    By Angus Anderson in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th December 2007, 15:59
  4. How about a thread that replaces RTFM and RTFDataSheet:
    By blainecf in forum PBP Wish List
    Replies: 12
    Last Post: - 13th August 2007, 17:46
  5. Set bits of Word problem
    By pdegior in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd September 2005, 22:44

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