Hi Dietrich,
If you refer so register descriptions of “Pin Function Select Register n” of the LPC2132 User Manual, you will see that GPIO functionality is also selectable, so, if SPI functionality is selected, GPIO is not available.
Besides, after checking Figure 15 “16-Bit Data Transmission Cycle” of the mentioned ADC’s datasheet, it seems that the required functionality could be implemented by two ways:
- Connecting additional GPIO pin in parallel with MISO, in order to be able to detect the falling edge when the CS pin is high.
- Sending the conversion request, and considering the conversion timing, apply a wait state on SPI communication, in order to ensure the conversion competition and then reading back the conversion value.
Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------