首页下载资源硬件开发RM3100原厂驱动包,包含PCB封装,BSP驱动源文件,支持SPI和IIC

ZIPRM3100原厂驱动包,包含PCB封装,BSP驱动源文件,支持SPI和IIC

weixin_4815959714.89MB需要积分:1

资源文件列表:

RM3100传感器技术手册驱动代码模块PCB封装及文档资料.zip 大约有5个文件
  1. 12060983_3.7z 671.54KB
  2. RM3100_DEMO.rar 14.74KB
  3. RM3100传感器资料包技术手册驱动代码模块PCB封装及文档资料.zip 9.66MB
  4. RM3100数据表.pdf 342.18KB
  5. RM3100用户手册R07-1-2.pdf 4.76MB

资源介绍:

RM3100原厂驱动包,包含PCB封装,BSP驱动源文件,支持SPI和IIC,最近项目需要用,个人花钱买的相关资料。 void SPI2_Init(void) { GPIO_InitTypeDef GPIO_InitStructure; SPI_InitTypeDef SPI_InitStructure; RCC_APB2PeriphClockCmd( RCC_APB2Periph_GPIOB, ENABLE );//PORTBʱ��ʹ�� RCC_APB1PeriphClockCmd( RCC_APB1Periph_SPI2, ENABLE );//SPI2ʱ��ʹ�� GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //PB13/14/15����������� GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz
User Manual
RM3100 & RM2100
Geomagnetic Sensor
PNI Sensor Corporation Doc 1017252 R07
RM3100 & RM2100 Sensor Suite User Manual Page 1 of 43
Table&of&Contents&
1! COPYRIGHT & WARRANTY INFORMATION ................................................................... 3!
2! INTRODUCTION ................................................................................................................. 4!
3! SPECIFICATIONS .............................................................................................................. 5!
3.1! GEOMAGNETIC SENSOR CHARACTERISTICS .......................................... 5!
3.2! SEN-XY-F AND SEN-Z-F CHARACTERISTICS ............................................. 6!
3.3! MAGI2C CHARACTERISTICS ........................................................................ 7!
3.4! DIMENSIONS, PACKAGING, AND PAD & MASK LAYOUT .......................... 8!
3.4.1! Sen-XY-f .............................................................................................. 8!
3.4.2! Sen-Z-f .............................................................................................. 10!
3.4.3! MagI2C .............................................................................................. 12!
3.5! SOLDERING ................................................................................................. 13!
4! GEOMAGNETIC SENSOR OVERVIEW & SET-UP ......................................................... 15!
4.1! OVERVIEW ................................................................................................... 15!
4.2! LAYOUT ........................................................................................................ 18!
4.2.1! Sensor Coil Orientation ..................................................................... 18!
4.2.2! Local Magnetic Field Considerations ................................................ 18!
4.2.3! Other Layout Considerations ............................................................ 19!
4.3! MAGI2C PIN-OUT ......................................................................................... 20!
4.3.1! General Pins ..................................................................................... 20!
4.3.2! SPI Pins ............................................................................................ 22!
4.3.3! I
2
C Pins ............................................................................................. 23!
4.4! SPI TIMING REQUIREMENTS ..................................................................... 24!
4.5! I
2
C REQUIREMENTS .................................................................................... 26!
4.5.1! I
2
C Register Write ............................................................................. 26!
4.5.2! I
2
C Register Read ............................................................................. 27!
5! MAGI2C OPERATION ...................................................................................................... 28!
5.1! SET THE CYCLE COUNT REGISTERS (0X04 0X09)............................... 28!
5.2! INITIATE CONTINUOUS MEASUREMENT MODE (0X01) .......................... 29!
5.2.1! Setting the CMM Update Rate with TMRC (0x0B) ............................ 31!
5.3! INITIATE A SINGLE MEASUREMENT (0X00) ............................................. 32!
5.4! CONFIRM NEW DATA READY .................................................................... 33!
5.4.1! STATUS Register (0x34) .................................................................. 33!
5.5! READ THE MEASUREMENT RESULTS ...................................................... 33!
5.6! TROUBLESHOOTING AND GENERAL INFORMATION ............................. 34!
5.6.1! Built-In Self Test Register (0x33) ...................................................... 34!
5.6.2! HSHAKE Register (0x35) .................................................................. 36!
5.6.3! REVID Register (0x36) ...................................................................... 36!
5.7! EXAMPLES USING THE SPI INTERFACE .................................................. 37!
5.7.1! Set the Cycle Count Registers .......................................................... 37!
5.7.2! Making and Reading Measurements ................................................ 37!
5.8! EXAMPLES USING THE I
2
C INTERFACE ................................................... 40!
5.8.1! Set the Cycle Count Registers .......................................................... 40!
5.8.2! Initiate a Single Measurement ........................................................... 40!
5.8.3! Initiate Continuous Measurement Mode ........................................... 41!
5.8.4! Read the Measurement Results ........................................................ 41!
PNI Sensor Corporation Doc 1017252 R07
RM3100 & RM2100 Sensor Suite User Manual Page 2 of 43
List&of&Figures&
Figure 3-1: Sen-XY-f Sensor Dimensions ................................................................................ 8!
Figure 3-2: Sen-XY-f Tape and Reel Dimensions .................................................................... 9!
Figure 3-3: Sen-XY-f Recommended Solder Pad, Paste, & Mask Layout ............................... 9!
Figure 3-4: Sen-Z-f Sensor Dimensions ................................................................................. 10!
Figure 3-5: Sen-Z-f Tape and Reel Dimensions ..................................................................... 11!
Figure 3-6: Sen-Z-f Recommended Solder Pad, Paste, & Mask Layout ................................ 11!
Figure 3-7: MagI2C MLF Mechanical Drawing ....................................................................... 12!
Figure 3-8: MagI2C MLF Tape Dimensions ........................................................................... 13!
Figure 3-9: Recommended Solder Reflow Profile .................................................................. 14!
Figure 4-1: RM3100 reference schematic SPI Configuration .............................................. 15!
Figure 4-2: RM3100 reference schematic – I
2
C Configuration ............................................... 16!
Figure 4-3: LR Oscillator Circuit Biasing Diagram .................................................................. 17!
Figure 4-4: RM3100 North-East-Down (NED) Sensor Layout ................................................ 18!
Figure 4-5: SPI Timing Diagram, CPOL = CPHA = 0 ............................................................. 25!
Figure 4-6: SPI Timing Diagram, CPOL = CPHA = 1 ............................................................. 25!
Figure 5-1: SPI Activity Sequence Diagram ........................................................................... 38!
List&of&Tables&
Table 3-1: Geomagnetic Sensor Performance
1
....................................................................... 5!
Table 3-2: Sen-XY-f and Sen-Z-f Absolute Maximum Ratings ................................................. 6!
Table 3-3: Sen-XY-f and Sen-Z-f Characteristics ..................................................................... 6!
Table 3-4: MagI2C Absolute Maximum Ratings ....................................................................... 7!
Table 3-5: MagI2C Recommended Operating Conditions ....................................................... 7!
Table 3-6: Recommended Solder Processing Parameters
1
................................................... 14!
Table 4-1: MagI2C Pin Assignments ...................................................................................... 21!
Table 4-2: SPI Timing Specifications ..................................................................................... 26!
Table 5-1: MagI2C Register Map ........................................................................................... 28!
Table 5-2: Cycle Count Registers .......................................................................................... 29!
Table 5-3: Continuous Mode DRDY Options ......................................................................... 30!
Table 5-4: CMM Update Rates ............................................................................................... 32!
Table 5-5: Measurement Results Registers ........................................................................... 34!
Table 5-6: BIST Timeout Period ............................................................................................. 35!
Table 5-7: BIST LR Periods ................................................................................................... 35!
PNI Sensor Corporation Doc 1017252 R07
RM3100 & RM2100 Sensor Suite User Manual Page 3 of 43
1 Copyright & Warranty Information
© Copyright 2013 PNI Sensor Corporation
All Rights Reserved. Reproduction, adaptation, or translation without prior written permission is prohibited, except as allowed
under copyright laws.
Revised June 2016
PNI Sensor Corporation
2331 Circadian Way
Santa Rosa, CA 95407, USA
Tel: (707) 566-2260
Fax: (707) 566-2261
Warranty and Limitation of Liability. PNI Sensor Corporation ("PNI") manufactures its Products from parts and components
that are new or equivalent to new in performance. PNI warrants that each Product to be delivered hereunder, if properly used,
will, for ninety (90) days following the date of shipment unless a different warranty time period for such Product is specified: (i)
in PNI’s Price List in effect at time of order acceptance; or (ii) on PNI’s web site (www.pnicorp.com) at time of order
acceptance, be free from defects in material and workmanship and will operate in accordance with PNI’s published specifications
and documentation for the Product in effect at time of order. PNI will make no changes to the specifications or manufacturing
processes that affect form, fit, or function of the Product without written notice to the Customer, however, PNI may at any time,
without such notice, make minor changes to specifications or manufacturing processes that do not affect the form, fit, or function
of the Product. This warranty will be void if the Products’ serial number, or other identification marks have been defaced,
damaged, or removed. This warranty does not cover wear and tear due to normal use, or damage to the Product as the result of
improper usage, neglect of care, alteration, accident, or unauthorized repair.
THE ABOVE WARRANTY IS IN LIEU OF ANY OTHER WARRANTY, WHETHER EXPRESS, IMPLIED, OR
STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR ANY
PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION,
OR SAMPLE. PNI NEITHER ASSUMES NOR AUTHORIZES ANY PERSON TO ASSUME FOR IT ANY OTHER
LIABILITY.
If any Product furnished hereunder fails to conform to the above warranty, Customer’s sole and exclusive remedy and PNI’s sole
and exclusive liability will be, at PNI’s option, to repair, replace, or credit Customer’s account with an amount equal to the price
paid for any such Product which fails during the applicable warranty period provided that (i) Customer promptly notifies PNI in
writing that such Product is defective and furnishes an explanation of the deficiency; (ii) such Product is returned to PNI’s service
facility at Customer’s risk and expense; and (iii) PNI is satisfied that claimed deficiencies exist and were not caused by accident,
misuse, neglect, alteration, repair, improper installation, or improper testing. If a Product is defective, transportation charges for
the return of the Product to Customer within the United States and Canada will be paid by PNI. For all other locations, the
warranty excludes all costs of shipping, customs clearance, and other related charges. PNI will have a reasonable time to make
repairs or to replace the Product or to credit Customer’s account. PNI warrants any such repaired or replacement Product to be
free from defects in material and workmanship on the same terms as the Product originally purchased.
Except for the breach of warranty remedies set forth herein, or for personal injury, PNI shall have no liability for any indirect or
speculative damages (including, but not limited to, consequential, incidental, punitive and special damages) relating to the use of
or inability to use this Product, whether arising out of contract, negligence, tort, or under any warranty theory, or for infringement
of any other party’s intellectual property rights, irrespective of whether PNI had advance notice of the possibility of any such
damages, including, but not limited to, loss of use, revenue or profit. In no event shall PNI’s total liability for all claims regarding
a Product exceed the price paid for the Product. PNI neither assumes nor authorizes any person to assume for it any other
liabilities.
Some states and provinces do not allow limitations on how long an implied warranty lasts or the exclusion or limitation of
incidental or consequential damages, so the above limitations or exclusions may not apply to you. This warranty gives you
specific legal rights and you may have other rights that vary by state or province.
PNI Sensor Corporation Doc 1017252 R07
RM3100 & RM2100 Sensor Suite User Manual Page 4 of 43
2 Introduction
Thank you for purchasing PNI Sensor Corporation’s RM2100 or RM3100 Geomagnetic Sensor,
pn 90052 or pn 90053, respectively. The RM2100 is comprised of two Sen-XY-f sensor coils,
pn 13104, and a MagI2C ASIC controller, pn 13156, which forms the basis for a 2-axis digital
compass. The RM3100 is the same as the RM2100 but adds a Sen-Z-f sensor coil, pn 13101,
such that compassing measurements are not constricted to the horizontal plane.
PNI’s geomagnetic sensor technology provides high resolution, low power consumption, large
signal noise immunity, a large dynamic range, and high sampling rates. Measurements are stable
over temperature and inherently free from offset drift. The RM3100’s MagI2C ASIC features
both continuous measurement mode and single measurement polling, software-configurable
resolution and sample rate, and the ability to operate one, two, or three PNI sensor coils. And it
incorporates both I
2
C and SPI interfaces for system design flexibility.
When implementing an RM3100 or RM2100 Geomagnetic Sensor, each sensor coil serves as the
inductive element in a simple LR relaxation oscillation circuit, where the coil’s effective
inductance is proportional to the magnetic field parallel to the sensor axis. The LR circuit is
driven by the MagI2C ASIC, and the MagI2C’s internal clock is used to measure the circuit’s
oscillation frequency, and hence the magnetic field. Since PNI’s Geomagnetic Sensor works in
the frequency domain, resolution and noise are established cleanly by the number of MagI2C
internal clock counts (cycle counts). In comparison, fluxgate and MR technologies require
expensive and complex signal processing to obtain similar resolution and noise, and in many
respects the geomagnetic sensor’s performance simply cannot be matched. Also, the output from
the MagI2C is inherently digital and can be fed directly into a microprocessor, eliminating the
need for signal conditioning or an analog/digital interface between the sensor and a
microprocessor. The simplicity of PNI’s geomagnetic sensor combined with the lack of signal
conditioning makes it easier and less expensive to implement than alternative fluxgate or
magneto-resistive (MR) technologies.
For more information on PNI’s magneto-inductive sensor technology, see PNI’s whitepaper
“Magneto-Inductive Technology Overview” at http://www.pnicorp.com/technology/papers.
100+评论
captcha