VXI SVM2608 user manual Example, Divide Decimal, Msb Lsb

Page 25

www.vxitech.com

Example 1

OV

Divide

 

 

 

 

(decimal)

by 16

 

MSB

LSB

 

25

25 / 16

=

1

w/ 9 remaining Divide the decimal value by 16 to get

 

 

 

 

 

the MSB and the LSB.

 

 

=

0001

1001

The 1 is the MSB, and the remainder of

 

 

 

 

 

9 is the LSB.

=1

S3

2

3

4

5

 

 

 

 

 

 

1

 

 

 

0

 

 

 

F

 

 

 

E

 

 

 

D C

9

6

 

 

7

 

8

 

A

9

B

 

 

 

Convert to hexadecimal. Set the back switch to 1 and the front switch to 9.

S2

 

2

3

4

5

6

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

7

 

 

 

 

 

 

 

 

 

8

0

 

 

 

 

 

9

F

 

 

 

 

A

 

E

 

 

B

 

 

 

 

 

 

 

 

D C

 

 

 

 

 

 

 

FIGURE 2-2: OFFSET VALUE EXAMPLE 1

Here is another way of looking at the conversion: OV = (S3 x 16) + S2 OV = (1 x 16) + 9 OV = 16 + 9

OV = 25

The base address is then determined by using the following formula:

A32 Base Address = Offset Value * 0x1000000 (or 16,777,216)

In this case:

A32 Base Address = 0x19 * 0x1000000 (or 16,777,216)

A32 Base Address = 0x19000000

SVM2608 Preparation for Use

25

Image 25
Contents SVM2608 VXI Technology, Inc Table of Contents Self Test Command Limitation of Warranty WarrantyCertification Restricted Rights LegendSteve Mauga, QA Manager EMCTerms and Symbols Service should only be performed by qualified personnelUse Proper Power Cord Use Proper Power SourceGround the Product Avoid Electric ShockOperating Conditions Improper UseVXI Technology Cleveland Instrument Division VXI Technology World HeadquartersVXI Technology Lake Stevens Instrument Division Technical SupportVXI Technology, Inc SVM2608 Preface Overview IntroductionScale Triggering Acquiring DataDelayed Trigger Linear ModePre-Trigger Commands Fifo ModeCalibrations Test BusOption SVM2608 Block Diagram Physical Description SVM2608 Environmental SpecificationsGND CH1I CH3I Front Panel Interface WiringGND CH1I+ GND CH3I+ Exttrigin CH0I CH2IMtbf SVM2608 SpecificationsOption 1 SVM2608-01 VXI Technology, Inc SVM2608 Introduction Setting the Chassis Backplane Jumpers Calculating System Power and Cooling RequirementsRotary Switch Locations Setting the Base AddressDivide Decimal ExampleMSB LSB Module INSTALLATION/REMOVAL Switch to C and the front switch toFunction Offset Device Memory MapsReserved Register OffsetMS = Most Significant LS = Least Significant SVM2608 A32 Register MAP0x72 Command Register Channel 0x74 Databyte Ordering Determining the Register Address Description of Registers Accessing the RegistersSysfailctl INTLVL2 Force Trigger, Start Register 0x02 Read & WriteHSTRIGSRC2 EXT Trig SlopeReserved TimeoutctlExternal Trigger Level 0x06 Read & Write 4WIREOHMS 2WIREOHMSLINEAR/FIFO ATTN-GAIN1-GAIN0Sample Rate 0x0E, 0x36, 0x5E, 0x86 Read & Write Sample Rate 0x0C, 0x34, 0x5C, 0x84 Read & WriteKHz Channels 0-3/5 MHz Channels 4-5 LPF Control This bit Sample Rate, High-Speed 0xAE, 0xD6 Read & Write Sample Rate, High-Speed 0xAC, 0xD4 Read & WriteTimeout 0x1C, 0x44, 0x6C, 0x94, 0xBC, 0xE4 Read & Write Fifo Data 0x26, 0x4E, 0x76, 0x9E, 0xC6, 0xEE Read Only Fifo Data 0x24, 0x4C, 0x74, 0x9C, 0xC4, 0xEC Read OnlyReserved Registers 0xF8 0xFC Trigger Delay = Measurement Commands Microprocessor CommandsCaptured Data Calculations Resistance Measurement Offset Method Self Test CommandResistance Measurement Dynamic Method Example Preset Setting Measurement CommandsSample Points Calibration CommandsSample Rate Trigger Event Forced TriggerPage Error Processing There are no errors in the queue Diagnostic Commands Changes become effective the next time the module powers up Examples Example 2 Setting Channel 2 to Acquire 200,000 SamplesExample 3 Setting Channel 2 to Pre-acquire 100,000 Samples Timeout Register = Timeout Base * 213 + Timeout Counter Timeout Counter = Timeout / Timeout Base ClockVXI Technology, Inc SVM2608 Programming Data Swapping Example Appendix aVXI Technology, Inc SVM2608 Appendix a Index