參數(shù)資料
型號(hào): PCM18XT0
廠商: Microchip Technology
文件頁數(shù): 50/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頁當(dāng)前第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頁第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頁
2011 Microchip Technology Inc.
DS39931D-page 143
PIC18F46J50 FAMILY
10.4
PORTC, TRISC and LATC
Registers
PORTC is an 8-bit wide, bidirectional port. The corre-
sponding Data Direction register is TRISC. Setting a
TRISC bit (= 1) will make the corresponding PORTC
pin an input (i.e., put the corresponding output driver in
a High-Impedance mode). Clearing a TRISC bit (= 0)
will make the corresponding PORTC pin an output (i.e.,
put the contents of the output latch on the selected pin).
The Data Latch register (LATC) is also memory
mapped. Read-modify-write operations on the LATC
register read and write the latched output value for
PORTC.
PORTC is multiplexed with several peripheral functions
(see Table 10-7). The pins have Schmitt Trigger input
buffers.
When enabling peripheral functions, care should be
taken in defining TRIS bits for each PORTC pin. Some
peripherals override the TRIS bit to make a pin an output,
while other peripherals override the TRIS bit to make a
pin an input. The user should refer to the corresponding
peripheral section for additional information.
Pins, RC4 and RC5, are multiplexed with the USB
module. Depending on the configuration of the module,
they can serve as the differential data lines for the on-
chip USB transceiver, or the data inputs from an external
USB transceiver. When used as general purpose inputs,
both RC4 and RC5 input buffers depend on the level of
the voltage applied to the VUSB pin, instead of VDD, like
all other general purpose I/O pins. Therefore, if the RC4
or RC5 general purpose input capability will be used, the
VUSB pin should not be left floating.
Unlike other PORTC pins, RC4 and RC5 do not have
TRISC bits associated with them. As digital ports, they
can only function as digital inputs. When configured for
USB operation, the data direction is determined by the
configuration and status of the USB module at a given
time. If an external transceiver is used, RC4 and RC5
always function as inputs from the transceiver. If the on-
chip transceiver is used, the data direction is determined
by the operation being performed by the module at that
time.
The contents of the TRISC register are affected by
peripheral overrides. Reading TRISC always returns
the current contents, even though a peripheral device
may be overriding one or more of the pins.
EXAMPLE 10-4:
INITIALIZING PORTC
Note:
On a Power-on Reset, PORTC pins
(except RC2, RC4 and RC5) are config-
ured as digital inputs. RC2 will default as
an analog input (controlled by the
ANCON1 register). To use pins, RC4 and
RC5, as digital inputs, the USB module
must be disabled (UCON<3> = 0) and the
on-chip USB transceiver must be dis-
abled (UCFG<3> = 1). The internal USB
transceiver has a POR value of enabled.
CLRF
LATC
; Initialize output data
; latch values for logic
; output low value.
MOVLB
0x0F
; ANCONx registers are
; not in access bank
;Configure RC2/AN11 for digital input mode
BSF
ANCON1, PCFG11, BANKED
;Disable USB transceiver to use RC4/RC5 as
;general purpose inputs
BCF
UCON, USBEN
;Disable USB module
BSF
UCFG, UTRDIS
;Disable USB transceiver
MOVLW
0x3F
; RC0 configured as digital input
MOVWF
TRISC
; RC1 configured as digital input
; RC2 configured as digital input
; RC4 configured as digital input
; RC5 configured as digital input
; RC6 configured as digital output
; RC7 configured as digital output
相關(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 功能描述: