Skip to main content
Visitor II
October 17, 2005
Question

I2C STPC DX II

  • October 17, 2005
  • 2 replies
  • 758 views
Posted on October 17, 2005 at 10:14

I2C STPC DX II

    This topic has been closed for replies.

    2 replies

    daromartAuthor
    Visitor II
    October 17, 2005
    Posted on October 17, 2005 at 08:57

    Hi, I have a PCM-3347 single board with a STPC Consumer II 133 Mhz and I'd like to use its I2C port to interact with a COMPASS (CMPS03), which is a I2C client device. I have read in the STPC manual that bits 4-5-6-7 of DDC control register can be used for accesing I2C devices.

    The protocol for controlling the compass is very simple (http://www.robot-electronics.co.uk/htm/cmps3doc.shtml).

    But I have some questions:

    Can I damage my CRT monitor because I am using VGA registers?

    In the I2C protocol you send bytes but I have to read and write only one bit, how can I do it? Isn't it too cpu-consuming?

    What would be the C files in the linux kernel tree that handle this type of bus adapter?

    Has anyone some code that handle a simple I2C device to illustrate me?

    Thank you very much in advance

    Daniel

    daromartAuthor
    Visitor II
    October 17, 2005
    Posted on October 17, 2005 at 10:14

    Autoanswer ;)

    I just saw

    http://mcu.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=75

    I think I have what I wanted in the STPCKit.zip file.