We are talking to 2 ASICs with the SPI module in the 2640. When SPI is not active, we are seeing current consumption on the MISO line during these times (the line is floating and staying around 1V. I have attempted to configure the pin with a pull-down resistor but that doesn't seem to work. Any suggestions on how to accomplish this would be appreciated. Here is the code I have tried to use to set a pull-down on the MISO line with SDK 2.40.0.32:
PIN_Handle pinHandle;
PIN_Id misoId;
/* Configure SPI for both devices */
SPI_Params_init(&spiPrm);
spiPrm.frameFormat = SPI_POL0_PHA1;
spiPrm.bitRate = 400000; //Hz
spiPrm.transferMode = SPI_MODE_CALLBACK; //use callback mode so we can use interrupts
spiPrm.transferCallbackFxn = spiCb;
spiHnd = SPI_open(SNACK_BOARD_SPI0, &spiPrm);
if (spiHnd == NULL)
{
em6819Status = SPI_ERROR;
em4325Status = SPI_ERROR;
}
pinHandle = ((SPICC26XXDMA_Object *)spiHnd->object)->pinHandle;
misoId = ((SPICC26XXDMA_HWAttrsV1 *)spiHnd->hwAttrs)->misoPin;
PIN_setConfig(pinHandle, PIN_BM_PULLING, PIN_PULLDOWN | misoId);