Hello Deekshith K V,
This quasi-bidirectional I/O can be used as an input or output without the use of a control signal for data directions. All ports programmed as input should be set to logic 1. At power-on the I/Os are HIGH.
Output data is transmitted to the ports in the Write mode. To write, the master sends the START condition and the slave address setting the last bit of the address byte to logic 0.
Input data is transferred from the ports to the microcontroller in the Read mode. To read, the master (microcontroller) addresses the slave device and sets the last bit of the address byte to logic 1 (address byte read). During the Read mode, it is important to meet the setup and hold times so the master can read and avoid losing data. For more details, please refer the datasheet section 8.3.
In section 10, you can see a bidirectional application and sample code for setting the GPIOs as input and outputs.
Regarding the interruption, you can check the functionality in section 8.5. We do not know the functionality of the Linkit 7688 that you are using, therefore we cannot provide further details.
Have a great day,
Paulina
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------