Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
How can I keep the UART baud rate stable if the peripheral clock (Clk_Peri) is dynamically changed for low power designs in PSoC® 6?
If you are using PSoC Creator, you can configure the UART baud rate in the component GUI, but per actual operation mechanism PSoC Creator™ assigns a clock UART_x_SCBCLK to UART according to the component setting. PSoC Creator calculates the suitable divider and configures the clock in the background. PSoC Creator performs these tasks when the Enable Clock from Terminal option of UART is not selected (the default option).
However, when the Enable Clock from Terminal option is selected, a clock terminal appears on the component icon. It is your responsibility to calculate and configure the clock for UART. You can change the clock output dynamically using the APIs provided by the Clock Component. This provides you a chance to reconfigure and keep the UART clock stable when the source clock is changed.
To decide the UART clock divider to be used before and after peripheral clock change, you can use the equation: