Other Parts Discussed in Thread: CC2640
Tool/software: TI-RTOS
Hi,
I'm trying to send a break signal over UART which is minium 13 bit-times long.
The documentation of CC26xx UART.h says, that can be done in the following way:
__STATIC_INLINE void UARTBreakCtl(uint32_t ui32Base, bool bBreakState) { // // Check the arguments. // ASSERT(UARTBaseValid(ui32Base)); // // Set the break condition as requested. // HWREG(ui32Base + UART_O_LCRH) = (bBreakState ? (HWREG(ui32Base + UART_O_LCRH) | UART_LCRH_BRK) : (HWREG(ui32Base + UART_O_LCRH) & ~(UART_LCRH_BRK))); }
There is also the following note:
- For proper transmission of a break command, the break must be asserted for at least two complete frames.
Can someone give me a code example using the command? I didn't fully understand, what is meant with the note.
Thank you
best wishes
Maximilian