Electronic Components Datasheet Search
  English  ▼

X  

CP3UB26 Datasheet(PDF) 164 Page - National Semiconductor (TI)

[Old version datasheet] Texas Instruments acquired National semiconductor.
Part # CP3UB26
Description  Reprogrammable Connectivity Processor with USB and CAN Interfaces
PDF  268 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NSC [National Semiconductor (TI)]
Direct Link  http://www.national.com
Logo NSC - National Semiconductor (TI)

CP3UB26 Datasheet(HTML) 164 Page - National Semiconductor (TI)

Back Button CP3UB26 Datasheet HTML 160Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 161Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 162Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 163Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 164Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 165Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 166Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 167Page - National Semiconductor (TI) CP3UB26 Datasheet HTML 168Page - National Semiconductor (TI) Next Button
Zoom Inzoom in Zoom Outzoom out
 164 / 268 page
background image
www.national.com
164
21.3.10 UART Mode Select Register 2 (UnMDSL2)
The UnMDSL2 register is a byte-wide, read/write register
that controls the sample mode used to recover asynchro-
nous data. At reset, the UnOVR register is cleared. The reg-
ister format is shown below.
USMD
The USMD bit controls the sample mode for
asynchronous transmission.
0 – UART determines the sample position au-
tomatically.
1 – The UnSPOS register determines the
sample position.
21.3.11 UART Sample Position Register (UnSPOS)
The UnSPOS register is a byte-wide, read/write register that
specifies the sample position when the USMD bit in the
UnMDSL2 register is set. At reset, the UnSPOS register is
initialized to 06h. The register format is shown below.
USAMP
The Sample Position field specifies the over-
sample clock period at which to take the first
of three samples for sensing the value of data
bits. The clocks are numbered starting at 0
and may range up to 15 for 16× oversampling.
The maximum value for this field is (oversam-
pling rate - 3). The table below shows the
clock period at which each of the three sam-
ples is taken, when automatic sampling is en-
abled (UnMDSL2.USMD = 0).
The USAMP field may be used to override the
automatic selection, to choose any other clock
period at which to start taking the three sam-
ples.
21.4
BAUD RATE CALCULATIONS
The UART baud rate is determined by the System Clock fre-
quency and the values in the UnOVR, UnPSR, and Un-
BAUD registers. Unless the System Clock is an exact
multiple of the baud rate, there will be a small amount of er-
ror in the resulting baud rate.
21.4.1
Asynchronous Mode
The equation to calculate the baud rate in asynchronous
mode is:
where BR is the baud rate, SYS_CLK is the System Clock,
O is the oversample rate, N is the baud rate divisor + 1, and
P is the prescaler divisor selected by the UPSR register.
Assuming a System Clock of 5 MHz, a desired baud rate of
9600, and an oversample rate of 16, the N × P term accord-
ing to the equation above is:
The N × P term is then divided by each Prescaler Factor
from Table 66 to obtain a value closest to an integer. The
factor for this example is 6.5.
The baud rate register is programmed with a baud rate divi-
sor of 4 (N = baud rate divisor + 1). This produces a baud
clock of:
Note that the percent error is much lower than would be pos-
sible without the non-integer prescaler factor. Error greater
than 3% is marginal and may result in unreliable operation.
Refer to Table 68 below for more examples.
7
1
0
Reserved
USMD
7
4
3
0
Reserved
USAMP
Oversampling Rate
Sample Position
123
7
234
8
234
9
345
10
345
11
456
12
456
13
567
14
567
15
678
16
678
BR
SYS_CLK
O NP
×
×
()
------------------------------
=
NP
×
5
6
×10
()
16
9600
×
()
-------------------------------
32.552
==
N
32.552
6.5
------------------
5.008 (N = 5)
==
BR
5
6
×10
()
16
5
6.5
×
×
()
-----------------------------------
9615.385
==
%error
9615.385
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


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