PIC16C65A-20I/PT Microchip Technology, PIC16C65A-20I/PT Datasheet - Page 2
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC16C65A-20I/PT
Manufacturer Part Number
PIC16C65A-20I/PT
Description
IC MCU OTP 4KX14 PWM 44TQFP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC16LC62A-04SP.pdf
(337 pages)
4.PIC16C65A-20P.pdf
(8 pages)
5.PIC16C65A-20P.pdf
(4 pages)
Specifications of PIC16C65A-20I/PT
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
192 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C65A-20I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16C65A
4. Module: SSP (SPI Mode)
FIGURE 1:
EXAMPLE 1:
5. Module: Timer0
DS80096A-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.