PIC16F74-I/P Microchip Technology Inc., PIC16F74-I/P Datasheet - Page 37

no-image

PIC16F74-I/P

Manufacturer Part Number
PIC16F74-I/P
Description
40 PIN, 7 KB FLASH, 192 RAM, 33 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F74-I/P

A/d Inputs
8-Channel, 8-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
33
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
7K Bytes
Ram Size
192 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F74-I/P
Manufacturer:
MAXIM
Quantity:
101
Part Number:
PIC16F74-I/P
Manufacturer:
MICROCHIP
Quantity:
50
Part Number:
PIC16F74-I/P
Quantity:
2 143
Part Number:
PIC16F74-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F74-I/P
0
Company:
Part Number:
PIC16F74-I/P
Quantity:
2 400
Part Number:
PIC16F74-I/PT
Manufacturer:
MIC
Quantity:
50
Part Number:
PIC16F74-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F74-I/PT
0
4.3
PORTC is an 8-bit wide, bi-directional 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 Hi-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).
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
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 for
additional information on read-modify-write operations.
TABLE 4-5:
TABLE 4-6:
 2002 Microchip Technology Inc.
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
RC7/RX/DT
Legend: ST = Schmitt Trigger input
07h
87h
Legend: x = unknown, u = unchanged
Address
effect
Name
PORTC and the TRISC Register
PORTC
TRISC
Name
while
PORTC FUNCTIONS
SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
PORTC Data Direction Register
the
Bit 7
RC7
Bit#
bit1
bit2
bit5
bit6
bit7
bit0
bit3
bit4
peripheral
Bit 6
RC6
Buffer Type
ST
ST
ST
ST
ST
ST
ST
ST
Bit 5
RC5
is
enabled,
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.
modes.
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.
RC3 can also be the synchronous serial clock for both SPI and I
RC4 can also be the SPI Data In (SPI mode) or Data I/O (I
Bit 4
RC4
Bit 3
RC3
FIGURE 4-5:
Port/Peripheral Select
Peripheral Data Out
Data Bus
WR Port
WR TRIS
RD TRIS
Peripheral
OE
RD Port
Peripheral Input
Note 1: I/O pins have diode protection to V
Bit 2
RC2
(3)
2: Port/Peripheral select signal selects between port data
3: Peripheral OE (output enable) is only activated if
and peripheral output.
peripheral select is active.
Bit 1
RC1
TRIS Latch
Data Latch
Function
D
D
CK
CK
(2)
Q
Q
Q
Q
Bit 0
RC0
PORTC BLOCK DIAGRAM
(PERIPHERAL OUTPUT
OVERRIDE)
0
1
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
Value on:
PIC16F7X
Q
POR,
BOR
EN
D
DD
DS30325B-page 35
and V
Schmitt
Trigger
2
C mode).
Value on
RESETS
all other
V
SS
V
N
P
SS
DD
.
2
C
pin
I/O
(1)

Related parts for PIC16F74-I/P