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

X  

AT89LP2052 датащи(PDF) 20 Page - ATMEL Corporation

номер детали AT89LP2052
подробное описание детали  8-bit Microcontroller with 2/4-Kbyte Flash
PDF  90 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  ATMEL [ATMEL Corporation]
домашняя страница  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89LP2052 датащи(HTML) 20 Page - ATMEL Corporation

Back Button AT89LP2052 Datasheet HTML 16Page - ATMEL Corporation AT89LP2052 Datasheet HTML 17Page - ATMEL Corporation AT89LP2052 Datasheet HTML 18Page - ATMEL Corporation AT89LP2052 Datasheet HTML 19Page - ATMEL Corporation AT89LP2052 Datasheet HTML 20Page - ATMEL Corporation AT89LP2052 Datasheet HTML 21Page - ATMEL Corporation AT89LP2052 Datasheet HTML 22Page - ATMEL Corporation AT89LP2052 Datasheet HTML 23Page - ATMEL Corporation AT89LP2052 Datasheet HTML 24Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 90 page
background image
20
3547F–MICRO–6/06
AT89LP2052/LP4052
14.6
Port Read-Modify-Write
A read from a port will read either the state of the pins or the state of the port register depending
on which instruction is used. Simple read instructions will always access the port pins directly.
Read-modify-write instructions, which read a value, possibly modify it, and then write it back, will
always access the port register. This includes bit write instructions such as CLR or SETB as they
actually read the entire port, modify a single bit, then write the data back to the entire port. See
Table 14-2 for a complete list of Read-Modify-Write instruction which may access the ports.
14.7
Port Alternate Functions
Most general-purpose digital I/O pins of the AT89LP2052/LP4052 share functionality with the
various I/Os needed for the peripheral units. Table 14-4 lists the alternate functions of the port
pins. Alternate functions are connected to the pins in a logic AND fashion. In order to enable the
alternate function on a port pin, that pin must have a “1” in its corresponding port register bit, oth-
erwise, the input/output will always be “0”. Furthermore, each pin must be configured
for the correct input/output mode as required by its peripheral before it may be used as such.
Table 14-3 shows how to configure a generic pin for use with an alternate function.
Table 14-2.
Port Read-Modify-Write Instructions
Mnemonic
Instruction
Example
ANL
Logical AND
ANL P1, A
ORL
Logical OR
ORL P1, A
XRL
Logical EX-OR
XRL P1, A
JBC
Jump if bit set and clear bit
JBC P3.0, LABEL
CPL
Complement bit
CPL P3.1
INC
Increment
INC P1
DEC
Decrement
DEC P3
DJNZ
Decrement and jump if not zero
DJNZ P3, LABEL
MOV PX.Y, C
Move carry to bit Y of Port X
MOV P1.0, C
CLR PX.Y
Clear bit Y of Port X
CLR P1.1
SETB PX.Y
Set bit Y of Port X
SETB P3.2
Table 14-3.
Alternate Function Configurations for Pin y of Port x
PxM0.y
PxM1.y
Px.y
I/O Mode
0
0
1
Bidirectional (internal pull-up)
011
Output
1
0
X
Input
1
1
1
Bidirectional (external pull-up)



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


датащи скачать

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