2014-01-09 08:19 AM
I have setup the USART to Tx/Rx however my application requires sending a Break. The STM32F programmer's manual refernces sending Idle and Break, provides an example and register for sending an idle character but not the Break, please assist.
Specifically trying to interface the Maxim DS2480 USART to 1Wire interface.2014-01-09 08:34 AM
USART_SendBreak(USART2);
2014-01-09 10:22 AM
2014-01-09 10:44 AM
You failed to accurately describe your board/part, I assumed an F1
For an F0/**
* @brief Enables the specified USART's Request.
* @param USARTx: where x can be 1 or 2 to select the USART peripheral.
* @param USART_Request: specifies the USART request.
* This parameter can be any combination of the following values:
* @arg USART_Request_TXFRQ: Transmit data flush ReQuest
* @arg USART_Request_RXFRQ: Receive data flush ReQuest
* @arg USART_Request_MMRQ: Mute Mode ReQuest
* @arg USART_Request_SBKRQ: Send Break ReQuest
* @arg USART_Request_ABRRQ: Auto Baud Rate ReQuest
* @param NewState: new state of the DMA interface when reception error occurs.
* This parameter can be: ENABLE or DISABLE.
* @retval None
*/
void USART_RequestCmd(USART_TypeDef* USARTx, uint32_t USART_Request, FunctionalState NewState)
{
/* Check the parameters */
assert_param(IS_USART_ALL_PERIPH(USARTx));
assert_param(IS_USART_REQUEST(USART_Request));
assert_param(IS_FUNCTIONAL_STATE(NewState));
if (NewState != DISABLE)
{
/* Enable the USART ReQuest by setting the dedicated request bit in the RQR
register.*/
USARTx->RQR |= USART_Request;
}
else
{
/* Disable the USART ReQuest by clearing the dedicated request bit in the RQR
register.*/
USARTx->RQR &= (uint32_t)~USART_Request;
}
}
Send me a full license for IAR, I'll see what I can do.
2014-01-09 10:55 AM
Thank You .