STM8S001The UART Of Alternate function after remap,Unable to receive
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);
#the-program-has-never-been-interrupted #the-uart-of-alternate-function-after-remap #stm8s001j3