Hello
I am learning the UCD3138 full-bridge hard switch development board firmware
I have some questions about void init_uart0(void)
Void init_uart0(void)
{
Uart0Regs.UARTCTRL3.bit.SW_RESET = 0;
Uart0Regs.UARTCTRL3.bit.CLOCK = 1; //internal clock select;
Uart0Regs.UARTCTRL3.bit.SW_RESET = 1;
Uart0Regs.UARTIOCTRLSCLK.bit.IO_FUNC = 0;
}
I don't know why in initializing UART0, SW_RESET = 0 first, and SW_RESET = 1 last, which is why?
The UART uses an internal clock. Which module is the internal clock and where is it set?