手册上写的是UCBRSx = 6 但是经计算 n=32768/2400=13.65 ,UCBRSx = round((13.65-13)*8)= 5 。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
手册上写的是UCBRSx = 6 但是经计算 n=32768/2400=13.65 ,UCBRSx = round((13.65-13)*8)= 5 。
手册
15.3.10.1 Low-Frequency Baud Rate Mode Setting
In the low-frequency mode, the integer portion of the divisor is realized by the prescaler:
UCBRx = INT(N)
and the fractional portion is realized by the modulator with the following nominal formula:
UCBRSx = round( ( N – INT(N) ) × 8 )
Incrementing or decrementing the UCBRSx setting by one count may give a lower maximum bit error for any given bit. To determine if this is the case, a detailed error calculation must be performed for each bit for each UCBRSx setting.