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

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
PIC16C64A
4. Module: SSP (SPI Mode)
FIGURE 1:
EXAMPLE 1:
5. Module: Timer0
DS80095A-page 2
LOOP BTFSS SSPSTAT, BF
When the SPI is using Timer2/2 as the clock
source, a shorter than expected SCK pulse may
occur on the first bit of the transmitted/received
data (Figure 1).
Work around
To avoid producing the short pulse, turn off Timer2
and clear the TMR2 register, load the SSPBUF
with the data to transmit, and then turn Timer2
back on. Refer to Example 1 for sample code.
The TMR0 register may increment when the WDT
postscaler is switched to the Timer0 prescaler. If
TMR0 = FFh, this will cause TMR0 to overflow
(setting T0IF).
Work around
Follow the following sequence:
a) Read the 8-bit TMR0 register into the
b) Clear the TMR0 register
c) Assign WDT postscaler to Timer0
d) Write W register to TMR0
BSF
GOTO
BCF
MOVF
MOVWF RXDATA
MOVF
BCF
CLR
MOVWF SSPBUF
BSF
SD0
SCK
W register
Write SSPBUF
STATUS, RP0
LOOP
STATUS, RP0
SSPBUF, W
TXDATA, W
T2CON, TMR2ON
TMR2
T2CON, TMR2ON
SCK PULSE VARIATION
USING TIMER2/2
bit0=1 bit1=0 bit2=1 . . . .
AVOIDING THE INITIAL
SHORT SCK PULSE
;Bank 1
;Data received?
;(Xmit complete?)
;No
;Bank 0
;W = SSPBUF
;Save in user RAM
;W = TXDATA
;Timer2 off
;Clear Timer2
;Xmit New data
;Timer2 on
6. Module: Timer1
EXAMPLE 2:
EXAMPLE 3:
EXAMPLE 4:
The Timer1 value may unexpectedly increment if
either the TMR1H, or the TMR1L register is writ-
ten. If Timer1 is ON and then turned OFF, perform-
ing any write instruction with TMR1H as the
destination, may cause TMR1L to increment.
If Timer1 is ON and then turned OFF when
TMR1H:TMR1L = xx:FF, performing any write
instruction with TMR1L as the destination, may
cause TMR1H to increment.
Work around
To preserve Timer1 register values:
a) Read Timer1 register values into “shadow”
b) Perform any write instruction(s) on the
c) Write the shadow register values back into
BSF T1CON, TMR1ON
BCF T1CON, TMR1ON
MOVF TMR1H, 1
TMR1 value before MOVF instruction:
TMR1 value after MOVF instruction:
BSF T1CON, TMR1ON
BCF T1CON, TMR1ON
CLRF TMR1L
TMR1 value before CLRF instruction:
TMR1 value after CLRF instruction:
(TMR1IF is not set.)
BSF T1CON, TMR1ON
BCF T1CON, TMR1ON
MOVF TMR1H, 1
TMR1 value before MOVF instruction:
TMR1 value after MOVF instruction:
registers.
shadow registers.
the Timer1 registers.
TMR1H:TMR1L = FF:FF
TMR1H:TMR1L = FF:00
TMR1H:TMR1L = FF:FF
TMR1H:TMR1L = 00:00
TMR1H:TMR1L = 3F:00
TMR1H:TMR1L = 3F:01
:
:
TMR1L INCREMENT
(CASE 1)
TMR1L INCREMENT
(CASE 2)
TMR1H INCREMENT
 2001 Microchip Technology Inc.

Related parts for PIC16C64A-04/P