Programming Examples
R&S
®
ZNB/ZNBT
1413
User Manual 1173.9163.02 ─ 55
9.2.7
RFFE/GPIO Interface Programming
Requires hardware option R&S
Chapter 5.7.18, "RFFE GPIO Inter-
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 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;
Condensed Programming Examples