pc to pic serial comm and i2c eeprom


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2005
    Location
    Corum,Turkiye
    Posts
    15

    Exclamation pc to pic serial comm and i2c eeprom

    Hi all,

    i used 18f452 and ( 10 mhz x 4 hs_pll ) 40 mhz osc. and i want to datas from pc( vb 6.0) to pic ( picbasic pro 2.46 ) . and it ll write to 24c64 eeprom. pls can you send me sample code or complete sample program code..

    thanx now...

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Code:
    ControlByte con %10100000
    Addr var word
    ByteA var Byte
    
    Addr=0
    I2CREAD SDA,SCL,ControlByte,Addr,[ByteA]
    Hserout [ByteA]
    And
    http://rentron.com/VisualBasic.htm
    and have a look to this miniterminal i did awhile back
    http://www.picbasic.co.uk/forum/atta...3&d=1117969258
    Ok it's not what you want... but it may help.
    http://www.yes-tele.com/mscomm.html
    Last edited by mister_e; - 1st November 2006 at 04:51.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Dec 2005
    Location
    Corum,Turkiye
    Posts
    15


    Did you find this post helpful? Yes | No

    Exclamation Thanx Mister_e

    i ll look these sites... thanx.....

    and can i have a problem... lookup command...

    q var byte
    w war byte
    lookup q,[$7f,$01,$01,$01,$00,$3f,$48,$48,$48,$3f,$00],W

    lookup index is byte but i want to use word. is it possible.

    ...............

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    How about LOOKUP2?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. I2C Comm with Digital Compass HMC6352
    By jihlein in forum Serial
    Replies: 10
    Last Post: - 9th April 2008, 22:25

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