PNI CommBoard User Manual

User Manual
PNI CommBoard
Table of Contents
3.1 Mechanical Drawing ............................................................................. 4
4.1 Communication Setup .......................................................................... 5
4.2 Hardware Setup .................................................................................... 6
5.1 SPI Commands ...................................................................................... 9
5.2 SPI Code Examples .............................................................................. 14
5.2.1 RM3100 Eval Board Cycle Count Register Read ........................ 14
5.2.2 More RM3100 Eval Board Code Examples ................................ 16
5.2.3 RM3000-f Eval Board Code Examples ........................................ 16
5.2.4 V2Xe Code Examples .................................................................. 16
6 I2C OPERATION ........................................................................................ 18
6.1 I2C Commands ..................................................................................... 19
List of Tables
List of Figures
PNI Sensor Corporation DOC#1018122 r02 PNI CommBoard User Manual Page i
1 Copyright & Warranty Information
© Copyright PNI Sensor Corporation 2012 All Rights Reserved. Reproduction, adaptation, or translation without prior written permission is prohibited, except
as allowed under copyright laws. Revised May 2013. For most recent version visit our website at www.pnicorp.com 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 TCM products (“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 one year 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 OEM, 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, OEM‟s sole and exclusive remedy and PNI‟s sole and exclusive liability will be, at PNI‟s option, to repair, replace, or credit OEM‟s account with an
amount equal to the price paid for any such Product which fails during the applicable warranty period provided that (i) OEM 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 OEM‟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 OEM 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 OEM‟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#1018122 r02 PNI CommBoard User Manual Page 1
PNI Product
Interface
RM3100 Evaluation Board
I2C or SPI
RM3000-f Evaluation Board
SPI
V2Xe
SPI
SpacePoint Scout
I2C or UART
2 Introduction
Thank you for purchasing PNI Sensor Corporation‟s CommBoard, pn 13466. The CommBoard is a printed circuit assembly (PCA) that acts as an easy-to-use interface between a PC and certain PNI products. The CommBoard is a UART to SPI or I2C bridge which receives UART
commands from the user‟s computer via a virtual communication port running over a USB line.
The applicable PNI products and their interface types are listed below.
Table 2-1: Applicable PNI Products & Interfaces
PNI Sensor Corporation DOC#1018122 r02 PNI CommBoard User Manual Page 2
Parameter
Value
Host Interface
Communication Interface
Virtual UART on USB
Protocol
ASCII
Communication Rate
115200 baud
Device Interface
Communication Interface
I2C or SPI
SPI Interface Lines
SCLK, MISO, MOSI, SSN
CPOL
Selectable (default = 0)
CPHA
Selectable (default = 0)
Clock Speed
50 kHz, 100 kHz (default), 1 MHz
I2C Clock Speed
Selectable 32 kHz – 1 MHz (100 kHz default)
Parameter
Value
Operating Temperature
-40C to +85C
Storage Temperature
-40C to +85C
Parameter
Value
Dimensions (l x w x h)
50.8 x 63.5 x 15.5 mm (2.0” x 2.5” x 0.6”)
Weight
17 gm
Connector
Mini-USB
3 Specifications
Table 3-1: I/O Characteristics
Table 3-2: Environmental Requirements
Table 3-3: Mechanical Characteristics
PNI Sensor Corporation DOC#1018122 r02 PNI CommBoard User Manual Page 3
3.1 Mechanical Drawing
Figure 3-1: CommBoard Top View
PNI Sensor Corporation DOC#1018122 r02 PNI CommBoard User Manual Page 4
Parameter
Value
Baud Rate
115200
Number of Data Bits
8
Start Bits
1
Stop Bits
1
Parity
none
4 Set-Up
4.1 Communication Setup
The CommBoard‟s physical interface is USB, but it runs a virtual UART over the USB line.
As such, it is necessary to implement a virtual communication port (VCP) on the user‟s
computer. The CommBoard uses FTDI‟s FT232R USB-to-RS232 IC, and the driver for this IC should be installed on your computer. This driver can be found on FTDI‟s website at:
http://www.ftdichip.com/Drivers/VCP.htm.
After installing the VCP driver and plugging in your PNI device, connect the CommBoard to your computer using a USB-to-mini-USB cable. The USB line provides power to the CommBoard and the device-under-test. The UART should be configured as shown below.
Table 4-1: UART Configuration
Figure 4-1 shows how a computer connects to a PNI device mounted on the CommBoard. On the computer side, the user will send commands using an ASCII terminal program such as HyperTerminal or Realterm. Alternatively, Matlab or a similar application that outputs ASCII can be used. These all will use a Virtual Comm Port to place their UART commands on the USB line of the computer. On the PNI CommBoard, the UART commands either are translated into SPI commands or I
2
C commands using the CommBoard‟s CPU, or sent
directly to the PNI device. Whether the UART commands are translated into SPI or I2C, or fed directly into the PNI device, is established by the jumpers, discussed in Section 4.1.
PNI Sensor Corporation DOC#1018122 r02 PNI CommBoard User Manual Page 5
Loading...
+ 16 hidden pages