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

X  

PIC18F14K22-E/ML bảng dữ liệu(PDF) 79 Page - Microchip Technology

tên linh kiện PIC18F14K22-E/ML
Giải thích chi tiết về linh kiện  20-Pin Flash Microcontrollers with nanoWatt XLP Technology
PDF  388 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F14K22-E/ML bảng dữ liệu(HTML) 79 Page - Microchip Technology

Back Button PIC18F14K22-E/ML Datasheet HTML 75Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 76Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 77Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 78Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 79Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 80Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 81Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 82Page - Microchip Technology PIC18F14K22-E/ML Datasheet HTML 83Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 79 / 388 page
background image
 2010 Microchip Technology Inc.
Preliminary
DS41365D-page 79
PIC18F1XK22/LF1XK22
8.0
I/O PORTS
There are up to three ports available. Some pins of the
I/O ports are multiplexed with an alternate function from
the peripheral features on the device. In general, when
a peripheral is enabled, that pin may not be used as a
general purpose I/O pin.
Each port has three registers for its operation. These
registers are:
• TRIS register (data direction register)
• PORT register (reads the levels on the pins of the
device)
• LAT register (output latch)
The PORTA Data Latch (LATA register) is useful for
read-modify-write operations on the value that the I/O
pins are driving.
A simplified model of a generic I/O port, without the
interfaces to other peripherals, is shown in Figure 8-1.
FIGURE 8-1:
GENERIC I/O PORT
OPERATION
8.1
PORTA, TRISA and LATA
Registers
PORTA is 5 bits wide. PORTA<5:4,2:0> bits are
bidirectional ports and PORTA is an input-only port.
The corresponding data direction register is TRISA.
Setting a TRISA bit (= 1) will make the corresponding
PORTA pin an input (i.e., disable the output driver).
Clearing a TRISA bit (= 0) will make the corresponding
PORTA pin an output (i.e., enable the output driver and
put the contents of the output latch on the selected pin).
Reading the PORTA register reads the status of the
pins, whereas writing to it, will write to the PORT latch.
The PORTA Data Latch (LATA) register is also memory
mapped. Read-modify-write operations on the LATA
register read and write the latched output value for
PORTA.
All of the PORTA pins are individually configurable as
interrupt-on-change pins. Control bits in the IOCA
register enable (when set) or disable (when clear) the
interrupt function for each pin.
When set, the RABIE bit of the INTCON register
enables interrupts on all pins which also have their
corresponding IOCA bit set. When clear, the RABIE
bit disables all interrupt-on-changes.
Only pins configured as inputs can cause this interrupt
to occur (i.e., any pin configured as an output is
excluded from the interrupt-on-change comparison).
For enabled interrupt-on-change pins, the values are
compared with the old value latched on the last read of
PORTA. The ‘mismatch’ outputs of the last read are
OR’d together to set the PORTA Change Interrupt flag
bit (RABIF) in the INTCON register.
Data
Bus
WR LAT
WR TRIS
RD Port
Data Latch
TRIS Latch
RD TRIS
Input
Buffer
I/O pin(1)
Q
D
CK
Q
D
CK
EN
QD
EN
RD LAT
or Port
Note 1:
I/O pins have diode protection to VDD and VSS.



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