поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PIC16F627A датащи(PDF) 75 Page - Microchip Technology

номер детали PIC16F627A
подробное описание детали  Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PDF  180 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F627A датащи(HTML) 75 Page - Microchip Technology

Back Button PIC16F627A Datasheet HTML 71Page - Microchip Technology PIC16F627A Datasheet HTML 72Page - Microchip Technology PIC16F627A Datasheet HTML 73Page - Microchip Technology PIC16F627A Datasheet HTML 74Page - Microchip Technology PIC16F627A Datasheet HTML 75Page - Microchip Technology PIC16F627A Datasheet HTML 76Page - Microchip Technology PIC16F627A Datasheet HTML 77Page - Microchip Technology PIC16F627A Datasheet HTML 78Page - Microchip Technology PIC16F627A Datasheet HTML 79Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 75 / 180 page
background image
© 2005 Microchip Technology Inc.
DS40044D-page 73
PIC16F627A/628A/648A
12.1
USART Baud Rate Generator
(BRG)
The BRG supports both the Asynchronous and
Synchronous modes of the USART. It is a dedicated
8-bit baud rate generator. The SPBRG register
controls the period of a free running 8-bit timer. In
Asynchronous mode, bit BRGH (TXSTA<2>) also
controls the baud rate. In Synchronous mode, bit
BRGH is ignored. Table 12-1 shows the formula for
computation of the baud rate for different USART
modes, which only apply in Master mode (internal
clock).
Given the desired baud rate and FOSC, the nearest
integer value for the SPBRG register can be calculated
using the formula in Table 12-1. From this, the error in
baud rate can be determined.
Example 12-1 shows the calculation of the baud rate
error for the following conditions:
FOSC = 16 MHz
Desired Baud Rate = 9600
BRGH = 0
SYNC = 0
EQUATION 12-1:
CALCULATING BAUD
RATE ERROR
It may be advantageous to use the high baud rate
(BRGH = 1) even for slower baud clocks. This is
because the FOSC/(16(X + 1)) equation can reduce the
baud rate error in some cases.
Writing a new value to the SPBRG register causes the
BRG timer to be reset (or cleared) and ensures the
BRG does not wait for a timer overflow before
outputting the new baud rate.
The data on the RB1/RX/DT pin is sampled three times
by a majority detect circuit to determine if a high or a
low level is present at the RX pin.
TABLE 12-1:
BAUD RATE FORMULA
TABLE 12-2:
REGISTERS ASSOCIATED WITH BAUD RATE GENERATOR
Desired Baud Rate
Fosc
64 x
1
+
()
-----------------------
=
9600
16000000
64 x
1
+
()
------------------------
=
x25.042
=
Calculated Baud Rate
16000000
64 25
1
+
()
---------------------------
9615
==
Error
(Calculated Baud Rate - Desired Baud Rate)
Desired Baud Rate
-----------------------------------------------------------------------------------------------------------
=
=
9615
9600
9600
------------------------------
0.16%
=
SYNC
BRGH = 0 (Low Speed)
BRGH = 1 (High Speed)
0
(Asynchronous) Baud Rate = FOSC/(64(X+1))
Baud Rate = FOSC/(16(X+1))
1
(Synchronous) Baud Rate = FOSC/(4(X+1))
NA
Legend:
X = value in SPBRG (0 to 255)
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR
Value on all
other Resets
98h
TXSTA
CSRC
TX9
TXEN
SYNC
—BRGH
TRMT
TX9D
0000 -010
0000 -010
18h
RCSTA
SPEN
RX9
SREN
CREN
ADEN
FERR
OERR
RX9D
0000 000x
0000 000x
99h
SPBRG
Baud Rate Generator Register
0000 0000
0000 0000
Legend:
x
= unknown, - = unimplemented read as ‘0’. Shaded cells are not used for the BRG.



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


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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