Anyone willing to help me a little to ensure I'm doing it right. I'll describe a clear as I could.
My dsPIC30F3012 is used to write samples to two external DACs with the SPI peripheral. However I don't need to read anything back from the DACs, so my SDI pin on the MCU is unconnected. The DACs don't have serial out pins anyway.
I know that the SPIEN bit in the SPI1STAT register configures the pins related to SPI. Some of them can be disabled like SDO and SS. But not SDI. However it seems that the ADPCFG register (A/D Port Configuration Register) overrules the setting of SPIEN. I mean if the SDI pin is configured for analog input (default actually), SDI is non-functional and the digital buffer is disabled and it is acceptable to have the pin floating.
It would be really nice if someone can confirm this. I don't need to use the SDI for general purpose IO, I just want to be sure if it can be left floating with my initialization code.
The whole idea behind ADPCFG is by default set for analog inputs is to make it okay to have these input floating, right?
Best regards,
Zeyneb