Posted on May 17, 2011 at 15:06I spent lots of time to understand ST STM8S103F3 Library and did try-and-error process to investigate the STM8S103 MCU. But I feel frustrated. So far, I did NOT still know why we need to wait TXE bit in UART interrupt ...
Posted on May 17, 2011 at 15:06I do NOT know why the STM8S103F3 UART1 is so diffcult to use correctly. Does Anybody have similar experience ? The ST offical library is too complex to understand. I just wanted to send '0' to '9 out in 19600 baud, Non...
Posted on May 17, 2011 at 15:06I tried to modfiy my original code in Polloing approach as below: void UART_TxByte (u8 bByte) { pbUART_Tx = &bByte; bUART_TxCnt = 1; UART1->DR = bByte; UART1->CR2 |= UART1_CR2_TIEN; while ((UART1->SR & UART1_SR_TX...
Posted on May 17, 2011 at 15:06I tried to implment UART1 Single byte transmission but can NOT fully understand the Figure 110 and page 311 of the RM0016 document. Q5) Software enables tne USART: Why does it generate an Tx Interrupt (TXE=1) automatic...
Posted on May 17, 2011 at 15:06I used default HSI clock source (fMASTER =16MHz/8) as UART1 clock source and refer to the UART3 57600 baud example in STM8S optimized examples. 1) Baud = 57600 Tx/Rx baud rate = fMASTER / UART_DIV = (16MHz / 8) / 57600...