This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE7906: I would like to set ALARM1 and ALARM2 of AFE7906 as below using AFE79XX tool.

Part Number: AFE7906

I would like to set ALARM1 and ALARM2 of AFE7906 as below using AFE79XX tool.

ALARM1 :
    enable SerDes PLL unlock
    enable RX digital chain FIFO overflow
    enable FB digital chain FIFO overflow
    disable Macro Complete
    enable Macro error
    enable Input Signal Error

ALARM2 :
    disable SerDes PLL unlock
    disable RX digital chain FIFO overflow
    disable FB digital chain FIFO overflow
    enable Macro Complete
    disable Macro error
    disable Input Signal Error

How should I write the python file?

  • Hi Suematsu,

    You can disable the different alarm groups per alarm pin and assign the alarm pins to the desired GPIOs like in the code below.

    ##Alarm1##
    sysParams.intPinsParams[0]['JESD'] = True
    sysParams.intPinsParams[0]['SPI'] = True
    sysParams.intPinsParams[0]['PLL'] = True
    sysParams.intPinsParams[0]['TXAPAP'] = True
    sysParams.intPinsParams[0]['TXBPAP'] = True
    sysParams.intPinsParams[0]['TXCPAP'] = True
    sysParams.intPinsParams[0]['TXDPAP'] = True
    
    ##Alarm2##
    sysParams.intPinsParams[1]['JESD'] = True
    sysParams.intPinsParams[1]['SPI'] = True
    sysParams.intPinsParams[1]['PLL'] = True
    sysParams.intPinsParams[1]['TXAPAP'] = True
    sysParams.intPinsParams[1]['TXBPAP'] = True
    sysParams.intPinsParams[1]['TXCPAP'] = True
    sysParams.intPinsParams[1]['TXDPAP'] = True
    
    
    ##############		GPIO		##############
    sysParams.gpioMapping	= {
    						'H8': 'ADC_SYNC0',
    						'H7': 'ADC_SYNC1',
    						'N8': 'ADC_SYNC2',
    						'N7': 'ADC_SYNC3',
    						'H9': 'DAC_SYNC0',
    						'G9': 'DAC_SYNC1',
    						'N9': 'DAC_SYNC2',
    						'P9': 'DAC_SYNC3',
    						'P14': 'GLOBAL_PDN',
    						'K14': 'FBABTDD',
    						'R6': 'FBCDTDD',
    						'H15': ['TXATDD','TXBTDD'],
    						'V5': ['TXCTDD','TXDTDD'],
    						'E7': ['RXATDD','RXBTDD'],
    						'R15': ['RXCTDD','RXDTDD'],
    						"N16": "ALARM1",
    						"N15": "ALARM2"
    						}

    I will reach out to the software team on if there is a way to disable only certain features within the SPI block for one of the alarm pins only like your requested mode. Since both Macro error and Macro complete are part of the SPI block.

    Best,

    Camilo