- 打卡等级:初来乍到
- 打卡总天数:4
- 最近打卡:2025-05-01 06:58:22
金牌会员
- 积分
- 1333
|
发表于 2024-5-10 07:29:40
|
显示全部楼层
本帖最后由 jmg 于 2024-5-10 10:32 编辑
USB needs a 48MHz clock, so most USB_UARTS have BAUD = 24MHz/N (or similar, some have 96MHz/N)
24M/921600 = 26.04166667 /26 is OK (0.16%)
24M/691200 = 34.72222222 larger error 0.8% from nearest odd number, 2.12% from nearest even number.
24M/460800 = error 52.083333 33 /52 is ok (0.16%)
When I ask for 691200 on my USB_UART, I measure appx = 666600 Baud
24M/36 = 666667 Baud
Suggestion: if you choose a sysCLK related to 24MHz, you should be able to support any baud rate the USB-UARTs can.
|
|