參數(shù)資料
型號: DM164134
廠商: Microchip Technology
文件頁數(shù): 7/116頁
文件大?。?/td> 0K
描述: KIT DEV PIC18F4XK22
標準包裝: 1
系列: PIC® 18F
類型: MCU
適用于相關(guān)產(chǎn)品: PIC18F4XK22,PIC18F2XK22
所含物品: 板,文檔
PIC18FXX8
DS41159E-page 102
2006 Microchip Technology Inc.
9.4
PORTD, TRISD and LATD
Registers
PORTD is an 8-bit wide, bidirectional port. The corre-
sponding Data Direction register for the port is TRISD.
Setting a TRISD bit (= 1) will make the corresponding
PORTD pin an input (i.e., put the corresponding output
driver in a high-impedance mode). Clearing a TRISD
bit (= 0) will make the corresponding PORTD pin an
output (i.e., put the contents of the output latch on the
selected pin).
Read-modify-write operations on the LATD register
read and write the latched output value for PORTD.
PORTD uses Schmitt Trigger input buffers. Each pin is
individually configurable as an input or output.
PORTD can be configured as an 8-bit wide, micro-
processor port (Parallel Slave Port or PSP) by setting
the control bit PSPMODE (TRISE<4>). In this mode,
the input buffers are TTL. See Section 10.0 “Parallel
Slave Port” for additional information.
PORTD is also multiplexed with the analog comparator
module and the ECCP module.
EXAMPLE 9-4:
INITIALIZING PORTD
FIGURE 9-9:
PORTD BLOCK DIAGRAM IN I/O PORT MODE
Note:
This
port
is
only
available
on
the
PIC18F448 and PIC18F458.
CLRF
PORTD
; Initialize PORTD by
; clearing output
; data latches
CLRF
LATD
; Alternate method
; to clear output
; data latches
MOVLW
07h
; comparator off
MOVWF
CMCON
MOVLW
0CFh
; Value used to
; initialize data
; direction
MOVWF
TRISD
; Set RD3:RD0 as inputs
; RD5:RD4 as outputs
; RD7:RD6 as inputs
PORT/PSP Select
Data Bus
WR LATD
WR TRISD
Data Latch
TRIS Latch
RD TRISD
Q
D
Q
CK
QD
EN
Q
D
Q
CK
P
N
VDD
Vss
RD PORTD
RD0/PSP0/
or
PORTD
RD LATD
Schmitt
Trigger
Note
1: I/O pins have diode protection to VDD and VSS.
PSP Data Out
PSP Write
PSP Read
C1IN+
C1IN+ pin(1)
相關(guān)PDF資料
PDF描述
AIUR-07-221K INDUCTOR POWER 220UH 10% T/H
MAX8903CETI+ IC DC/DC CHARGER LI+ 2A 28-TQFN
MAX11080GUU/V+T IC LI/BATTERY MANAGEMENT 38TSSOP
MAX11081GUU+T IC FAULT MON BATT 12CH 38-TSSOP
MAX11081GUU/V+T IC FAULT MON BATT 12CH 38TSSOP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
DM164135 制造商:Microchip Technology Inc 功能描述:KIT, ONEPIC DEMO BOARD, PLUS PICKIT 3 制造商:Microchip Technology Inc 功能描述:KIT, ONEPIC DEMO BOARD, PLUS PICKIT 3; SVHC:No SVHC (19-Dec-2012) ;RoHS Compliant: Yes 制造商:Microchip Technology Inc 功能描述:One PIC MCU Platform Board with PICkit 3
DM164135 制造商:Microchip Technology Inc 功能描述:PICKIT 3 IN-CIRCUIT DEBUGGER
DM173001 功能描述:開發(fā)板和工具包 - PIC / DSPIC PICDEM 17 PIC17CXX RoHS:否 制造商:Microchip Technology 產(chǎn)品:Starter Kits 工具用于評估:chipKIT 核心:Uno32 接口類型: 工作電源電壓:
DM180021 功能描述:開發(fā)板和工具包 - PIC / DSPIC PIC18 Starter Kit RoHS:否 制造商:Microchip Technology 產(chǎn)品:Starter Kits 工具用于評估:chipKIT 核心:Uno32 接口類型: 工作電源電壓:
DM1800-434MB 功能描述:射頻模塊 DM1800 Base Station 433.92 MHz RoHS:否 制造商:Linx Technologies 產(chǎn)品:Transceiver Modules 頻帶:902 MHz to 928 MHz 輸出功率:- 15.5 dBm to + 12.5 dBm 接口類型:UART 工作電源電壓:- 0.3 VDC to + 5.5 VDC 傳輸供電電流:38.1 mA 接收供電電流:22.7 mA 天線連接器類型:U.FL 最大工作溫度:+ 85 C 尺寸:1.15 mm x 0.63 mm x 0.131 mm