AnsweredAssumed Answered

STM8S001The UART Of Alternate function after remap,Unable to receive

Question asked by su shaowu on Feb 8, 2018
Latest reply on Apr 13, 2018 by Emilio P.G. Ficara
Chip:STM8S001J3
The UART Of Alternate function after remap
RX is in PIN1,TX is in PIN5
The program has never been interrupted, RXNE has been 0.
What is the reason why you want to ask?

My configuration is as follows:
OPTION  BYTES:
                                AFR0:Alternate Active
                                 AFR1:Alternate Active
                                  AFR2:Alternate Active
Code:
            UART1_Init((uint32_t)9600, UART1_WORDLENGTH_8D,UART1_STOPBITS_1, UART1_PARITY_NO,
                   UART1_SYNCMODE_CLOCK_DISABLE, UART1_MODE_TXRX_ENABLE);
            UART1_ITConfig(UART1_IT_RXNE_OR, ENABLE);
 
             UART1_Cmd(ENABLE);

Outcomes