Post Go back to editing

How can we Differentiate between Dout/RDY pin. ? (Part number : ad7124-4) How can we handle interrupt. on Dout/RDY pin?

Thread Summary

The user is testing a code with Nucleo-L476RG and AD7124-4 ADC, where the DOUT/RDY pin is shared with the MISO pin. The final answer suggests connecting the MISO pin to a separate Arduino pin (e.g., D8) to use it as an interrupt source. An example code for the AD7124-4 on Nucleo-G474RE is provided, demonstrating how to detach and reattach the interrupt before and after SPI transactions.
AI Generated Content
Category: Hardware
Product Number: ad7124-4

Part number : AD7124-4

I'm testing a code using Nucleo-L476RG and an analog-to-digital converter. This ADC uses SPI communication and shares its RDY (end of conversion) and DOUT functions on the same pin, that is, after reading the converted data on the pin, it becomes an RDY pin and can drive an external interrupt on the microcontroller.

My question is: how can I enable the External Interrupt event on a pin already configurated as MISO of SPI 

Since both the functionality relays on 1 common pin,  

If you have an, example code on Interrupt it will be useful for us to move further 

Edit Notes

moved,updated form and tagged
[edited by: GenevaCooper at 2:51 PM (GMT -4) on 28 Aug 2023]