PIC16C64A-04/P Microchip Technology, PIC16C64A-04/P Datasheet - Page 51

IC MCU OTP 2KX14 PWM 40DIP

PIC16C64A-04/P

Manufacturer Part Number
PIC16C64A-04/P
Description
IC MCU OTP 2KX14 PWM 40DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C64A-04/P

Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Core Processor
PIC
Speed
4MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
40-DIP (0.600", 15.24mm)
Controller Family/series
PIC16C
No. Of I/o's
33
Ram Memory Size
128Byte
Cpu Speed
4MHz
No. Of Timers
3
No. Of Pwm Channels
1
Embedded Interface Type
I2C, SPI
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
444-1001 - DEMO BOARD FOR PICMICRO MCU
Eeprom Size
-
Data Converters
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
PIC16C64A-04/PR
PIC16C64A-04/PR

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C64A-04/P
Manufacturer:
NXP
Quantity:
101
Part Number:
PIC16C64A-04/PQ
Manufacturer:
MICROCHIP
Quantity:
1 500
Part Number:
PIC16C64A-04/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C64A-04/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C64A-04/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
5.0
Some pins for these I/O ports are multiplexed with an
alternate function(s) for the peripheral features on the
device. In general, when a peripheral is enabled, that
pin may not be used as a general purpose I/O pin.
5.1
All devices have a 6-bit wide PORTA, except for the
PIC16C61 which has a 5-bit wide PORTA.
Pin RA4/T0CKI is a Schmitt Trigger input and an open
drain output. All other RA port pins have TTL input lev-
els and full CMOS output drivers. All pins have data
direction bits (TRIS registers) which can configure
these pins as output or input.
Setting a bit in the TRISA register puts the correspond-
ing output driver in a hi-impedance mode. Clearing a bit
in the TRISA register puts the contents of the output
latch on the selected pin.
Reading PORTA register reads the status of the pins
whereas writing to it will write to the port latch. All write
operations are read-modify-write operations. There-
fore, a write to a port implies that the port pins are read,
this value is modified, and then written to the port data
latch.
Pin RA4 is multiplexed with Timer0 module clock input
to become the RA4/T0CKI pin.
EXAMPLE 5-1:
BCF
BCF
CLRF
BSF
MOVLW
MOVWF
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
1997 Microchip Technology Inc.
STATUS, RP0
STATUS, RP1
PORTA
STATUS, RP0
0xCF
TRISA
I/O PORTS
PORTA and TRISA Register
INITIALIZING PORTA
;
; PIC16C66/67 only
; Initialize PORTA by
; clearing output
; data latches
; Select Bank 1
; Value used to
; initialize data
; direction
; Set RA<3:0> as inputs
; RA<5:4> as outputs
; TRISA<7:6> are always
; read as '0'.
FIGURE 5-1:
FIGURE 5-2:
Data
bus
WR
Port
WR
TRIS
RD PORT
Note 1: I/O pins have protection diodes to V
Data
bus
WR
TRIS
WR
PORT
RD PORT
Note 1: I/O pin has protection diodes to V
TMR0 clock input
2: The PIC16C61 does not have an RA5 pin.
V
D
D
Data Latch
TRIS Latch
SS
CK
CK
TRIS Latch
.
Data Latch
D
D
CK
CK
RD TRIS
BLOCK DIAGRAM OF THE
RA3:RA0 PINS AND THE RA5
PIN
BLOCK DIAGRAM OF THE
RA4/T0CKI PIN
Q
Q
Q
Q
RD TRIS
Q
Q
Q
Q
Q
PIC16C6X
Q
EN
Schmitt
Trigger
input
buffer
EN
EN
D
DS30234D-page 51
D
TTL
input
buffer
V
N
SS
V
V
P
N
SS
DD
SS
DD
I/O pin
only.
and
I/O pin
(1)
(1)

Related parts for PIC16C64A-04/P