Programming Examples
R&S
®
ZNB/ZNBT
1242
User Manual 1173.9163.02 ─ 38
SENSe3:FREQuency1:STARt 200 MHz
SENSe3:FREQuency1:STOP 200 MHz
8.2.7 RFFE/GPIO Interface Programming
Set GPIO Voltages directly
*RST
// Set GPIO voltages
:CONTROL:GPIO1:VOLTAGE:DEF +5V
// Write GPIO configuration into hardware
:CONTrol:GPIO:VOLTage:OUTPut
Sending RFFE commands directly
*RST
// General configuration of RFFE interface 2
:CONTROL:RFFE2:SETTings:FREQuency 50 KHZ
:CONTROL:RFFE2:SETTings:VOLTAGE:IO 2V
:CONTROL:RFFE2:SETTings:VOLTAGE:LOW 0V
:CONTROL:RFFE2:SETTings:VOLTAGE:HIGH 1.2V
// Send commands over RFFE interface 2
// Slave address: 0xA; command number: 0xBC; data: 0x0123
: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 Suported 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
Condensed Programming Examples