vhn
Member level 4
Hi,
I'm using SPI interface for communicating with an external ADC. I've configured the inbuilt engine to operate at a specific speed. So the three lines (MOSI, MISO and SCLK) will be controlled by the microcontroller engine. Now, in order to find out whether conversion is over or not, I 've to poll the MISO pin.
But is it possible for a port pin already configured as an SPIO engine pin, to be polled as if it is a simple GPIO?
I'm using a ARM-7 based microcontroller which has different functionalities multiplexed. So we need to choose the behaviour of each pin using PINSEL registers. Whether I need to explicitly change functionality of these pins or can I simply poll this port pin?
Thanks in advance
I'm using SPI interface for communicating with an external ADC. I've configured the inbuilt engine to operate at a specific speed. So the three lines (MOSI, MISO and SCLK) will be controlled by the microcontroller engine. Now, in order to find out whether conversion is over or not, I 've to poll the MISO pin.
But is it possible for a port pin already configured as an SPIO engine pin, to be polled as if it is a simple GPIO?
I'm using a ARM-7 based microcontroller which has different functionalities multiplexed. So we need to choose the behaviour of each pin using PINSEL registers. Whether I need to explicitly change functionality of these pins or can I simply poll this port pin?
Thanks in advance