数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

DVR21 数据表(PDF) 231 Page - Microchip Technology

部件名 DVR21
功能描述  16-Bit General Purpose Microcontrollers with 256-Kbyte Flash and 16-Kbyte RAM in Low Pin Count Packages
PDF  416 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  MICROCHIP [Microchip Technology]
网页  http://www.microchip.com
标志 MICROCHIP - Microchip Technology

DVR21 数据表(HTML) 231 Page - Microchip Technology

Back Button DVR21 Datasheet HTML 227Page - Microchip Technology DVR21 Datasheet HTML 228Page - Microchip Technology DVR21 Datasheet HTML 229Page - Microchip Technology DVR21 Datasheet HTML 230Page - Microchip Technology DVR21 Datasheet HTML 231Page - Microchip Technology DVR21 Datasheet HTML 232Page - Microchip Technology DVR21 Datasheet HTML 233Page - Microchip Technology DVR21 Datasheet HTML 234Page - Microchip Technology DVR21 Datasheet HTML 235Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 231 / 416 page
background image
 2016-2018 Microchip Technology Inc.
DS30010118D-page 231
PIC24FJ256GA705 FAMILY
19.1
UARTx Baud Rate Generator (BRG)
The UARTx module includes a dedicated, 16-bit Baud
Rate Generator. The UxBRG register controls the
period of a free-running, 16-bit timer. Equation 19-1
shows the formula for computation of the baud rate
when BRGH = 0.
EQUATION 19-1:
UARTx BAUD RATE WITH
BRGH = 0(1,2)
Example 19-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 UxBRG = 0) and the minimum baud rate
possible is FCY/(16 * 65536).
Equation 19-2 shows the formula for computation of
the baud rate when BRGH = 1.
EQUATION 19-2:
UARTx BAUD RATE WITH
BRGH = 1(1,2)
The maximum baud rate (BRGH = 1) possible is FCY/4
(for UxBRG = 0) and the minimum baud rate possible
is FCY/(4 * 65536).
Writing a new value to the UxBRG 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 19-1:
BAUD RATE ERROR CALCULATION (BRGH = 0)(1)
Note 1: FCY denotes the instruction cycle
clock frequency (FOSC/2).
2: Based on FCY = FOSC/2; Doze mode
and PLL are disabled.
Baud Rate =
FCY
16 • (UxBRG + 1)
UxBRG =
FCY
16 • Baud Rate
– 1
Note 1: FCY denotes the instruction cycle
clock frequency.
2: Based on FCY = FOSC/2; Doze mode
and PLL are disabled.
Baud Rate =
FCY
4 • (UxBRG + 1)
UxBRG =
FCY
4 • Baud Rate
– 1
Note 1: Based on FCY = FOSC/2; Doze mode and PLL are disabled.
Desired Baud Rate
= FCY/(16 (UxBRG + 1))
Solving for UxBRG Value:
UxBRG
= ((FCY/Desired Baud Rate)/16) – 1
UxBRG
= ((4000000/9600)/16) – 1
UxBRG
= 25
Calculated Baud Rate = 4000000/(16 (25 + 1))
= 9615
Error
= (Calculated Baud Rate – Desired Baud Rate)/Desired Baud Rate
= (9615 – 9600)/9600
= 0.16%



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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