Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC16F688-E/ST Datasheet(PDF) 86 Page - Microchip Technology

Part # PIC16F688-E/ST
Description  14-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PDF  174 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F688-E/ST Datasheet(HTML) 86 Page - Microchip Technology

Back Button PIC16F688-E/ST Datasheet HTML 82Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 83Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 84Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 85Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 86Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 87Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 88Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 89Page - Microchip Technology PIC16F688-E/ST Datasheet HTML 90Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 86 / 174 page
background image
PIC16F688
DS41203B-page 84
Preliminary
 2004 Microchip Technology Inc.
10.2.2
AUTO BAUD RATE DETECT
The EUSART module supports the automatic detection
and calibration of baud rate. This feature is active only
in Asynchronous mode and while the WUE bit is clear.
The automatic baud rate measurement sequence
(Figure 10-1) begins whenever a Start bit is received
and the ABDEN bit is set. The calculation is self-
averaging.
In the Auto Baud Rate Detect (ABD) mode, the clock to
the BRG is reversed. Rather than the BRG clocking the
incoming RX signal, the RX signal is timing the BRG. In
ABD mode, the internal baud rate generator is used as
a counter to time the bit period of the incoming serial
byte stream.
Once the ABDEN bit is set, the state machine will clear
the BRG and look for a Start bit. The Auto Baud Detect
must receive a byte with the value 55h (ASCII “U”,
which is also the LIN bus sync character), in order to
calculate the proper bit rate. The measurement takes
over both a low and a high bit time in order to minimize
any effects caused by asymmetry of the incoming
signal. After a Start bit, the SPBRG begins counting up
using the preselected clock source on the first rising
edge of RX. After eight bits on the RX pin, or the fifth
rising edge, an accumulated value totalling the proper
BRG period is left in the SPBRGH:SPBRG registers.
Once the 5th edge is seen (should correspond to the
Stop bit), the ABDEN bit is automatically cleared.
While calibrating the baud rate period, the BRG
registers are clocked at 1/8th the pre-configured clock
rate. Note that the BRG clock will be configured by the
BRG16 and BRGH bits. Independent of the BRG16 bit
setting, both the SPBRG and SPBRGH will be used as
a 16-bit counter. This allows the user to verify that no
carry occurred for 8-bit modes, by checking for 00h in
the SPBRGH register. Refer to Table 10-4 for counter
clock rates to the BRG.
While the ABD sequence takes place, the USART state
machine is held in IDLE. The RCIF interrupt is set once
the fifth rising edge on RX is detected. The value in the
RCREG needs to be read to clear the RCIF interrupt.
RCREG content should be discarded.
TABLE 10-4:
BRG COUNTER CLOCK
RATES
BAUD
RATE
(K)
SYNC = 0, BRGH = 1, BRG16 = 1 or SYNC = 1, BRG16 = 1
FOSC = 4.000 MHz
FOSC = 2.000 MHz
FOSC = 1.000 MHz
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
0.3
0.300
0.01
3332
300
-0.04
1665
300
-0.04
832
1.2
1.200
0.04
832
1201
-0.16
415
1201
-0.16
207
2.4
2.404
0.16
415
2403
-0.16
207
2403
-0.16
103
9.6
9.615
0.16
103
9615
-0.16
51
9615
-0.16
25
19.2
19.231
0.16
51
19230
-0.16
25
19230
-0.16
12
57.6
58.824
2.12
16
55555
3.55
8
—
—
—
115.2
111.111
-3.55
8
—
—
—
—
—
—
TABLE 10-3:
BAUD RATES FOR ASYNCHRONOUS MODES (CONTINUED)
Note 1: If the WUE bit is set with the ABDEN bit,
auto baud rate detection will occur on the
byte following the Break character (see
Section 10.3.4
“Auto-Wake-up
on
SYNC Break Character”).
2: It is up to the user to determine that the
incoming character baud rate is within the
range of the selected BRG clock source.
Some
combinations
of
oscillator
frequency and USART baud rates are not
possible due to bit error rates. Overall
system timing and communication baud
rates must be taken into consideration
when using the Auto Baud Rate Detection
feature.
BRG16
BRGH
BRG Counter Clock
00
FOSC/512
01
FOSC/128
10
FOSC/128
11
FOSC/32
Note:
During the ABD sequence, SPBRG and
SPBRGH are both used as a 16-bit
counter, independent of BRG16 setting.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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