cancel
Showing results for 
Search instead for 
Did you mean: 

I2C STPC DX II

daromart
Associate II
Posted on October 17, 2005 at 10:14

I2C STPC DX II

2 REPLIES 2
daromart
Associate II
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

daromart
Associate II
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.