8 years, 9 months ago.

Force UART TX pin low for 20ms (SDI-12 protocol)

I am trying to implement a SDI-12 protocol using the UART on a STM32F411RET.

I need a way to drive the UART tx pin low for 20ms.

On an arduino, I can just call serial.end(), then pinMode(TXPIN, OUTPUT); digitalWrite(TXPIN, HIGH); serial.begin();

Is there a way to do the same with Mbed?

Be the first to answer this question.