Programming examples
R&S
®
ZNA
1627
User Manual 1178.6462.02 ─ 20
:CONTROL:RFFE2:COMMAND:DATA 'ABC0123'
:CONTROL:RFFE2:COMMAND:SEND
Reading a Product ID
This example assumes knowledge of the RFFE Specification of the MIPI® Alliance, in
particular the "RFFE Supported Command Sequences".
*RST
// DUT Power on sequence
:CONTrol1:GPIO1:VOLTage 2.5V
:CONTROL1:GPIO:VOLTage:OUTPut
:CONTrol1:GPIO2:VOLTage 1.8V
:CONTROL1:GPIO:VOLTage:OUTPut
// Initialization of DUT with Slave Address SA = 0x0B:
// Write 0x38 at register address 0x1C.
// Therefore SA = 0xB; CMD = 0x5C; DATA = 0x38.
// with CMD = 0010 0000b (see RFFE specification 'Register Write')
// | 0001 1100b (register address)
// = 0011 1100b
// = 0x5C
:CONTROL1:RFFE1:COMMAND:DATA 'B5C38'
:CONTROL1:RFFE1:COMMAND:SEND
// Read Product ID. Register address of product ID is noted in the DUT specification.
// This Example: Product ID is stored at address 0x1D.
// Therefore SA = 0xB; CMD = 0x7D;
// with CMD = 0110 0000b (see RFFE specification 'Register Read')
// | 0001 1101b (register address)
// = 0111 1101b
// = 0x7D
:CONTROL1:RFFE1:COMMAND:DATA 'B7D'
:CONTROL1:RFFE1:COMMAND:SEND? 1 // Read 1Byte. Result is the Product ID
Configuring RFFE sweep sequencer (non-segmented sweep)
For non-segmented sweeps the RFFE device will be configured in preparation of every
sweep.
*RST
// Enable GPIO 5 and RFFE interface 2 for Sweep Sequencer
:CONTROL:GPIO5:STATe ON
:CONTrol:RFFE2:SETTings:STATe ON
// Step 1
:CONTrol:SEQuence1:GPIO5:VOLTage 0V
:CONTrol:SEQuence1:RFFE2:COMMand:DATA '12345AF'
// Step 2
:CONTrol:SEQuence2:GPIO5:VOLTage -1V
// After step 2, wait for 3 ms
Condensed programming examples