B&K 4071 user manual Hexadecimal Format, Rules for Hexadecimal format

Page 63

7.8.5 Hexadecimal Format

This format sends the same two's complement data that Binary format uses, except that each nibble (4 bits) of the hex value is represented by an ASCII character. Each data point is a 16-bit value, which is sent to the 4071 as 4 ASCII characters.

Each ASCII character represents 4 bits as follows:

0000

to 1001

- Represented by an ASCII "0" to "9"

1010

 

- Represented by an ASCII "a" or "A"

1011

 

- Represented by an ASCII "b" or "B"

1100

 

- Represented by an ASCII "c" or "C"

1101

 

- Represented by an ASCII "d" or "D"

1110

 

- Represented by an ASCII "e" or "E"

1111

 

- Represented by an ASCII "f" or "F"

For example, the 16 bit value 1101 0011 0101 1111

is sent as " d35f"

The 16 bit value is in "two's complement" format, which represents a number from -1.0 to +1.0 as follows:

8000 ---- E000 ---- FFFF,0 ---- 4000 ---- 7FFF

 

-1.0

-.5

0.0

+.5

+1.0

Although a 16 bit value is sent to the 4071, the Arbitrary Waveform system uses a 12 bit D/A converter, so not all 16 bits are used. Only the uppermost 12 bits are used to form the arbitrary waveform point. The fourth lowest bit (bit 3) is sent directly to the SYNC Out connector on the front of the 4071.

Example: The data value E468 is handled as follows:

 

 

E

4

6

8

1

1

1

0

0 1 0 0

0 1 1 0

1

0

0

0

These 12 bits are sent to the DAC

This bit is sent to the SYNC Out Connector

 

Rules for Hexadecimal format:

1.Each Hexadecimal value may have 1 to 4 characters. Negative values require 4 characters since the most significant bit of the value (bit 15) must be a 1 for negative values. If there are fewer than 4 characters the value is interpreted as positive. Characters are not case sensitive.

2.To separate each number, you may use commas, tabs, spaces, carriage returns and/or linefeeds, semicolons,

colons or basically any character that is not among the following: 0 1 2 3 4 5 6 7 8 9 a A b B c C d D e E f F X

3.The most significant nibble character is the first that is sent to the 4071. For example, to send the value 1234, the

1is sent first, then the 2, etc.

4.The SYNC Out output is controlled by bit #3 in the low byte. If this bit is set to 1, SYNC Out is set high. If this

bit is set to

0, SYNC Out is set low.

Example

A 10 points waveform in hexadecimal format with SYNC Out set high on point #3:

0, 4000, fed8 4570 8000 fff0 E6D0, 10 F0,C06 x

The “x” character denotes the end of the data and is optional. If the “x” character is missing, the 4071 will assume all data has been sent after 1 second timeout.

58

BK Precision 4071 User Manual Rev.2.2

Image 63
Contents User’s Manual Page +K Precision Corp Model User’s ManualTable of Contents DC Operation Option Warranty informationRemote operation Arbitrary waveform systemIntroduction Description Modes Feature summaryInstallation and setup Sync out connectorSIG Out connector External Modulation In connector External Trigger/Gating/FSK/BPSK input Line in connector External Reference Input / Ext Arb. Clock connectorExternal Arb Sync In / Out connector RS232 Interface connectorRecall / Store key Mode keyOperating controls and keys Field arrow keysTrigger key Numeric keys 0 to 9,É, ê, è, ç keys One Touch Mode Keys Clear keyMHz/dBm, KHz/Vp-p/Sec, Hz/mVp-p/mS keys Changing level Operating mode selectionOperating guide Changing frequencyChanging values Modifying an existing valueEntering a new value Mode descriptions Basic Sinewave CW ModeSinewave Mode 000,000.00 Hz 10.0 dBm Internal AM Mode Input Gain External AM ModeExternal AM Mode Parameters External AM Input gain 000,000.00 Hz PEP level -10.0 dBmPeak Frequency Deviation Internal FM ModeInternal FM Mode Parameters Int FM 1,000 Hz Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBmExternal FM Mode External FM Mode ParametersExternal FM Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm Int PM 1,000 Hz Pk dev 180 deg 000,000.00 Hz 10.0 dBm Internal PM ModeInternal PM Mode Parameters Peak Phase DeviationExternal PM Mode External PM Mode ParametersExternal PM Pk dev 180 deg 000,000.00 Hz 10.0 dBm Sweep Mode Sweep time Up / Down sweepSpace Frequency Internal FSK ModeInternal FSK Mode Parameters Mark FrequencyExt FSK Input External FSK ModeExternal FSK Mode Parameters Ext FSK Mark 1,000,000.00 Hz Space 2,000,000.00 Hz 10.0 dBmBurst Mode Introduction Burst Mode Trig Ton 10,000 mS 000,000.00 Hz Off 10.0 dBmBurst frequency Upper/Lower Sideband selections Internal SSB ModeInternal SSB Mode Parameters Int SSB 1,000 Hz Upper Sideband 000,000.00 Hz 10.0 dBmExternal SSB Mode External SSB Mode ParametersExternal SSB Upper Sideband 000,000.00 Hz 10.0 dBm Background Dtmf Generation ModeDtmf generation # Duration 200 mS Delay Level -10.0 dBm Dtmf Generation Mode ParametersDtmf Duration Dtmf DelayDtmf detected digits Dtmf Detection ModeDtmf Detection Mode Parameters Dtmf detection on Ext Mod input 3 # aVoltage Level Power & Voltage Measurement ModePower & Voltage Measurement Mode Parameters Power LevelArbitrary Mode Remote ModeOther mode Internal Bpsk Mode Internal Bpsk Mode ParametersInt Bpsk 1,000 Hz 000,000.00 Hz 10.0 dBm External Bpsk Mode External Bpsk Mode ParametersExternal Bpsk 000,000.00 Hz 10.0 dBm 10,000 Hz F2 Ton 000 mS Toff 10.0 Dualtone Generation ModeDualtone Examples Baud Rate Data Modulation ModeUsing the Data Modulation Mode Data Modulation Mode ParametersExample Message Downloading Modulation Message DataSaving the Message Triggering the TransmissionEnd Frequency Voltage Controlled Oscillator VCO ModeVCO Mode Parameters Start End 1,000,000.00 Hz 10.0 dBmConnecting Remote OperationChecking your connection with Hyper Terminal Remote Control Programming Rules Remote Control OperationReturns C Remote Control CommandsReset 4071 to Sine wave mode × ØK1.0 Enable, Disable front panel keys and rotary knob E1,0 Enable, Disable LCD echo to terminalReport hardware and software versions ? or H Print help menu Stp 31,500,000.00 HzLinear Trig Up Time 10,000 mS F0-9 Move cursor to field 0 toExample Remote Control ExamplesArbitrary Waveform Mode Quick Start GuidePin 9-pin cable Pin 25 pin cable adapter Description of the Arbitrary Waveform Generator Introduction to the Arbitrary Waveform SystemPulse Generator Switching ModesFeature Summary Function GeneratorContinuous/Triggered mode Arbitrary Waveform ModeInt Clock / Ext Clock / Lock Master Lock slave mode PhaseRepetition Frequency Function Generator ModeFunction Gen Wave Pos Ramp Rep Freq 100,000 Hz 000 mV WaveformPulse Generator Mode Positive OnlyDuty Cycle Cwaveload /COMx /y /baudz filename.ext Using WAVELOAD.EXEDownloading arbitrary waveforms Saving Arbitrary WaveformsUsing your own program Data Formats Floating Point FormatRules for Floating Point format Example #2 Time & Value Floating Point FormatDigital Format Rules for Integer format Integer FormatHexadecimal Format Rules for Hexadecimal formatExample The data value E468 is handled as follows Binary Format Rules for Binary formatExample Multiple Units Locking ArbGenerator Waveform Size Restrictions More on Phase OffsetsPhase Resolution Starting Address = Number of waveform points * Phase OffsetProgram Listing ARB.BAS Example Arb ProgramClose System Subroutines Return Print #1, a Send integer value to Return Return DC Operation Option Wiring DiagramOperating Modes 4071 SpecificationsRemote Software CDAppendix a Hardware SetupCLS CLS Print Print Subroutines END SUB Appendix B Television Remote Control ExampleCLS Make sure a 4071 is attached to the serial port Print Limited Two-Year Warranty Service Information Savi Ranch Pkwy Yorba Linda, CA 92887 USA TEL