AnsweredAssumed Answered

SPI0 transfer MMR not getting updated in ADuCM360

Question asked by Neehal_Lingayat on Jun 5, 2017
Latest reply on Jun 14, 2017 by Neehal_Lingayat

I am using ADuCM360 to configure ADA2200 using SPI. While debugging using Keil uvision 4, in the memory map at address 0x40004008 for spi 0 transfer register (specified by datasheet) there is no change in value. It always remains zero value.

 

I have configured spi as follows:

 

unsigned long CMD =0x03;

DioCfg(pADI_GP1,0xAA00);
ClkDis(CLKDIS_DISSPI1CLK| CLKDIS_DISI2CCLK| CLKDIS_DISUARTCLK| CLKDIS_DISPWMCLK|                   CLKDIS_DIST0CLK| CLKDIS_DIST1CLK| CLKDIS_DISDACCLK| CLKDIS_DISDMACLK| CLKDIS_DISADCCLK);
ClkCfg (CLK_CD3,CLK_HF,CLKSYSDIV_DIV2EN_DIS,CLK_UCLKCG);
ClkSel(CLK_CD3,CLK_CD7,CLK_CD7,CLK_CD7);
SpiCfg(pADI_SPI0,SPICON_MOD_TX1RX1,SPICON_MASEN_EN,SPICON_SOEN_EN|SPICON_ENABLE_EN|SPICON_TIM_TXWR);

 SpiTx(pADI_SPI0,(unsigned char)(CMD));

 

Please guide me to fix this problem ASAP.

Attachments

Outcomes