Hello:
I'm trying to implement the SDI-12 Master (SDI-12 Support Group )
I can configure properly the UART for transmission data:
But I don't know how can i SEND break and mask.
The Idea is :
The beak is aprox 14 bits to high level
The mark is 10 bits to low level.
I can find this charapter into K60P144M150SF3RM document.
But, i don't udenderd how can i do it.
Thanks you very much for everything.
Albert.
I can find a part of solution:
UART1->C2 |= UART_C2_TE_MASK;
UART1->C2 |= UART_C2_SBK_MASK;
UART1->C2 &= (uint8_t)(~(uint8_t)UART_C2_SBK_MASK);
With this solution, i can transmit one break characters.
But in this case, I only get the break. It is logic 1 part.
know how i can find the mark (8.33 ms set 0 logic).??
Thanks you very much.
Hello Albert:
Sorry for the time with no responses.
Are you still having this issue?
Typically the BREAK character is formed by logic 0s, ¿so are you using the TX inverted mode? In that case you would need to just leave the line idle for the required 8.33 ms to get the 0 logic mark you are expecting, or force an idle character by clearing and setting C2[TE] as explained in the manual:
I hope this helps.
Best regards,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------