Introduction - If you have any usage issues, please Google them yourself
: In a certain type of military vehicle of the " attitude measurement and data storage systems" design, in order to achieve the embedded microprocessor integrated circuits HMC5843 digital compass data collection, to be developed to run on WinCE operating system of the I2C driver. The article first discusses the connection ARM9 microprocessor with HCM5843 relationship, and then discusses the concept of the I2C bus, working principle and WinCE stream driver model and other basic knowledge, and finally to Platform Builder 5.0 to develop tools to develop the I2C driver and mainly from the interrupt service thread function IIC Read IST and read the two aspects of the driver described the specific implementation. Experiments show that the driver works well, the smooth realization of the communication between the ARM9 and HMC5843.