I am using DAC1220 with TM4C1294NCPDT.
I want to read Registers of DAC.
I can successfully write and update DAC ouput using SPI commands. But the DAC has only SDIO pin that i have connected SSI3XDATA0 of uC.
void SSI3_init() { // // The SSI3 peripheral must be enabled for use. // ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI3); // // For this example SSI3 is used with PortF[3:0]. // //ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); // ROM_GPIOPinConfigure(GPIO_PF3_SSI3CLK); //ROM_GPIOPinConfigure(GPIO_PF2_SSI3FSS); ROM_GPIOPinConfigure(GPIO_PF1_SSI3XDAT0); // ROM_GPIOPinConfigure(GPIO_PF0_SSI3XDAT1); ROM_GPIOPinTypeSSI(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_0 | GPIO_PIN_3); ROM_SSIConfigSetExpClk(SSI3_BASE, ui32SysClock, SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 100000, 8); // // Enable the SSI3 module. // ROM_SSIEnable(SSI3_BASE); }
But when i read the received data it showing 0 value. Because i haven't have any SSI RX pin. I have also tries to use ROM_SSIAdvModeSet(SSI3_BASE, SSI_ADV_MODE_BI_WRITE); & ROM_SSIAdvModeSet(SSI3_BASE, SSI_ADV_MODE_BI_READ); before writing & reading to SPI but that also not working.
So how can i read & write data using single SSI3XDATA0 pin?