PIC16C72A
PIC16C72A
PIC16C72A
• 2K x 14 words of Program Memory, RA3/AN3/VREF 5 24 RB3
RA4/T0CKI 6 23 RB2
128 x 8 bytes of Data Memory (RAM) RA5/SS/AN4 7 22 RB1
• Interrupt capability VSS 8 21 RB0/INT
OSC1/CLKIN 9 20 VDD
• Eight level deep hardware stack OSC2/CLKOUT 10 19 VSS
• Direct, indirect, and relative addressing modes RC0/T1OSO/T1CKI 11 18 RC7
RC1/T1OSI 12 17 RC6
• Power-on Reset (POR) RC2/CCP1 13 16 RC5/SDO
RC3/SCK/SCL 14 15 RC4/SDI/SDA
• Power-up Timer (PWRT) and
Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation Peripheral Features:
• Brown-out detection circuitry for • Timer0: 8-bit timer/counter with 8-bit prescaler
Brown-out Reset (BOR) • Timer1: 16-bit timer/counter with prescaler,
• Programmable code-protection can be incremented during sleep via external
• Power saving SLEEP mode crystal/clock
• Selectable oscillator options • Timer2: 8-bit timer/counter with 8-bit period
• Low-power, high-speed CMOS EPROM register, prescaler and postscaler
technology • Capture, Compare, PWM module
• Fully static design • Capture is 16-bit, max. resolution is 12.5 ns,
• In-Circuit Serial Programming(ICSP) Compare is 16-bit, max. resolution is 200 ns,
PWM maximum resolution is 10-bit
• Wide operating voltage range: 2.5V to 5.5V
• 8-bit multi-channel Analog-to-Digital converter
• High Sink/Source Current 25/25 mA
• Synchronous Serial Port (SSP) with Enhanced
• Commercial, Industrial and Extended temperature
SPI and I2C
ranges
• Low-power consumption:
- < 2 mA @ 5V, 4 MHz
- 22.5 A typical @ 3V, 32 kHz
- < 1 A typical standby current
MCLR/VPP •1 28 RB7
RA0 2 27 RB6
RA1 3 26 RB5
RA2 4 25 RB4
PIC16C62B
RA3 5 24 RB3
RA4/T0CKI 6 23 RB2
RA5/SS 7 22 RB1
VSS 8 21 RB0/INT
OSC1/CLKIN 9 20 VDD
OSC2/CLKOUT 10 19 VSS
RC0/T1OSO/T1CKI 11 18 RC7
RC1/T1OSI 12 17 RC6
RC2/CCP1 13 16 RC5/SDO
RC3/SCK/SCL 14 15 RC4/SDI/SDA
Key Features
PIC16C62B PIC16C72A
PIC® Mid-Range Reference Manual (DS33023)
STATUS reg
8 PORTC
RC0/T1OSO/T1CKI
RC1/T1OSI
3 RC2/CCP1
Power-up MUX
RC3/SCK/SCL
Timer
RC4/SDI/SDA
Instruction Oscillator RC5/SDO
Decode & Start-up Timer RC6
ALU
Control RC7
Power-on
Reset 8
Timing Watchdog
Generation Timer W reg
OSC1/CLKIN Brown-out
OSC2/CLKOUT Reset
Synchronous
CCP1 Serial Port A/D(2)
RA3/AN3/VREF (4) 5 5 I/O TTL RA3 can also be analog input 3 or analog reference voltage
RA4/T0CKI 6 6 I/O ST RA4 can also be the clock input to the Timer0 module.
Output is open drain type.
RA5/SS/AN4(4) 7 7 I/O TTL RA5 can also be analog input 4 or the slave select for the
synchronous serial port.
PORTB is a bi-directional I/O port. PORTB can be software
programmed for internal weak pull-up on all inputs.
RB0/INT 21 21 I/O TTL/ST(1) RB0 can also be the external interrupt pin.
RB1 22 22 I/O TTL
RB2 23 23 I/O TTL
RB3 24 24 I/O TTL
RB4 25 25 I/O TTL Interrupt on change pin.
RB5 26 26 I/O TTL Interrupt on change pin.
RB6 27 27 I/O TTL/ST(2) Interrupt on change pin. Serial programming clock.
RB7 28 28 I/O TTL/ST(2) Interrupt on change pin. Serial programming data.
PORTC is a bi-directional I/O port.
RC0/T1OSO/T1CKI 11 11 I/O ST RC0 can also be the Timer1 oscillator output or Timer1
clock input.
RC1/T1OSI 12 12 I/O ST RC1 can also be the Timer1 oscillator input.
RC2/CCP1 13 13 I/O ST RC2 can also be the Capture1 input/Compare1 output/
PWM1 output.
RC3/SCK/SCL 14 14 I/O ST RC3 can also be the synchronous serial clock input/output
for both SPI and I2C modes.
RC4/SDI/SDA 15 15 I/O ST RC4 can also be the SPI Data In (SPI mode) or
data I/O (I2C mode).
RC5/SDO 16 16 I/O ST RC5 can also be the SPI Data Out (SPI mode).
RC6 17 17 I/O ST
RC7 18 18 I/O ST
VSS 8, 19 8, 19 P — Ground reference for logic and I/O pins.
VDD 20 20 P — Positive supply for logic and I/O pins.
Legend: I = input O = output I/O = input/output P = power or program
— = Not used TTL = TTL input ST = Schmitt Trigger input
Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt.
2: This buffer is a Schmitt Trigger input when used in serial programming mode.
3: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise.
4: The A/D module is not available on the PIC16C62B.
User Memory
at 0004h. 0004h
0005h
Space
On-chip Program
Memory
07FFh
0800h
1FFFh
Bank 0
00h INDF(1) Addressing this location uses contents of FSR to address data memory (not a physical register) 0000 0000 0000 0000
02h PCL(1) Program Counter's (PC) Least Significant Byte 0000 0000 0000 0000
03h STATUS(1) IRP(5) RP1(5) RP0 TO PD Z DC C 0001 1xxx 000q quuu
04h FSR(1) Indirect data memory address pointer xxxx xxxx uuuu uuuu
05h PORTA(6,7) — — PORTA Data Latch when written: PORTA pins when read --0x 0000 --0u 0000
06h PORTB(6,7) PORTB Data Latch when written: PORTB pins when read xxxx xxxx uuuu uuuu
07h PORTC(6,7) PORTC Data Latch when written: PORTC pins when read xxxx xxxx uuuu uuuu
08h-09h — Unimplemented — —
0Ah PCLATH(1,2) — — — Write Buffer for the upper 5 bits of the Program Counter ---0 0000 ---0 0000
0Bh INTCON(1) GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
(3)
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -0-- 0000 -0-- 0000
0Dh — Unimplemented — —
0Eh TMR1L Holding register for the Least Significant Byte of the 16-bit TMR1 register xxxx xxxx uuuu uuuu
0Fh TMR1H Holding register for the Most Significant Byte of the 16-bit TMR1 register xxxx xxxx uuuu uuuu
10h T1CON — — T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON --00 0000 --uu uuuu
12h T2CON — TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
13h SSPBUF Synchronous Serial Port Receive Buffer/Transmit Register xxxx xxxx uuuu uuuu
14h SSPCON WCOL SSPOV SSPEN CKP SSPM3 SSPM2 SSPM1 SSPM0 0000 0000 0000 0000
17h CCP1CON — — CCP1X CCP1Y CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
18h-1Dh — Unimplemented — —
1Fh ADCON0(3) ADCS1 ADCS0 CHS2 CHS1 CHS0 GO/DONE — ADON 0000 00-0 0000 00-0
Legend: x = unknown, u = unchanged, q = value depends on condition, - = unimplemented, read as '0',
Shaded locations are unimplemented, read as '0'.
Note 1: These registers can be addressed from either bank.
2: The upper byte of the program counter is not directly accessible. PCLATH is a holding register for PC<12:8> whose contents
are transferred to the upper byte of the program counter.
3: A/D not implemented on the PIC16C62B, maintain as ’0’.
4: Other (non power-up) resets include: external reset through MCLR and the Watchdog Timer Reset.
5: The IRP and RP1 bits are reserved. Always maintain these bits clear.
6: On any device reset, these pins are configured as inputs.
7: This is the value that will be in the port output latch.
Bank 1
80h INDF(1) Addressing this location uses contents of FSR to address data memory (not a physical register) 0000 0000 0000 0000
81h OPTION_REG RBPU INTEDG T0CS T0SE PSA PS2 PS1 PS0 1111 1111 1111 1111
82h PCL(1) Program Counter's (PC) Least Significant Byte 0000 0000 0000 0000
85h TRISA — — PORTA Data Direction Register --11 1111 --11 1111
86h TRISB PORTB Data Direction Register 1111 1111 1111 1111
87h TRISC PORTC Data Direction Register 1111 1111 1111 1111
88h-89h — Unimplemented — —
(1,2)
8Ah PCLATH — — — Write Buffer for the upper 5 bits of the Program Counter ---0 0000 ---0 0000
8Bh INTCON(1) GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
8Dh — Unimplemented — —
8Fh-91h — Unimplemented — —
93h SSPADD Synchronous Serial Port (I2C mode) Address Register 0000 0000 0000 0000
94h SSPSTAT SMP CKE D/A P S R/W UA BF 0000 0000 0000 0000
95h-9Eh — Unimplemented — —
Note: For borrow, the polarity is reversed. A subtraction is executed by adding the two’s complement of the
second operand. For rotate (RRF, RLF) instructions, this bit is loaded with either the high or low order bit of
the source register.
Note 1: The PIC16C62B does not have an A/D module. This bit location is reserved on these devices. Always maintain this
bit clear.
Note 1: The PIC16C62B does not have an A/D module. This bit location is reserved on these devices. Always maintain this
bit clear.
not used
Data (2) (2)
Memory
D Q N I/O pin(1)
PORTA is a 6-bit wide bi-directional port. The corre-
sponding data direction register is TRISA. Setting a WR
TRISA bit (=1) will make the corresponding PORTA pin TRIS
CK Q VSS
an input, i.e., put the corresponding output driver in a Analog
hi-impedance mode. Clearing a TRISA bit (=0) will input
TRIS Latch mode
make the corresponding PORTA pin an output, (i.e., put
(72A
the contents of the output latch on the selected pin). only)
The PORTA register reads the state of the pins, RD TRIS TTL
whereas writing to it will write to the port latch. All write input
operations are read-modify-write operations. There- buffer
Q D
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.
EN
Pin RA4 is multiplexed with the Timer0 module clock
input to become the RA4/T0CKI pin. The RA4/T0CKI RD PORT
pin is a Schmitt Trigger input and an open drain output.
All other RA port pins have TTL input levels and full
CMOS output drivers. To A/D Converter (72A only)
Pin RA5 is multiplexed with the SSP to become the Note 1: I/O pins have protection diodes to VDD and
RA5/SS pin. VSS.
On the PIC16C72A device, other PORTA pins are mul-
tiplexed with analog inputs and analog VREF input. The
FIGURE 3-2: BLOCK DIAGRAM OF
operation of each pin is selected by clearing/setting the
control bits in the ADCON1 register (A/D Control
RA4/T0CKI PIN
Register1). Data
Bus D Q
Note: On a Power-on Reset, pins with analog WR
functions are configured as analog inputs PORT
CK Q
with digital input buffers disabled . A digital I/O pin(1)
N
read of these pins will return ’0’. Data Latch
The TRISA register controls the direction of the RA D Q VSS
pins, even when they are being used as analog inputs. WR
The user must ensure the bits in the TRISA register are TRIS CK Q Schmitt
Trigger
maintained set when using them as analog inputs. input
TRIS Latch
buffer
RD TRIS
Q D
EN
EN
RD PORT
05h PORTA — — RA5 RA4 RA3 RA2 RA1 RA0 --0x 0000 --0u 0000
(for PIC16C72A only)
05h PORTA — — RA5 RA4 RA3 RA2 RA1 RA0 --xx xxxx --uu uuuu
(for PIC16C62B only)
85h TRISA — — PORTA Data Direction Register --11 1111 --11 1111
9Fh ADCON1(1) — — — — — PCFG2 PCFG1 PCFG0 ---- -000 ---- -000
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'. Shaded cells are not used by PORTA.
Note 1: The PIC16C62B does not implement the A/D module. Maintain this register clear.
RD TRIS Latch
Q D
RD Port EN Q1
Set RBIF
From other Q D
RB7:RB4 pins RD Port
EN
Q3
RB7:RB6 in serial programming mode
Note 1: I/O pins have diode protection to VDD and VSS.
2: To enable weak pull-ups, set the appropriate TRIS bit(s)
and clear the RBPU bit (OPTION_REG<7>).
06h PORTB RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 xxxx xxxx uuuu uuuu
86h TRISB PORTB Data Direction Register 1111 1111 1111 1111
81h OPTION_REG RBPU INTEDG T0CS T0SE PSA PS2 PS1 PS0 1111 1111 1111 1111
Legend: x = unknown, u = unchanged. Shaded cells are not used by PORTB.
PORT/PERIPHERAL Select(2)
Data Latch
D Q I/O
WR pin(1)
TRIS CK Q N
TRIS Latch
VSS
Schmitt
RD TRIS Trigger
Peripheral
OE(3) Q D
EN
RD
PORT
Peripheral input
Note 1: I/O pins have diode protection to VDD and VSS.
2: Port/Peripheral select signal selects between port
data and peripheral output.
3: Peripheral OE (output enable) is only activated if
peripheral select is active.
Buffer TRISC
Name Bit# Function
Type Override
RC0/T1OSO/T1CKI bit0 ST Input/output port pin or Timer1 oscillator output/Timer1 clock input Yes
RC1/T1OSI bit1 ST Input/output port pin or Timer1 oscillator input Yes
RC2/CCP1 bit2 ST Input/output port pin or Capture1 input/Compare1 output/PWM1 No
output
RC3/SCK/SCL bit3 ST RC3 can also be the synchronous serial clock for both SPI and I2C No
modes.
RC4/SDI/SDA bit4 ST RC4 can also be the SPI Data In (SPI mode) or data I/O (I2C mode). No
RC5/SDO bit5 ST Input/output port pin or Synchronous Serial Port data output No
RC6 bit6 ST Input/output port pin No
RC7 bit7 ST Input/output port pin No
Legend: ST = Schmitt Trigger input
07h PORTC RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0 xxxx xxxx uuuu uuuu
87h TRISC PORTC Data Direction Register 1111 1111 1111 1111
Legend: x = unknown, u = unchanged.
8
M 1
0
RA4/T0CKI U M
X SYNC
pin U 2 TMR0 reg
1 0
X TCY
T0SE
T0CS
PSA Set flag bit T0IF
on Overflow
Prescaler
0
M 8-bit Prescaler
U
Watchdog 1 X 8
Timer
8 - to - 1MUX PS2:PS0
PSA
0 1
WDT Enable bit
MUX PSA
WDT
Time-out
Note 1: When the T1OSCEN bit is cleared, the inverter and feedback resistor are turned off. This eliminates power drain.
TABLE 5-1 CAPACITOR SELECTION FOR Note: The special event trigger from the CCP1
THE TIMER1 OSCILLATOR module will not set interrupt flag bit
TMR1IF (PIR1<0>).
Osc Type Freq C1 C2 Timer1 must be configured for either timer or synchro-
LP 32 kHz 33 pF 33 pF nized counter mode to take advantage of this feature. If
100 kHz 15 pF 15 pF Timer1 is running in asynchronous counter mode, this
reset operation may not work.
200 kHz 15 pF 15 pF
These values are for design guidance only. In the event that a write to Timer1 coincides with a spe-
cial event trigger from CCP1, the write will take prece-
Crystals Tested: dence.
32.768 kHz Epson C-001R32.768K-A 20 PPM In this mode of operation, the CCPR1H:CCPR1L regis-
100 kHz Epson C-2 100.00 KC-P 20 PPM ters pair effectively becomes the period register for
200 kHz STD XTL 200.000 kHz 20 PPM Timer1.
Note 1: Higher capacitance increases the stability
of oscillator but also increases the start-up
time.
2: Since each resonator/crystal has its own
characteristics, the user should consult the
resonator/crystal manufacturer for appropri-
ate values of external components.
TABLE 5-2 REGISTERS ASSOCIATED WITH TIMER1 AS A TIMER/COUNTER
Value on Value on
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 POR, all other
BOR resets
0Bh,8Bh INTCON GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -0-- 0000 -0-- 0000
8Ch PIE1 — ADIE — — SSPIE CCP1IE TMR2IE TMR1IE -0-- 0000 -0-- 0000
0Eh TMR1L Holding register for the Least Significant Byte of the 16-bit TMR1 register xxxx xxxx uuuu uuuu
0Fh TMR1H Holding register for the Most Significant Byte of the 16-bit TMR1 register xxxx xxxx uuuu uuuu
10h T1CON — — T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON --00 0000 --uu uuuu
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by the Timer1 module.
The input clock (FOSC/4) has a prescale option of 1:1, 6.3 Output of TMR2
1:4 or 1:16, selected by control bits
T2CKPS1:T2CKPS0 (T2CON<1:0>). The output of TMR2 (before the postscaler) is fed to the
Synchronous Serial Port module, which optionally uses
The match output of TMR2 goes through a 4-bit post-
it to generate shift clock.
scaler (which gives a 1:1 to 1:16 scaling) to generate a
TMR2 interrupt (latched in flag bit TMR2IF, (PIR1<1>)).
The prescaler and postscaler counters are cleared
when any of the following occurs:
• a write to the TMR2 register
• a write to the T2CON register
• any device reset (Power-on Reset, MCLR reset,
Watchdog Timer reset or Brown-out Reset)
TMR2 is not cleared when T2CON is written.
0Bh,8Bh INTCON GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -00- 0000 0000 0000
8Ch PIE1 — ADIE — — SSPIE CCP1IE TMR2IE TMR1IE -0-- 0000 0000 0000
12h T2CON — TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
92h PR2 Timer2 Period Register 1111 1111 1111 1111
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by the Timer2 module.
In Capture mode, CCPR1H:CCPR1L captures the There are four prescaler settings, specified by bits
16-bit value of the TMR1 register, when an event CCP1M3:CCP1M0. Whenever the CCP module is
occurs on pin RC2/CCP1. An event is defined as: turned off, or the CCP module is not in capture mode,
the prescaler counter is cleared. This means that any
• every falling edge
reset will clear the prescaler counter.
• every rising edge
Switching from one capture prescaler to another may
• every 4th rising edge
generate an interrupt. Also, the prescaler counter will
• every 16th rising edge not be cleared, therefore the first capture may be from
An event is selected by control bits CCP1M3:CCP1M0 a non-zero prescaler. Example 7-1 shows the recom-
(CCP1CON<3:0>). When a capture is made, the inter- mended method for switching between capture pres-
rupt request flag bit ,CCP1IF (PIR1<2>), is set. It must calers. This example also clears the prescaler counter
be cleared in software. If another capture occurs before and will not generate the “false” interrupt.
the value in register CCPR1 is read, the old captured
value will be lost. EXAMPLE 7-1: CHANGING BETWEEN
CAPTURE PRESCALERS
FIGURE 7-1: CAPTURE MODE OPERATION CLRF CCP1CON ;Turn CCP module off
BLOCK DIAGRAM MOVLW NEW_CAPT_PS ;Load the W reg with
; the new prescaler
Set flag bit CCP1IF ; mode value and CCP ON
Prescaler (PIR1<2>)
MOVWF CCP1CON ;Load CCP1CON with this
1, 4, 16 ; value
RC2/CCP1 CCPR1H CCPR1L
Pin
and Capture
edge detect Enable
TMR1H TMR1L
CCP1CON<3:0>
Q’s
In Compare mode, the 16-bit CCPR1 register value is The user must configure the RC2/CCP1 pin as an out-
constantly compared against the TMR1 register pair put by clearing the TRISC<2> bit.
value. When a match occurs, the RC2/CCP1 pin is:
Note: Clearing the CCP1CON register will force
• driven High the RC2/CCP1 compare output latch to the
• driven Low default low level. This is not the data latch.
• remains Unchanged
7.2.2 TIMER1 MODE SELECTION
The action on the pin is based on the value of control
bits CCP1M3:CCP1M0 (CCP1CON<3:0>). The inter- Timer1 must be running in Timer mode or Synchro-
rupt flag bit, CCP1IF, is set on all compare matches. nized Counter mode if the CCP module is using the
compare feature. In Asynchronous Counter mode, the
FIGURE 7-2: COMPARE MODE compare operation may not work.
OPERATION BLOCK 7.2.3 SOFTWARE INTERRUPT MODE
DIAGRAM
When a generated software interrupt is chosen, the
Special event trigger will: CCP1 pin is not affected. Only a CCP interrupt is gen-
reset Timer1, but not set interrupt flag bit TMR1IF (PIR1<0>), erated (if enabled).
and set bit GO/DONE (ADCON0<2>), which starts an A/D
conversion 7.2.4 SPECIAL EVENT TRIGGER
Value on Value on
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 POR, all other
BOR resets
0Bh,8Bh INTCON GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -0-- 0000 -0-- 0000
8Ch PIE1 — ADIE — — SSPIE CCP1IE TMR2IE TMR1IE -0-- 0000 -0-- 0000
87h TRISC PORTC Data Direction Register 1111 1111 1111 1111
0Eh TMR1L Holding register for the Least Significant Byte of the 16-bit TMR1 register xxxx xxxx uuuu uuuu
0Fh TMR1H Holding register for the Most Significant Byte of the 16-bit TMR1register xxxx xxxx uuuu uuuu
10h T1CON — — T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON --00 0000 --uu uuuu
15h CCPR1L Capture/Compare/PWM register1 (LSB) xxxx xxxx uuuu uuuu
16h CCPR1H Capture/Compare/PWM register1 (MSB) xxxx xxxx uuuu uuuu
17h CCP1CON — — CCP1X CCP1Y CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by Capture and Timer1.
In Pulse Width Modulation (PWM) mode, the CCP1 pin The PWM period is specified by writing to the PR2 reg-
produces up to a 10-bit resolution PWM output. Since ister. The PWM period can be calculated using the fol-
the CCP1 pin is multiplexed with the PORTC data latch, lowing formula:
the TRISC<2> bit must be cleared to make the CCP1 PWM period = [(PR2) + 1] • 4 • TOSC •
pin an output. (TMR2 prescale value)
Note: Clearing the CCP1CON register will force PWM frequency is defined as 1 / [PWM period].
the CCP1 PWM output latch to the default
When TMR2 is equal to PR2, the following three events
low level. This is not the PORTC I/O data
occur on the next increment cycle:
latch.
• TMR2 is cleared
Figure 7-3 shows a simplified block diagram of the CCP
module in PWM mode. • The CCP1 pin is set (exception: if PWM duty
cycle = 0%, the CCP1 pin will not be set)
For a step by step procedure on how to set up the CCP
• The PWM duty cycle is latched from CCPR1L into
module for PWM operation, see Section 7.3.3.
CCPR1H
A PWM output (Figure 7-4) has a time base (period) The CCPR1H register and a 2-bit internal latch are
and a time that the output stays high (on-time). The fre- used to double buffer the PWM on-time. This double
quency of the PWM is the inverse of the period buffering is essential for glitchless PWM operation.
(1/period). When the CCPR1H and 2-bit latch match TMR2 con-
catenated with an internal 2-bit Q clock or 2 bits of the
FIGURE 7-4: PWM OUTPUT TMR2 prescaler, the CCP1 pin is cleared.
Maximum PWM resolution (bits) for a given PWM
Period frequency:
Fosc
log ( Fpwm )
Resolution = bits
On-Time log(2)
TMR2 = PR2
Note: If the PWM on-time value is larger than the
TMR2 = Duty Cycle PWM period, the CCP1 pin will not be
cleared.
TMR2 = PR2
For an example PWM period and on-time calculation,
see the PIC® MCU Mid-Range Reference Manual,
(DS33023).
PWM Frequency 1.22 kHz 4.88 kHz 19.53 kHz 78.12 kHz 156.3 kHz 208.3 kHz
Timer Prescaler (1, 4, 16) 16 4 1 1 1 1
PR2 Value 0xFF 0xFF 0xFF 0x3F 0x1F 0x17
Maximum Resolution (bits) 10 10 10 8 7 5.5
TABLE 7-5 REGISTERS ASSOCIATED WITH PWM AND TIMER2
Value on Value on
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 POR, all other
BOR resets
0Bh,8Bh INTCON GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -0-- 0000 -0-- 0000
8Ch PIE1 — ADIE — — SSPIE CCP1IE TMR2IE TMR1IE -0-- 0000 -0-- 0000
87h TRISC PORTC Data Direction Register 1111 1111 1111 1111
11h TMR2 Timer2 module’s register 0000 0000 0000 0000
92h PR2 Timer2 module’s period register 1111 1111 1111 1111
12h T2CON — TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
15h CCPR1L Capture/Compare/PWM register1 (LSB) xxxx xxxx uuuu uuuu
16h CCPR1H Capture/Compare/PWM register1 (MSB) xxxx xxxx uuuu uuuu
17h CCP1CON — — CCP1X CCP1Y CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by PWM and Timer2.
0Bh,8Bh INTCON GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -0-- 0000 -0-- 0000
8Ch PIE1 — ADIE — — SSPIE CCP1IE TMR2IE TMR1IE -0-- 0000 -0-- 0000
13h SSPBUF Synchronous Serial Port Receive Buffer/Transmit Register xxxx xxxx uuuu uuuu
14h SSPCON WCOL SSPOV SSPEN CKP SSPM3 SSPM2 SSPM1 SSPM0 0000 0000 0000 0000
94h SSPSTAT SMP CKE D/A P S R/W UA BF 0000 0000 0000 0000
85h TRISA — — PORTA Data Direction Register --11 1111 --11 1111
87h TRISC PORTC Data Direction Register 1111 1111 1111 1111
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by the SSP in SPI mode.
SCL S 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 P
SSPOV (SSPCON<6>)
Bit SSPOV is set because the SSPBUF register is still full.
ACK is not sent.
SCL 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9
S P
Data in SCL held low
sampled while CPU
responds to SSPIF
SSPIF (PIR1<3>) cleared in software
BF (SSPSTAT<0>)
From SSP interrupt
SSPBUF is written in software service routine
CKP (SSPCON<4>)
Master operation is supported in firmware using inter- In multi-master operation, the interrupt generation on
rupt generation on the detection of the START and the detection of the START and STOP conditions
STOP conditions. The STOP (P) and START (S) bits allows the determination of when the bus is free. The
are cleared by a reset or when the SSP module is dis- STOP (P) and START (S) bits are cleared from a reset
abled. The STOP (P) and START (S) bits will toggle or when the SSP module is disabled. The STOP (P)
based on the START and STOP conditions. Control of and START (S) bits will toggle based on the START and
the I 2C bus may be taken when the P bit is set, or the STOP conditions. Control of the I 2C bus may be taken
bus is idle and both the S and P bits are clear. when bit P (SSPSTAT<4>) is set, or the bus is idle and
In master operation, the SCL and SDA lines are manip- both the S and P bits clear. When the bus is busy,
ulated in software by clearing the corresponding enabling the SSP Interrupt will generate the interrupt
TRISC<4:3> bit(s). The output level is always low, irre- when the STOP condition occurs.
spective of the value(s) in PORTC<4:3>. So when In multi-master operation, the SDA line must be moni-
transmitting data, a '1' data bit must have the tored to see if the signal level is the expected output
TRISC<4> bit set (input) and a '0' data bit must have level. This check only needs to be done when a high
the TRISC<4> bit cleared (output). The same scenario level is output. If a high level is expected and a low level
is true for the SCL line with the TRISC<3> bit. is present, the device needs to release the SDA and
The following events will cause SSP Interrupt Flag bit, SCL lines (set TRISC<4:3>). There are two stages
SSPIF, to be set (SSP Interrupt if enabled): where this arbitration can be lost, these are:
Value on Value on
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 POR, all other
BOR resets
0Bh, 8Bh INTCON GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -0-- 0000 -0-- 0000
8Ch PIE1 — ADIE — — SSPIE CCP1IE TMR2IE TMR1IE -0-- 0000 -0-- 0000
13h SSPBUF Synchronous Serial Port Receive Buffer/Transmit Register xxxx xxxx uuuu uuuu
2 0000 0000 0000 0000
93h SSPADD Synchronous Serial Port (I C mode) Address Register
14h SSPCON WCOL SSPOV SSPEN CKP SSPM3 SSPM2 SSPM1 SSPM0 0000 0000 0000 0000
(1) (1) 0000 0000 0000 0000
94h SSPSTAT SMP CKE D/A P S R/W UA BF
87h TRISC PORTC Data Direction register 1111 1111 1111 1111
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'.
Shaded cells are not used by SSP module in SPI mode.
Note 1: Maintain these bits clear in I2C mode.
CHS2:CHS0
100
RA5/AN4
VIN
(Input voltage) 011
RA3/AN3/VREF
010
A/D RA2/AN2
Converter
001
RA1/AN1
VDD 000
RA0/AN0
000 or
VREF 010 or
100 or
11x
(Reference
voltage) 001 or
011 or
101
PCFG2:PCFG0
VDD
Sampling
Switch
VT = 0.6V
Rs ANx RIC 1k SS RSS
CHOLD
VA CPIN I leakage = DAC capacitance
5 pF VT = 0.6V ± 500 nA = 51.2 pF
VSS
= TAMP + TC + TCOFF
TAMP = 5S
TC = - (51.2pF)(1k + RSS + RS) In(1/511)
TCOFF = (Temp -25C)(0.05S/C)
Value on
Value on all
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 POR,
other Resets
BOR
0Bh,8Bh INTCON GIE PEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
0Ch PIR1 — ADIF — — SSPIF CCP1IF TMR2IF TMR1IF -0-- 0000 -0-- 0000
8Ch PIE1 — ADIE — — SSPIE CCP1IE TMR2IE TMR1IE -0-- 0000 -0-- 0000
1Fh ADCON0 ADCS1 ADCS0 CHS2 CHS1 CHS0 GO/DONE — ADON 0000 00-0 0000 00-0
05h PORTA — — RA5 RA4 RA3 RA2 RA1 RA0 --0x 0000 --0u 0000
85h TRISA — — PORTA Data Direction Register --11 1111 --11 1111
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used for A/D conversion.
CP1 CP0 CP1 CP0 CP1 CP0 — BODEN CP1 CP0 PWRTE WDTE FOSC1 FOSC0 Register: CONFIG
bit13 bit0 Address: 2007h
Note 1: Enabling Brown-out Reset automatically enables Power-up Timer (PWRT), regardless of the value of bit PWRTE.
All of the CP1:CP0 pairs must be given the same value to enable the code protection scheme listed.
To HS 4 MHz 15 pF 15 pF
internal 8 MHz 15-33 pF 15-33 pF
XTAL logic
RF(3) 20 MHz 15-33 pF 15-33 pF
OSC2 These values are for design guidance only. See
SLEEP
RS(2) notes at bottom of page.
C2(1) PIC16CXXX
Crystals Used
32 kHz Epson C-001R32.768K-A ± 20 PPM
Note1: See Table 10-1 and Table 10-2 for recom-
mended values of C1 and C2. 200 kHz STD XTL 200.000KHz ± 20 PPM
2: A series resistor (RS) may be required for 1 MHz ECS ECS-10-13-1 ± 50 PPM
AT strip cut crystals. 4 MHz ECS ECS-40-20-1 ± 50 PPM
3: RF varies with the crystal chosen. 8 MHz EPSON CA-301 8.000M-C ± 30 PPM
20 MHz EPSON CA-301 20.000M-C ± 30 PPM
FIGURE 10-3: EXTERNAL CLOCK INPUT
OPERATION (HS, XT OR LP
OSC CONFIGURATION) Note 1: Higher capacitance increases the stability of the
oscillator, but also increases the start-up time.
2: Since each resonator/crystal has its own charac-
OSC1 teristics, the user should consult the resona-
Clock from
tor/crystal manufacturer for appropriate values of
ext. system PIC16CXXX external components.
Open OSC2 3: Rs may be required in HS mode, as well as XT
mode, to avoid overdriving crystals with low drive
level specification.
4: Oscillator performance should be verified when
migrating between devices (including
PIC16C62A to PIC16C62B and PIC16C72 to
PIC16C72A)
MCLR
SLEEP
WDT WDT
Module Time-out
Reset
VDD rise
detect
Power-on Reset
VDD
Brown-out
Reset S
BODEN
OST/PWRT
OST
Chip_Reset
10-bit Ripple counter R Q
OSC1
(1) PWRT
On-chip
RC OSC 10-bit Ripple counter
Enable PWRT
Enable OST
Note 1: This is a separate oscillator from the RC oscillator of the CLKIN pin.
POR BOR TO PD
0 x 1 1 Power-on Reset
0 x 0 x Illegal, TO is set on POR
0 x x 0 Illegal, PD is set on POR
1 0 1 1 Brown-out Reset
1 1 0 1 WDT Reset
1 1 0 0 WDT Wake-up
1 1 u u MCLR Reset during normal operation
1 1 1 0 MCLR Reset during SLEEP or interrupt wake-up from SLEEP
0
M Postscaler
1 U
WDT Timer
X 8
8 - to - 1 MUX PS2:PS0
PSA
WDT
Enable Bit
To TMR0 (Figure 4-2)
0 1
MUX PSA
WDT
Note: PSA and PS2:PS0 are bits in the OPTION_REG register. Time-out
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
2007h Config. bits BODEN CP1 CP0 PWRTE WDTE FOSC1 FOSC0
81h OPTION_REG RBPU INTEDG T0CS T0SE PSA PS2 PS1 PS0
Legend: Shaded cells are not used by the Watchdog Timer.
1. External reset input on MCLR pin. Even if the flag bits were checked before executing a
SLEEP instruction, it may be possible for flag bits to
2. Watchdog Timer Wake-up (if WDT was
become set before the SLEEP instruction completes. To
enabled).
determine whether a SLEEP instruction executed, test
3. Interrupt from INT pin, RB port change, or some the PD bit. If the PD bit is set, the SLEEP instruction
Peripheral Interrupts. was executed as a NOP.
External MCLR Reset will cause a device reset. All To ensure that the WDT is cleared, a CLRWDT instruc-
other events are considered a continuation of program tion should be executed before a SLEEP instruction.
execution and cause a "wake-up". The TO and PD bits
in the STATUS register can be used to determine the
cause of device reset. The PD bit, which is set on
power-up, is cleared when SLEEP is invoked. The TO
bit is cleared if a WDT time-out occurred (and caused
wake-up).
The following peripheral interrupts can wake the device
from SLEEP:
1. TMR1 interrupt. Timer1 must be operating as
an asynchronous counter.
2. CCP capture mode interrupt.
3. Special event trigger (Timer1 in asynchronous
mode using an external clock. CCP1 is in com-
pare mode).
4. SSP (Start/Stop) bit detect interrupt.
5. SSP transmit or receive in slave mode (SPI/I2C).
6. USART RX or TX (synchronous slave mode).
Other peripherals cannot generate interrupts since dur-
ing SLEEP, no on-chip clocks are present.
When the SLEEP instruction is being executed, the next
instruction (PC + 1) is pre-fetched. For the device to
wake-up through an interrupt event, the corresponding
interrupt enable bit must be set (enabled). Wake-up is
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OSC1
CLKOUT(4) TOST(2)
INT pin
INTF flag
(INTCON<1>) Interrupt Latency
(Note 2)
GIE bit Processor in
(INTCON<7>)
SLEEP
INSTRUCTION FLOW
PC PC PC+1 PC+2 PC+2 PC + 2 0004h 0005h
Instruction
fetched Inst(PC) = SLEEP Inst(PC + 1) Inst(PC + 2) Inst(0004h) Inst(0005h)
10.15 ID Locations
Four memory locations (2000h - 2003h) are designated
as ID locations where the user can store checksum or
other code-identification numbers. These locations are
not accessible during normal execution, but are read-
able and writable during program/verify. It is recom-
mended that only the 4 least significant bits of the ID
location are used.
For ROM devices, these values are submitted along
with the ROM code.
TO Time-out bit
PD Power-down bit CALL and GOTO instructions only
Z Zero bit 13 11 10 0
DC Digit Carry bit OPCODE k (literal)
C Carry bit k = 11-bit immediate value
The instruction set is highly orthogonal and is grouped
into three basic categories: A description of each instruction is available in the
PIC® MCU Mid-Range Reference Manual,
• Byte-oriented operations
(DS33023).
• Bit-oriented operations
• Literal and control operations
All instructions are executed within one single instruc-
tion cycle, unless a conditional test is true or the pro-
gram counter is changed as a result of an instruction.
In this case, the execution takes two instruction cycles
with the second cycle executed as a NOP. One instruc-
tion cycle consists of four oscillator periods. Thus, for
an oscillator frequency of 4 MHz, the normal instruction
24CXX/
25CXX/
HCSXXX
PIC14000
MCP2510
PIC16C5X
PIC16C6X
PIC16C7X
PIC16C8X
PIC17C4X
MCRFXXX
PIC16F62X
PIC16F8XX
PIC16C7XX
PIC16C9XX
PIC17C7XX
PIC18CXX2
PIC12CXXX
PIC16CXXX
TABLE 12-1:
MPLABIntegrated
Development Environment
Software Tools
MPASM/MPLINK
MPLAB™-ICE **
PICMASTER/PICMASTER-CE
Emulators
In-Circuit Emulator
PICSTARTPlus
Low-Cost Universal Dev. Kit **
PRO MATE II
Universal Programmer **
Programmers Debugger
SIMICE
†
Preliminary
PICDEM-1
DEVELOPMENT TOOLS FROM MICROCHIP
† †
PICDEM-2
PICDEM-3
PICDEM-14A
PICDEM-17
KEELOQ® Evaluation Kit
KEELOQ Transponder Kit
microID™ Programmer’s Kit
125 kHz microID Developer’s Kit
125 kHz Anticollision microID
DS35008C-page 79
PIC16C62B/72A
NOTES:
6.0 V
5.5 V
5.0 V PIC16CXXX
PIC16CXXX-20
4.5 V
Voltage
4.0 V
3.5 V
3.0 V
2.5 V
2.0 V
20 MHz
Frequency
6.0 V
5.5 V
5.0 V
4.5 V
Voltage
4.0 V PIC16LCXXX-04
3.5 V
3.0 V
2.5 V
2.0 V
4 MHz 10 MHz
Frequency
FMAX = (12.0 MHz/V) (VDDAPPMIN - 2.5 V) + 4 MHz
Note: VDDAPPMIN is the minimum voltage of the PIC® device in the application.
Fmax is no greater than 10 MHz.
6.0 V
5.5 V
5.0 V
PIC16CXXX-04
Voltage 4.5 V
4.0 V
3.5 V
3.0 V
2.5 V
2.0 V
4 MHz
Frequency
D041 with Schmitt Trigger buffer 0.8VDD - VDD V For entire VDD range
D042 MCLR 0.8VDD - VDD V
D042A OSC1 (XT, HS and LP modes) 0.7VDD - VDD V Note1
D043 OSC1 (in RC mode) 0.9VDD - Vdd V
Input Leakage Current
(Notes 2, 3)
D060 IIL I/O ports - - 1 A Vss VPIN VDD,
Pin at hi-impedance
D061 MCLR, RA4/T0CKI - - 5 A Vss VPIN VDD
D063 OSC1 - - 5 A Vss VPIN VDD,
XT, HS and LP osc modes
D070 IPURB PORTB weak pull-up current 50 250 400 A VDD = 5V, VPIN = VSS
Output Low Voltage
D080 VOL I/O ports - - 0.6 V IOL = 8.5 mA, VDD = 4.5V,
-40C to +85C
* These parameters are characterized but not tested.
† Data in “Typ” column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only
and are not tested.
Note 1: In RC oscillator mode, the OSC1/CLKIN pin is a Schmitt Trigger input. It is not recommended that the
device be driven with external clock in RC mode.
2: The leakage current on the MCLR/VPP pin is strongly dependent on the applied voltage level. The specified
levels represent normal operating conditions. Higher leakage current may be measured at different input volt-
ages.
3: Negative current is defined as current sourced by the pin.
VDD/2
RL Pin CL
VSS
CL
Pin
RL = 464
VSS CL = 50 pF for all pins except OSC2/CLKOUT
15 pF for OSC2 output
OSC1
1 3 3
4 4
2
CLKOUT
OSC1
10 11
CLKOUT
13 12
14 19 18
16
I/O Pin
(input)
17 15
20, 21
Note: Refer to Figure 13-4 for load conditions.
VDD
MCLR
30
Internal
POR
33
PWRT
Time-out
32
OSC
Time-out
Internal
RESET
Watchdog
Timer
RESET
31
34 34
I/O Pins
BVDD
VDD
35
TABLE 13-4: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER, POWER-UP TIMER
AND BROWN-OUT RESET REQUIREMENTS
Param Sym Characteristic Min Typ† Max Units Conditions
No.
30 TmcL MCLR Pulse Width (low) 2 — — s VDD = 5V, -40°C to +125°C
31* Twdt Watchdog Timer Time-out Period 7 18 33 ms VDD = 5V, -40°C to +125°C
(No Prescaler)
32 Tost Oscillator Start-up Timer Period — 1024 — — TOSC = OSC1 period
TOSC
33* Tpwrt Power-up Timer Period 28 72 132 ms VDD = 5V, -40°C to +125°C
34 TIOZ I/O Hi-impedance from MCLR — — 2.1 s
Low or WDT reset
35 TBOR Brown-out Reset Pulse Width 100 — — s VDD BVDD (D005)
* These parameters are characterized but not tested.
† Data in "Typ" column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only
and are not tested.
T0CKI
40 41
42
T1OSO/T1CKI
45 46
47 48
TMR0 or
TMR1
CCP1
(Capture Mode)
50 51
52
CCP1
(Compare or PWM Mode)
53 54
SS
70
SCK
(CKP = 0)
71 72
78 79
SCK
(CKP = 1)
79 78
80
75, 76
SS
81
SCK
(CKP = 0)
71 72
79
73
SCK
(CKP = 1)
80
78
75, 76
74
SS
70
SCK
(CKP = 0) 83
71 72
78 79
SCK
(CKP = 1)
79 78
80
75, 76 77
74
73
Note: Refer to Figure 13-4 for load conditions.
TABLE 13-9: EXAMPLE SPI MODE REQUIREMENTS (SLAVE MODE TIMING (CKE = 0)
Param. Symbol Characteristic Min Typ† Max Units Conditions
No.
70 TssL2scH, SS to SCK or SCK input TCY — — ns
TssL2scL
71 TscH SCK input high time Continuous 1.25TCY + 30 — — ns
71A (slave mode) Single Byte 40 — — ns Note 1
72 TscL SCK input low time Continuous 1.25TCY + 30 — — ns
72A (slave mode) Single Byte 40 — — ns Note 1
73 TdiV2scH, Setup time of SDI data input to SCK edge 100 — — ns
TdiV2scL
73A TB2B Last clock edge of Byte1 to the 1st clock 1.5TCY + 40 — — ns Note 1
edge of Byte2
74 TscH2diL, Hold time of SDI data input to SCK edge 100 — — ns
TscL2diL
75 TdoR SDO data output rise time PIC16CXX — 10 25 ns
PIC16LCXX 20 45 ns
76 TdoF SDO data output fall time — 10 25 ns
77 TssH2doZ SS to SDO output hi-impedance 10 — 50 ns
78 TscR SCK output rise time PIC16CXX — 10 25 ns
(master mode) PIC16LCXX 20 45 ns
79 TscF SCK output fall time (master mode) — 10 25 ns
80 TscH2doV, SDO data output valid PIC16CXX — — 50 ns
TscL2doV after SCK edge PIC16LCXX — 100 ns
83 TscH2ssH, SS after SCK edge 1.5TCY + 40 — — ns
TscL2ssH
† Data in “Typ” column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only
and are not tested.
Note 1: Specification 73A is only required if specifications 71A and 72A are used.
70
SCK
83
(CKP = 0)
71 72
SCK
(CKP = 1)
80
75, 76 77
SDI
MSb IN BIT6 - - - -1 LSb IN
74
NOTE: Refer to Figure 13-4 for load conditions.
SCL
91 93
90 92
SDA
START STOP
Condition Condition
SDA
Out
Note: Refer to Figure 13-4 for load conditions.
91* THD:STA START condition hold 100 kHz mode 4.0 — s After this period the first clock
time 400 kHz mode 0.6 — s pulse is generated
A/D DATA 7 6 5 4 3 2 1 0
ADIF
GO DONE
SAMPLING STOPPED
SAMPLE
Note 1: If the A/D clock source is selected as RC, a time of TCY is added before the A/D clock starts. This
allows the SLEEP instruction to be executed.
Data is not available at this time but you may reference the PIC16C72 Series Data Sheet (DS39016,) DC and AC char-
acteristic section, which contains data similar to what is expected.
AABBCDE 1317SBP
Note: In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line thus limiting the number of available characters
for customer specific information.
* Standard OTP marking consists of Microchip part number, year code, week code, facility code, mask
rev#, and assembly code. For OTP marking beyond this, certain price adders apply. Please check with
your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP price.
E1
2
n 1
E A2
L
c
A1 B1
eB B p
E1
W2 D
2
n 1
W1
A A2
c L
B1
eB A1
B p
E
E1
p
B
2
n 1
h
45
c
A A2
L A1
E1
p
B
2
n 1
A
c
A2
A1
L
APPENDIX B: CONVERSION
CONSIDERATIONS
Considerations for converting from previous versions of
devices to the ones listed in this data sheet are listed in
Table B-1.
CCP module CCP does not reset TMR1 when in special N/A
event trigger mode.
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________ FAX: (______) _________ - _________
Application (optional):
Would you like a reply? Y N
Questions:
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this document easy to follow? If not, why?
4. What additions to the document do you think would enhance the structure and subject?
5. What deletions from the document could be made without affecting the overall usefulness?
* JW Devices are UV erasable and can be programmed to any device configuration. JW Devices meet the electrical requirement of
each oscillator type (including LC devices).
Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using.
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
CERTIFIED BY DNV Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
== ISO/TS 16949 ==
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.