2005-10-17 01:14 AM
2005-10-16 11:57 PM
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 Daniel2005-10-17 01:14 AM
Autoanswer ;)
I just sawhttp://mcu.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=75
I think I have what I wanted in the STPCKit.zip file.