Constants Definitions
// Parameters for storing data in the onboard EEPROM
#define
MAXDEVICES
#define
MAXDESCRIPTORSIZE
#define
CALEEPROMSIZE
#define
USEREEPROMSIZE
// Define labels
#define
CH_I
#define
CH_Q
#define
RF_ATTEN1
#define
RF_ATTEN2
#define
RF_ATTEN3
#define
RF_AMP1
#define
RF_AMP2
// Define error codes
#define
RESERVEDERROR
#define
NOTCORRECTDEVICE
#define
INPUTNULL
#define
COMMERROR
#define
INPUTNOTALLOC
#define
EEPROMOUTBOUNDS
#define
INVALIDARGUMENT
#define
INPUTOUTRANGE
#define
NOREFWHENLOCK
#define
NORESOURCEFOUND
#define
INVALIDCOMMAND
// Define device registers
#define
INITIALIZE
#define
SET_SYSTEM_ACTIVE
#define
RF_FREQUENCY
#define
RF_AMPLIFIER
#define
RF_ATTENUATION
#define
RF_PATH
#define
RF_FILTER_SELECT
#define
LO_FILTER_SELECT
#define
LO_OUT_ENABLE
#define
IF_GAIN_DAC
#define
VCOM_OUT_DAC
#define
DC_OFFSET_DAC
#define
LINEARITY_DAC
#define
STORE_STARTUP_STATE
#define
USER_EEPROM_WRITE
#define
GET_DEVICE_STATUS
#define
GET_TEMPERATURE
#define
USER_EEPROM_READ
#define
CAL_EEPROM_READ
SC5312A Operating & Programming Manual
50
// bytes
25
// bytes
32768
// bytes
32768
// bytes
0x00
0x01
0x00
0x01
0x02
0x00
0x01
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
0x01
// initialize the device
0x02
// set the device "active" LED
0x10
// set the frequency
0x12
// enable amplifiers
0x13
// set attenuation for digital step attenuators
0x14
// select the RF path
0x15
// manually select the RF filter
0x16
// manually select the LO filter
0x17
// enable LO output
0x18
// set the I and Q chain IF gain
0x19
// sets common output voltage
0x1A
// sets the DC offset
0x1B
// sets the linearity DAC (0 to 0xFFF)
0x1D
// store the current state as default
0x1F
// write a byte to the user EEPROM
0x20
// read the device status
0x21
// get the internal temperature of the device
0x23
// read a byte from the USER EEPROM
0x24
// read a byte from the calibration EEPROM
Rev 1.0.2
21
Need help?
Do you have a question about the SC5312A and is the answer not in the manual?