Hi folks,
I'm new with Freescale microcontrollers, so I need some help to configurate the FXOS8700CQ inertial sensor . Following the Processor Expert Manual, I think that I have to use the Macros present in the file PE_Types.h to initiate the sensor, but the functions shown in the Manual ( setRegBit (RegName, BitName), for example) are not presents in my PE_Types.h code file... I'm using the KL26Z128 microcontroller and CodeWarrior 10.6. My code file file is attached here . The I2C0 is configured, but the code has only comments, because I know the specifications (based in FXOS8700CQ manual, page 30th), but I don't know how to implement this. Can somebody give me a clue?
Thank you!
Best regards,
Rafael
Original Attachment has been moved to: IMU3.rar
Hello Rafael,
You should take a look into the example located in C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\FRDM-KL25Z\I2C_RGB.
Regards,
Earl.
Hello Rafael
The accelerometer on the FRDM-KL26Z is supported here: µTasker Kinetis FRDM-KL26Z support
Attached is reference code from the uTasker project (CW10.6 compatible) configuring the device and reading the values continuously.
Regards
Mark
Kinetis: µTasker Kinetis support
KL26: µTasker Kinetis FRDM-KL26Z support / µTasker Kinetis Teensy LC support
For the complete "out-of-the-box" Kinetis experience and faster time to market