STM32U5xx UCPD RM0456 documentation inconsistency
I try to figure out what the correct UCPD clock frequency is.
RM0456 in section 74.4.2 UCPD reset and clocks states:
"The receiver is designed to work in the clock frequency range from 6 to 18 MHz. However, the optimum performance is ensured in the range from 9 to 18 MHz"
However, in section 74.8.1 UCPD configuration register 1 (UCPD_CFGR1) it says:
"It is recommended to use the pre-scaler so as to set the ucpd_clk frequency in the range from 6 to 9 MHz."
I found no place where RM0456 clearly states from where UCPD kernel clock is derived.
What is the correct UCPD clock range?
STM32H5xx manual RM0481 has the same above inconsistencies. In section 11.4.12 Kernel clock selection (table 105) it clearly states that UCPD kernel clock is HSI (64MHz) clock divided by 4 but in section "56.4.2 UCPD reset and clocks" it says
"transmitter is clocked with ucpd_clk clock, pre-scaled from the ucpd_ker_ck (HSI16)"
OK, it is still 16 MHz, but STM32H5 has HSI64, not HSI16. This can be confusing.
Speaking of confusion; both RM0481 and RM0456 reference manuals describes UCPD_CFGR1.PSC_USBPDCLK registry.
HAL driver names this registry UCPD_CFG1.PSC_UCPDCLK - which makes more sense.
