| поискавой системы для электроныых деталей |
|
BLUENRG-2 датащи(PDF) 70 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
BLUENRG-2 датащи(HTML) 70 Page - STMicroelectronics |
|
70 / 190 page ![]() Functional details BlueNRG-2 70/190 DocID030675 Rev 2 Figure 13: UART character frame The FIFOs can be disabled. In this case, the transmit and receive sides of the UART have 1-byte holding registers (the bottom entry of the FIFOs). The overrun bit is set when a word has been received, and the previous one was not yet read. In this implementation, the 1-byte register. 3.9.2.2 Baud rate divisor The baud rate divisor is a 22-bit number consisting of a 16-bit integer (BRDI) and a 6-bit fractional part (BRDF). The fractional baud rate divider enables the use of any clock to act as UART_CLK, while it is still possible to generate all the standard baud rates. The 16-bit integer is loaded through the UART_IBRD register and the 6-bit fractional part is loaded into the UART_FBRD register. The baud rate divisor has the following relationship: When bit OVSFACT = 0b: divisor = UARTCLK/(16 x baud rate) = BRDI + BRDF. When bit OVSFACT = 1b: divisor = UARTCLK/(8 x baud rate) = BRDI + BRDF. Calculation of the fractional 6-bit number (DIVFRAC) is done by taking the fractional part of the required baud rate divisor and multiplying it by 64 (that is, 2n, where n is the width of the UART_FBRD register) and adding 0.5 to account for rounding errors: DIVFRAC = integer(BRDF * 64 + 0.5) The maximum deviation error using a 6-bit UART_FBRD register is 1/64 * 100 = 1.56%. This occurs when DIVFRAC = 1, and the error is cumulative over 64 clock ticks. Example 1: Calculating the divisor value (with OVSFACT = 0b). If the required baud rate is 460 800 and the UART clock frequency is 16 MHz then: Baud rate divisor = (16 x 106) / (16 x 460 800) = 2.170 BRDI = 2 and BRDF = 0.170 Therefore fractional part DIVFRAC = integer(BRDF * 64 + 0.5) = 11 Generated baud rate divider = 2 + (11 / 64) = 2.1718 Generated baud rate = (16 x 106) / (16 x 2.172) = 460 447 Error = (460 800 - 460 405) / 460 800 x 100 = 0.077 % |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |