參數(shù)資料
型號: PCM18XT0
廠商: Microchip Technology
文件頁數(shù): 53/183頁
文件大?。?/td> 0K
描述: MODULE PROC PIC18F4685
標(biāo)準(zhǔn)包裝: 1
附件類型: 處理器模塊
適用于相關(guān)產(chǎn)品: ICE2000
產(chǎn)品目錄頁面: 658 (CN2011-ZH PDF)
配用: ICE2000-ND - EMULATOR MPLAB-ICE 2000 POD
相關(guān)產(chǎn)品: DVA18XP400-ND - DEVICE ADAPTER 18F4220 PDIP 40LD
DVA18XP280-ND - DEVICE ADAPTER 18F2220 PDIP 28LD
DVA18PQ440-ND - DEVICE ADAPTER 18F4220 TQFP 44LD
第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頁當(dāng)前第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頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁
PIC18F46J50 FAMILY
DS39931D-page 146
2011 Microchip Technology Inc.
10.5
PORTD, TRISD and LATD
Registers
PORTD is an 8-bit wide, bidirectional port. The corre-
sponding Data Direction register 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).
The Data Latch register (LATD) is also memory
mapped. Read-modify-write operations on the LATD
register read and write the latched output value for
PORTD.
All pins on PORTD are implemented with Schmitt Trigger
input buffers. Each pin is individually configurable as an
input or an output.
EXAMPLE 10-5:
INITIALIZING PORTD
Each of the PORTD pins has a weak internal pull-up. A
single control bit can turn on all the pull-ups. This is per-
formed by setting bit, RDPU (PORTE<7>). The weak
pull-up is automatically turned off when the port pin is
configured as an output. The pull-ups are disabled on a
POR. The integrated weak pull-ups consist of a semi-
conductor structure similar to, but somewhat different,
from a discrete resistor. On an unloaded I/O pin, the
weak pull-ups are intended to provide logic high indica-
tion, but will not necessarily pull the pin all the way to
VDD levels.
Note that the pull-ups can be used for any set of
features, similar to the pull-ups found on PORTB.
Note:
PORTD is available only on 44-pin devices.
Note:
On a POR, these pins are configured as
digital inputs.
CLRF
LATD
;Initialize output data
;levels for output pins
MOVLW
0x7F
;Example value used to
;initialize data direction
MOVWF
TRISD
;RD0-RD6 as inputs
;RD7 as output
TABLE 10-9:
PORTD I/O SUMMARY
Pin
Function
TRIS
Setting
I/O
Type
Description
RD0/PMD0/
SCL2
RD0
1
I
ST
PORTD<0> data input.
0
O
DIG
LATD<0> data output.
PMD0
1
I
ST/TTL Parallel Master Port data in.
0
O
DIG
Parallel Master Port data out.
SCL2
1
II2C/
SMB
I2C clock input (MSSP2 module); input type depends on
module setting.
0
OI2CI2C clock output (MSSP2 module); takes priority over port data.
RD1/PMD1/
SDA2
RD1
1
I
ST
PORTD<1> data input.
0
O
DIG
LATD<1> data output.
PMD1
1
I
ST/TTL Parallel Master Port data in.
0
O
DIG
Parallel Master Port data out.
SDA2
1
II2C/
SMB
I2C data input (MSSP2 module); input type depends on
module setting.
0
OI2CI2C data output (MSSP2 module); takes priority over port data.
RD2/PMD2/
RP19
RD2
1
I
ST
PORTD<2> data input.
0
O
DIG
LATD<2> data output.
PMD2
1
I
ST/TTL Parallel Master Port data in.
0
O
DIG
Parallel Master Port data out.
RP19
1
I
ST
Remappable Peripheral Pin 19 input.
0
O
DIG
Remappable Peripheral Pin 19 output.
Legend:
DIG = Digital level output; TTL = TTL input buffer; ST = Schmitt Trigger input buffer; I2C/SMB = I2C/SMBus
input buffer; x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
相關(guān)PDF資料
PDF描述
MAX6220ASA-5.0+T IC VREF SERIES PREC 5V 8-SOIC
RPP20-4824DW-F CONV DC/DC 20W 18-75VIN +/-24VOU
GCC31DCSH-S288 CONN EDGECARD 62POS .100 EXTEND
XRP2525ID-1-F IC PWR SW USB 3.0 SINGLE NSOIC8
PCM16XV0 PROCESSOR MODULE FOR 16F8XXA
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PCM-19 功能描述:電線鑒定 1.5" VINYL CLOTH #19 RoHS:否 制造商:TE Connectivity / Q-Cees 產(chǎn)品:Labels and Signs 類型: 材料:Vinyl 顏色:Blue 寬度:0.625 in 長度:1 in
PCM-1-9 制造商:Panduit Corp 功能描述:Cable Markers Vinyl Cloth White 制造商:Panduit Corp 功能描述:CBL ACC WIRE MARKER CARD VINYL CLOTH BLK/WHITE - Labels that come on sheets or rolls
PCM-190 功能描述:電線鑒定 Pre-Printed WM Card, Vinyl Cloth, .22" W RoHS:否 制造商:TE Connectivity / Q-Cees 產(chǎn)品:Labels and Signs 類型: 材料:Vinyl 顏色:Blue 寬度:0.625 in 長度:1 in
PCM-1900-06 制造商:PREMIER FARNELL 功能描述:6 NULL MODEM DB25 M/F CABLE
PCM-1900-1924 制造商:Panduit Corp 功能描述: