I2c & Variable Size


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136

    Default I2c Variable Length

    Paul B,

    Thanks - I agree. Time[3] would give me 3 elements 0,1,2.
    I'll make the changes.

    I've returned to electronics after a gap of 25 years and find my
    main difficulty is with the easier bits that I think I already know
    and don't bother to look them up - hence this sort of mistake.

    Regards

    Bill Legge

  2. #2
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343

    Default

    Not just Time, but Dtime also needs to be dimensioned correctly.

    Time var byte[4] ' Holds months,days,hours,mins read from RTC
    Dtime var byte[4] ' Holds months,days,hours,mins in HEX format

    SteveB

  3. #3
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136

    Default I2c Variable Size

    Thanks, I've changed the arrays to the correct size and -IT WORKS.

    Sorry to bang on about WORD/BYTE/I2C when I just got a variable format wrong.

    regards

    Bill Legge

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 01:06
  2. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 23:31
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 22:07
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 20:33
  5. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 21:36

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