參數(shù)資料
型號: PIC16CR7X
廠商: Microchip Technology Inc.
英文描述: 28/40-Pin, 8-Bit CMOS ROM Microcontrollers
中文描述: 28/40-Pin,8位微控制器的CMOS光盤
文件頁數(shù): 37/172頁
文件大?。?/td> 1506K
代理商: PIC16CR7X
2007 Microchip Technology Inc.
DS21993C-page 35
PIC16CR7X
4.3
PORTC and the TRISC Register
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-Impendance 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).
PORTC is multiplexed with several peripheral functions
(Table 4-5). PORTC 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. Since the TRIS bit override is
in effect while the peripheral is enabled, read-modify-
write instructions (
BSF, BCF, XORWF
) with TRISC as
destination should be avoided. The user should refer to
the corresponding peripheral section for the correct
TRIS bit settings, and to
Section 13.1 “READ-MOD-
IFY-WRITE OPERATIONS”
for additional information
on read-modify-write operations.
FIGURE 4-5:
PORTC BLOCK DIAGRAM
(PERIPHERAL OUTPUT
OVERRIDE)
TABLE 4-5:
PORTC FUNCTIONS
TABLE 4-6:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Port/Peripheral Select
(2)
Data Bus
WR Port
WR TRIS
RD Port
Data Latch
TRIS Latch
RD TRIS
Schmitt
Trigger
Q
D
Q
CK
Q
D
EN
Peripheral Data Out
0
1
Q
D
Q
CK
P
N
V
DD
V
SS
Peripheral
OE
(3)
Peripheral Input
Note
1:
2:
I/O pins have diode protection to V
DD
and V
SS
.
Port/Peripheral select signal selects between PORT
data and peripheral output.
Peripheral OE (output enable) is only activated if
peripheral select is active.
3:
I/O
pin
(1)
Name
Bit#
Buffer Type
Function
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
bit 0
bit 1
ST
ST
Input/output port pin or Timer1 oscillator output/Timer1 clock input.
Input/output port pin or Timer1 oscillator input or Capture2 input/
Compare2 output/PWM2 output.
Input/output port pin or Capture1 input/Compare1 output/PWM1 output.
RC3 can also be the synchronous serial clock for both SPI and I
2
C
modes.
RC4 can also be the SPI Data In (SPI mode) or Data I/O (I
2
C mode).
Input/output port pin or Synchronous Serial Port data output.
Input/output port pin or USART Asynchronous Transmit or
Synchronous Clock.
Input/output port pin or USART Asynchronous Receive or
Synchronous Data.
RC2/CCP1
RC3/SCK/SCL
bit 2
bit 3
ST
ST
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
bit 4
bit 5
bit 6
ST
ST
ST
RC7/RX/DT
bit 7
ST
Legend:
ST = Schmitt Trigger input
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR,
BOR
Value on
all other
Resets
07h
87h
Legend:
PORTC
TRISC
x
= unknown,
u
= unchanged
RC7
PORTC Data Direction Register
RC6
RC5
RC4
RC3
RC2
RC1
RC0
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
相關(guān)PDF資料
PDF描述
PIC16F628A 18-pin Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology(18引腳,基于FLASH的8位CMOS微控制器,使用毫微瓦特技術(shù))
PIC16F687 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F685 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F689 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F690 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16CR83T-04/SO023 制造商:Microchip Technology Inc 功能描述:
PIC16F 制造商:Microchip Technology Inc 功能描述:Microchip PIC16F677-I/P Microcontroller
PIC16F1454-E/ML 制造商:Microchip Technology Inc 功能描述:7 KB FLASH, 512 BYTES RAM, 48 MHZ INT. OSC, 12 I/0, ENHANCED - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC MCU 8BIT 7KB FLASH 16QFN
PIC16F1454-E/P 制造商:Microchip Technology Inc 功能描述:7 KB FLASH, 512 BYTES RAM, 48 MHZ INT. OSC, 12 I/0, ENHANCED - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC MCU 8BIT 7KB FLASH 14PDIP
PIC16F1454-E/SL 制造商:Microchip Technology Inc 功能描述:7 KB FLASH, 512 BYTES RAM, 48 MHZ INT. OSC, 12 I/0, ENHANCED - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC MCU 8BIT 7KB FLASH 14SOIC