| поискавой системы для электроныых деталей |
|
DSPIC33FJ12MC02ESS датащи(PDF) 194 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DSPIC33FJ12MC02ESS датащи(HTML) 194 Page - Microchip Technology |
|
194 / 284 page ![]() dsPIC33FJ12MC201/202 DS70265B-page 192 Preliminary © 2007 Microchip Technology Inc. 18.1 UART Baud Rate Generator (BRG) The UART module includes a dedicated 16-bit Baud Rate Generator (BRG). The BRGx register controls the period of a free-running 16-bit timer. Equation 18-1 shows the formula for computation of the baud rate with BRGH = 0. EQUATION 18-1: UART BAUD RATE WITH BRGH = 0 Example 18-1 shows the calculation of the baud rate error for the following conditions: •FCY = 4 MHz • Desired Baud Rate = 9600 The maximum baud rate (BRGH = 0) possible is FCY/16 (for BRGx = 0), and the minimum baud rate possible is FCY/(16 * 65536). Equation 18-2 shows the formula for computation of the baud rate with BRGH = 1. EQUATION 18-2: UART BAUD RATE WITH BRGH = 1 The maximum baud rate (BRGH = 1) possible is FCY/4 (for BRGx = 0), and the minimum baud rate possible is FCY/(4 * 65536). Writing a new value to the BRGx register causes the BRG timer to be reset (cleared). This ensures the BRG does not wait for a timer overflow before generating the new baud rate. EXAMPLE 18-1: BAUD RATE ERROR CALCULATION (BRGH = 0) Note: FCY denotes the instruction cycle clock frequency (FOSC/2 ). Baud Rate = FCY 16 • (BRGx + 1) FCY 16 • Baud Rate BRGx = – 1 Note: FCY denotes the instruction cycle clock frequency (FOSC/2). Baud Rate = FCY 4 • (BRGx + 1) FCY 4 • Baud Rate BRGx = – 1 Desired Baud Rate = FCY/(16 (BRGx + 1)) Solving for BRGx Value: BRGx = ((FCY/Desired Baud Rate)/16) – 1 BRGx = ((4000000/9600)/16) – 1 BRGx = 25 Calculated Baud Rate = 4000000/(16 (25 + 1)) = 9615 Error = (Calculated Baud Rate – Desired Baud Rate) Desired Baud Rate = (9615 – 9600)/9600 =0.16% |
|
ссылки 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 |