# UART baud-rate divider and error # Scope: Integer-divider UART baud error; oversampling factor supplied. # Status: illustrative worked example; engineering review pending. # Inputs are example values. Checks are editable example requirements, not standards. clock = 16000000 Hz baud = 115200 Hz oversampling = 16 divider := round(clock/(oversampling*baud)) actual := clock/(oversampling*divider) [Hz] relativeError := abs(actual-baud)/baud check baud error budget: relativeError <= 0.03 scenario alternative: clock = 1.28e+07 Hz