Programming with MAG3110 Magnetometer
Posted: Fri Dec 14, 2012 2:23 am
I am a seasoned professional experienced in hardware and host software design, only recently adding embedded coding to my arsenal with Flowcode v5.4 professional.
I'm currently working on a new project using the MAG3110 magnetometer, but (embarrassingly) I'm having difficulties interpreting/translating the necessary I2C transactions from the datasheet to Flowcode. For the record, the datasheet is here... http://www.freescale.com/files/sensors/ ... AG3110.pdf
I'm currently working with the supplied 16F88 PIC (5V logic) and, as per page 12 of the datasheet, I need to configure the device for 'multibyte read' in fast (80Hz) mode. I am using pins 7 and 10 for SDA and SCL respectively, with appropriate pull-ups either side of level translators which is all working fine.
Any pointers on the component macro's and their necessary configurations to extract MSB readings from all axes would be so much appreciated - or preferably an example if anyone's worked with this particular device before. Armed with a working example I can quickly start to move beyond this impasse for the rest of the project and other operating modes.
Many thanks in advance.
Brendan
I'm currently working on a new project using the MAG3110 magnetometer, but (embarrassingly) I'm having difficulties interpreting/translating the necessary I2C transactions from the datasheet to Flowcode. For the record, the datasheet is here... http://www.freescale.com/files/sensors/ ... AG3110.pdf
I'm currently working with the supplied 16F88 PIC (5V logic) and, as per page 12 of the datasheet, I need to configure the device for 'multibyte read' in fast (80Hz) mode. I am using pins 7 and 10 for SDA and SCL respectively, with appropriate pull-ups either side of level translators which is all working fine.
Any pointers on the component macro's and their necessary configurations to extract MSB readings from all axes would be so much appreciated - or preferably an example if anyone's worked with this particular device before. Armed with a working example I can quickly start to move beyond this impasse for the rest of the project and other operating modes.
Many thanks in advance.
Brendan