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

X  

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

tên linh kiện HT85F2240
Giải thích chi tiết về linh kiện  A/D Flash 8051 Core Low Pin Count MCU
PDF  147 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

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

Back Button HT85F2240 Datasheet HTML 98Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 99Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 100Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 101Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 102Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 103Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 104Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 105Page - Holtek Semiconductor Inc HT85F2240 Datasheet HTML 106Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 102 / 147 page
background image
Rev. 1.10
10� of 147
���� �1� �01�
A/D Flash 8051 Core Low Pin Count MCU
HT85F2230/HT85F2240
Programming Considerations
Within the user program, one of the first things to consider is port initialisation. After a reset, the I/
O data register will be set high and I/O port mode registers will be cleared to low. This means that
all I/O pins will default to a Quasi-bidirectional structure. The I/O pins can be re-assigned to some
other mode for each I/O using the control registers, PnM0 and PnM1. Ports P0, P1 and P3 provide
four I/O structure modes option. Care should be taken to setup the correct I/O structure for each I/
O pin, otherwise unexpected data will be input or output on the I/O pins.
The data registers, P0, P1 and P3, reflect the value of the corresponding I/O port, however, they do
not necessarily reflect the I/O pin logic state. During reading and writing of data to these registers,
what actually happens is dependent upon whether the corresponding pin is setup as an output or
input. A write operation is only effective when the corresponding pin is setup as an output. In such
cases a write operation will setup the logic level, low or high, on the pin. A read operation will read
the current logic level, low or high, on the corresponding pin.
If any pins are setup to be used as A/D input pins then it is important to ensure that the I/O Port
Mode registers setup the pins as inputs, which are essentially high impedance inputs. In this way
the I/O logic circuits will have a minimal influence on the A/D input impedance.
When using these bit control instructions, a read-modify-write operation takes place. The
microcontroller must first read in the data on the entire port, modify it to the required new bit
values and then rewrite this data back to the output ports, such as using CLR or SETB bit write
instructions. Care should be taken that some instructions, the Read-Modify-Write instructions,
operate on the Pn register, such as “INC P0” or “ANL P1, A”, while others can operate directly onto
the external port input, such as “MOV A, P1”.
The accompanying table illustrates the Read-Modify-Write related instructions.
Mnemonic
Instruction
Example
Bit Manipulation
ANL
Logica� AND
ANL P�� A
—
ORL
Logica� OR
OR P�� A
—
XRL
Logica� XOR
XRL P�� A
—
�BC
��mp if bit set and then c�ear bit �BC P�.0� (LABEL)
—
CPL
Comp�ement bit
CPL P�.0
—
INC
Increment
INC P�
—
DEC
Decrement
DEC P�
—
D�NZ
Decrement and j�mp if not zero D�NZ P�� (LABEL)
—
MOV Px.�� C
Move carry flag to Bit y of Port x MOV P�.0� C
√
CLR Px.�
C�ear Bit � of Port x
CLR P�.0
√
SETB Px.�
Set Bit � of Port x
SETB P�.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 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


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