Does MBED support bi-directional I/O?

30 Apr 2011

I am now to MBED programming. I wish to know if I am able to write to an I/O pin, and then tri-state the pin, and then read from the I/O pin.

I would like to create a bi-directional I/O line. Here is what I wanted to do: (1) assign an output pin as a 2MHZ clock (2) assign a pin that at first clock out 8 bits and then one clock cycle to be tri-stated and then read back 16 bits on a single I/O pin.

Will MBED be able to achieve this?

18 May 2011

Hi, Robert

You have plenty of I/O lines, every line can be bidirectional. Besides I2C is your answer.

Regards,

thenoble66

18 May 2011