công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

HT48CU80 bảng dữ liệu(PDF) 26 Page - Holtek Semiconductor Inc

tên linh kiện HT48CU80
Giải thích chi tiết về linh kiện  I/O Type 8-Bit MCU
PDF  54 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  HOLTEK [Holtek Semiconductor Inc]
Trang chủ  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT48CU80 bảng dữ liệu(HTML) 26 Page - Holtek Semiconductor Inc

Back Button HT48CU80 Datasheet HTML 22Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 23Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 24Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 25Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 26Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 27Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 28Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 29Page - Holtek Semiconductor Inc HT48CU80 Datasheet HTML 30Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 54 page
background image
HT48RU80/HT48CU80
Rev. 1.00
26
April 12, 2006
¨ RIE
This bit enables or disables the receiver interrupt. If
this bit is equal to
²1² when the receiver overrun
OERR flag or receive data available RXIF flag is
set, the UART interrupt request flag will be set. If
this bit is equal to
²0² the UART interrupt will not be
influenced by the condition of the OERR or RXIF
flags.
¨ WAKE
This bit enables or disables the receiver wake-up
function. If this bit is equal to
²1² and if the MCU is in
the Power Down Mode, a low going edge on the RX
input pin will wake-up the device. If this bit is equal
to
²0² and if the MCU is in the Power Down Mode,
any edge transitions on the RX pin will not wake-up
the device.
¨ ADDEN
The ADDEN bit is the address detect mode bit.
When this bit is
²1² the address detect mode is en-
abled. When this occurs, if the 8th bit, which corre-
sponds to RX7 if BNO=0, or the 9th bit, which
corresponds to RX8 if BNO=1, has a value of
²1²
then the received word will be identified as an ad-
dress, rather than data. If the corresponding inter-
rupt is enabled, an interrupt request will be
generated each time the received word has the ad-
dress bit set, which is the 8 or 9 bit depending on the
value of BNO. If the address bit is
²0² an interrupt
will not be generated, and the received data will be
discarded.
¨ BRGH
The BRGH bit selects the high or low speed mode
of the Baud Rate Generator. This bit, together with
the value placed in the BRG register, controls the
Baud Rate of the UART. If this bit is equal to
²1² the
high speed mode is selected. If the bit is equal to
²0²
the low speed mode is selected.
¨ RXEN
The RXEN bit is the Receiver Enable Bit. When this
bit is equal to
²0² the receiver will be disabled with
any pending data receptions being aborted. In addi-
tion the buffer will be reset. In this situation the RX
pin can be used as a general purpose I/O pin. If the
RXEN bit is equal to
²1² the receiver will be enabled
and if the UARTEN bit is equal to
²1² the RX pin will
be controlled by the UART. Clearing the RXEN bit
during a transmission will cause the data reception
to be aborted and will reset the receiver. If this oc-
curs, the RX pin can be used as a general purpose
I/O pin.
¨ TXEN
The TXEN bit is the Transmitter Enable Bit. When
this bit is equal to
²0² the transmitter will be disabled
with any pending transmissions being aborted. In
addition the buffer will be reset. In this situation the
TX pin can be used as a general purpose I/O pin. If
the TXEN bit is equal to
²1² the transmitter will be
enabled and if the UARTEN bit is equal to
²1² the
TX pin will be controlled by the UART. Clearing the
TXEN bit during a transmission will cause the trans-
mission to be aborted and will reset the transmitter.
If this occurs, the TX pin can be used as a general
purpose I/O pin.
· Baud rate generator
To setup the speed of the serial data communication,
the UART function contains its own dedicated baud
rate generator. The baud rate is controlled by its own
internal free running 8-bit timer, the period of which is
determined by two factors. The first of these is the
value placed in the BRG register and the second is the
value of the BRGH bit within the UCR2 control regis-
ter. The BRGH bit decides, if the baud rate generator
is to be used in a high speed mode or low speed
mode, which in turn determines the formula that is
used to calculate the baud rate. The value in the BRG
register determines the division factor, N, which is
used in the following baud rate calculation formula.
Note that N is the decimal value placed in the BRG
register and has a range of between 0 and 255.
UCR2 BRGH Bit
0
1
Baud Rate
f
[64 (N + 1)]
SYS
f
[16 (N + 1)]
SYS
By programming the BRGH bit which allows selection
of the related formula and programming the required
value in the BRG register, the required baud rate can
be setup. Note that because the actual baud rate is
determined using a discrete value, N, placed in the
BRG register, there will be an error associated be-
tween the actual and requested value. The following
example shows how the BRG register value N and the
error value can be calculated.
Calculating the register and error values
For a clock frequency of 8MHz, and with BRGH set to
²0² determine the BRG register value N, the actual
baud rate and the error value for a desired baud rate
of 9600.
From the above table the desired baud rate BR
=
f
[64 (N + 1)]
SYS
Re-arranging this equation gives N
=
f
(BRx64)
SYS
- 1
Giving a value for N
=
8000000
9600 64
()
x
- 1 = 12.0208
To obtain the closest value, a decimal value of 12
should be placed into the BRG register. This gives an
actual or calculated baud rate value of
BR
=
8000000
[64(12 + 1)]
= 9615
Therefore the error is equal to
= 0.16%
9 6 1 5
9 6 0 0
9 6 0 0



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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