24C512 control?


Closed Thread
Results 1 to 3 of 3

Thread: 24C512 control?

  1. #1
    Join Date
    Mar 2005
    Location
    Mandalay,Myanmar
    Posts
    9

    Default 24C512 control?

    Hi all,
    I would like to use seeprom 24C512.
    Please tell me how to assign control byte.

    Thanks
    from_myanmar

  2. #2
    ohiohort's Avatar
    ohiohort Guest


    Did you find this post helpful? Yes | No

    Smile I2C command

    cont con %10100000

    I2CWRITE SDA,SCL,cont,Addr,[x]

    or............ I2CWRITE SDA,SCL,%10100000,Addr,[x]

    its all in your PicBasic Pro Compiler manual under i2cwrite and i2cread commands.Goto Microchip.com and Download the 24c512 datasheet, well tell you everything you need to know.

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    One thing to remember:

    Constants should not be used for control commands.

    Ex:
    Cont CON %10100000


    Use them as BYTE variables.

    Ex:
    Cont CON %10100000
    Control VAR BYTE

    Control = Cont

    Now, use "Control" instead of Cont.

    I2CWRITE SDA,SCL,Control,Addr,[x]


    ==========================
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. How do I give a radio control car autonomous control
    By Kenjones1935 in forum General
    Replies: 190
    Last Post: - 17th January 2010, 15:40
  2. pt2258+16f877 how can i use for 5.1 volume control ?
    By whyliving in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th January 2008, 17:51
  3. No one-way approach to learning ir remote control frequencies
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd June 2007, 13:26
  4. Control unlimited servos at the same time
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th September 2006, 14:14
  5. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18

Members who have read this thread : 1

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