PIC16C72-04E/SP Microchip Technology, PIC16C72-04E/SP Datasheet - Page 23
![IC MCU OTP 2KX14 A/D PWM 28DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC16C72-04E/SP
Manufacturer Part Number
PIC16C72-04E/SP
Description
IC MCU OTP 2KX14 A/D PWM 28DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC16C72-04SO.pdf
(289 pages)
4.PIC16C72-04SO.pdf
(125 pages)
5.PIC16C72-04SO.pdf
(8 pages)
Specifications of PIC16C72-04E/SP
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Data Converters
A/D 5x8b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
3.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 3-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 out-
put, 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.
EXAMPLE 3-1:
BCF
CLRF
BSF
MOVLW
MOVWF
1998 Microchip Technology Inc.
STATUS, RP0
PORTC
STATUS, RP0
0xCF
TRISC
PORTC and the TRISC Register
INITIALIZING PORTC
; Select Bank 0
; Initialize PORTC by
; clearing output
; data latches
; Select Bank 1
; Value used to
; initialize data
; direction
; Set RC<3:0> as inputs
; RC<5:4> as outputs
; RC<7:6> as inputs
Preliminary
FIGURE 3-5:
Peripheral Data Out
Data bus
Note 1: I/O pins have diode protection to V
PORT/PERIPHERAL Select
Peripheral input
Peripheral
OE
WR
TRIS
WR
PORT
(3)
2: Port/Peripheral select signal selects between port
3: Peripheral OE (output enable) is only activated if
data and peripheral output.
peripheral select is active.
RD
PORT
PIC16C72 Series
TRIS Latch
Data Latch
D
D
RD TRIS
CK
CK
PORTC BLOCK DIAGRAM
(PERIPHERAL OUTPUT
OVERRIDE)
Q
Q
Q
Q
0
1
(2)
Q
EN
D
DS39016A-page 23
Schmitt
Trigger
DD
V
V
N
P
and V
SS
DD
I/O
pin
SS
(1)
.