Pic 14000
Pic 14000
PIC14000
6 internal and 5 external interrupt sources RD1/SDAB 5 24 RD6/AN6
RD0/SCLB 6 23 RD7/AN7
38 special function hardware registers OSC2/CLKOUT 7 22 CDAC
Eight-level hardware stack OSC1/PBTN 8 21 SUM
VDD 9 20 VSS
Analog Peripherals Features: VREG 10 19 RC0/REFA
RC7/SDAA 11 18 RC1/CMPA
Slope Analog-to-Digital (A/D) converter RC6/SCLA 12 17 RC2
- Eight external input channels including two RC5 13 16 RC3/T0CKI
MCLR/VPP 14 15 RC4
channels with selectable level shift inputs
- Six internal input channels
- 16-bit programmable timer with capture
register Digital Peripherals Features:
- 16 ms maximum conversion time at maxi-
mum (16-bit) resolution and 4 MHz clock 22 I/O pins with individual direction control
- 4-bit programmable current source High current sink/source for direct LED drive
Internal bandgap voltage reference TMR0: 8-bit timer/counter with 8-bit
Factory calibrated with calibration constants programmable prescaler
stored in EPROM 16-bit A/D timer: can be used as a general
On-chip temperature sensor purpose timer
Voltage regulator control output I2C serial port compatible with System
Two comparators with programmable references Management Bus
On-chip low voltage detector
CMOS Technology:
Special Microcontroller Features: Low-power, high-speed CMOS EPROM technology
Power-on Reset (POR), Power-up Timer (PWRT) Fully static design
and Oscillator Start-up Timer (OST) Wide-operating voltage range (2.7V to 6.0V)
Watchdog Timer (WDT) with its own on-chip RC Commercial and Industrial Temperature Range
oscillator for reliable operation Low power dissipation (typical)
Multi-segment programmable code-protection - < 3 mA @5V, 4 MHz operating mode
Selectable oscillator options - < 300 A @3V (Sleep mode: clocks stopped
- Internal 4 MHz oscillator with analog circuits active)
- External crystal oscillator - < 5 A @3V (Hibernate mode: clocks
Serial in-system programming (via two pins) stopped, analog inactive, and WDT disabled)
Applications:
Battery Chargers
Battery Capacity Monitoring
Uninterruptable Power Supply Controllers
Power Management Controllers
HVAC Controllers
Sensing and Data Acquisition
Legend:
Type: Definition:
TTL TTL-compatible input
CMOS CMOS-compatible input or output
ST Schmitt Trigger input, with CMOS levels
SM SMBus compatible input
OD Open-drain output. An external pull-up resistor is required if this pin is used as an output.
NPU N-channel pull-up. This pin will pull-up to approximately VDD - 1.0V when outputting a logical 1.
PU Weak internal pull-up (10K-50K ohms)
No-P diode No P-diode to VDD. This pin may be pulled above the supply rail (to 6.0V maximum).
AN Analog input or output
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OSC1
Q1
Q2 Internal
Phase
Q3 Clock
Q4
PC PC PC+1 PC+2
CLKOUT
(IN mode)
Fetch INST (PC)
Execute INST (PC-1) Fetch INST (PC+1)
Execute INST (PC) Fetch INST (PC+2)
Execute INST (PC+1)
4.1 Program Memory Organization The calibration space is not used for instructions. This
section stores constants and factors for the arithmetic
The PIC14000 has a 13-bit program counter capable of calculations to calibrate the analog measurements.
addressing an 8K x 14 program memory space. Only
TABLE 4-1: CALIBRATION DATA
the first 4K x 14 (0000-0FFFh) are physically imple-
mented. Accessing a location above the physically OVERVIEW*
implemented address will cause a wraparound. The Address Parameter Symbol Units Format
reset vector is at 0000h and the interrupt vector is at
Slope 32-bit
0004h (Figure 4-1).
0FC0h-0FC3h reference KREF N/A floating
The 4096 words of Program Memory space are divided ratio point**
into: Bandgap 32-bit
Address Vectors (addr 0000h-0004h) 0FC4h-0FC7h reference KBG Volts floating
voltage point
Program Memory Page 0 (addr 0005h-07FFH)
Program Memory Page 1 (addr 0800h-0FBFh) Tempera- 32-bit
0FC8h-0FCBh ture sensor VTHERM Volts floating
Calibration Space (64 words, addr 0FC0h-0FFFh) voltage point
Program code may reside in Page 0 and Page 1. Tempera- Volts/ 32-bit
0FCCh-0FCFh ture sensor KTC degree floating
FIGURE 4-1: PIC14000 PROGRAM coefficient Celsius point
MEMORY MAP AND STACK
Internal
oscillator
PC<12:0> 0FD0h FOSC N/A byte
frequency
13 multiplier
CALL, RETURN,
RETFIE, RETLW WDT
0FD2h TWDT ms byte
time-out
Stack Level 1 * Refer to AN621 for details.
** Microchip modified IEEE754 32-bit floating point format.
Refer to application note AN575 for details.
Stack Level 8
Program Memory & Calibration Space
20FFh
PRESCALER VALUE
PS2:PS0 TMR0 RATE WDT RATE
PS2 PS1 PS0
0 0 0 1 : 2 1 : 1
0 0 1 1 : 4 1 : 2
0 1 0 1 : 8 1 : 4
0 1 1 1 : 16 1 : 8
1 0 0 1 : 32 1 : 16
1 0 1 1 : 64 1 : 32
1 1 0 1 : 128 1 : 64
1 1 1 1 : 256 1 : 128
PSA: Prescaler assignment bit
1 = Prescaler assigned to the WDT
0 = Prescaler assigned to TMR0
R/W R/W R/W R/W R/W R/W R/W R/W Register: INTCON W: Writable
r Address: 0Bh or 8Bh R: Readable
GIE PEIE T0IE r T0IF r r POR value: 0000 000xb U: Unimplemented,
bit7 bit0 read as '0'
Unimplemented. Read as 0
Unimplemented. Read as 0
Unimplemented. Read as 0
Unimplemented. Read as 0
Unimplemented. Read as 0
Unimplemented. Read as 0
Unimplemented. Read as 0
Unimplemented. Read as 0
Unimplemented. Read as 0
Data
not used
Memory
7F 7F
Bank 0 Bank 1 Bank 2 Bank 3
D Q N
Write VSS
TRISA CK Q Analog Input Mode
Read
TRISA
Schmitt Trigger
Input Buffer
Q D
EN
Read
PORTA
To A/D Converter
B3 RA3/AN3 GPIO or analog input. Returns value on pin RA3/AN3 when used as a digital
input. When configured as an analog input, reads as 0.
B2 RA2/AN2 GPIO or analog input. Returns value on pin RA2/AN2 when used as a digital
input. When configured as an analog input, reads as 0.
B1 RA1/AN1 GPIO or analog input. Returns value on RA1/AN1 when used as a digital input.
This pin can connect to a level shift network. If enabled, a +0.5V offset is added
to the input voltage. When configured as an analog input, reads as 0.
B0 RA0/AN0 GPIO or analog input. Returns value on pin RA0/AN0 when used as a digital
input. When configured as an analog input, reads as 0.
I2CCON<5> VDD
Data
Bus D Q N
I/O
Write Pin
CK Q
PORTC
N
D Q
VSS
Write CK Q
TRISC
Schmitt Trigger
Read Input Buffer
TRISC
Q D
Read
PORTC EN
Set Q D
RCIF From other
PORTC pins Read PORTC
EN
Note: I/O pins have protection diodes to VDD and VSS. These pins do not have a P-channel pull-up.
D Q
Q D
Read
PORTC EN
Set Q D
RCIF From other
PORTC pins Read PORTC
EN
RCPU
VDD
Data
Bus D Q
P
I/O
Write CK Q Pin
PORTC
D Q
Write CK Q HIBERNATE
TRISC Schmitt Trigger
Read Input Buffer
TRISC
Q D
Read
PORTC EN
Read PORTC
Synchronous serial data I/O for I2C interface. Also is the serial programming data line.
This pin can also serve as a general purpose I/O. If enabled, a change on this pin can
B7 RC7/SDAA
cause a CPU interrupt. This pin has an N-channel pull-up to VDD which is disabled in
I2C mode.
Synchronous serial clock for I2C interface. Also is the serial programming clock. This pin
B6 RC6/SCLA can also serve as a general purpose I/O. If enabled, a change on this pin can cause a
CPU interrupt. This pin has an N-channel pull-up to VDD which is disabled in I2C mode.
B5 RC5 LED direct-drive output. This pin can also serve as a GPIO. If enabled, a change on this
pin can cause a CPU interrupt. If enabled, this pin has a weak internal pull-up to VDD.
B4 RC4 LED direct-drive output. This pin can also serve as a GPIO. If enabled, a change on this
pin can cause a CPU interrupt. If enabled, this pin has a weak internal pull-up to VDD.
B3 RC3/T0CKI LED direct-drive output. This pin can also serve as a GPIO. If enabled, this pin has a
weak internal pull-up to VDD. T0CKI is enabled as TMR0 clock via the OPTION register.
B2 RC2 LED direct-drive output. This pin can also serve as a GPIO. If enabled, this pin has a
weak internal pull-up to VDD.
B1 RC1/CMPA LED direct-drive output. This pin can also serve as a GPIO, or comparator A output. If
enabled, this pin has a weak internal pull-up to VDD.
B0 RC0/REFA LED direct-drive output. This pin can also serve as a GPIO, or programmable reference
A output. If enabled, this pin has a weak internal pull-up to VDD.
U= unimplemented, X = unknown.
D Q N
Write VSS
TRISD CK Q
Analog Input Mode
Read
TRISD
Schmitt Trigger
Input Buffer
Q D
EN
Read
PortD
To A/D Converter
Note: I/O pins have protection diodes to VDD and VSS.
Data
Bus D Q
Write I/O
CK Q Pin
PORTD
D Q
Write Schmitt Trigger
TRISD CK Q Input Buffer
Read
TRISD
Q D
Read
PORTD EN
Read PORTD
1. I/O pins have protection diodes to VDD and VSS.
2. If CMBOE (CMCON<5>) is set to 1, RD2 becomes CMPB,
RD3 becomes REFB, ignoring the PORTD<3:2> data and
TRISD<3:2> register settings.
D Q N
Write VSS
TRISD CK Q
Read
TRISD
Schmitt Trigger
Input Buffer
Q D
EN
Read
PortD
Note: I/O pins have protection diodes to VDD and VSS. These pins do not have a P-channel pull-up.
GPIO or analog input. Returns value on pin RD7/AN7 when used as a digital
B7 RD7/AN7
input. When configured as an analog input, reads as 0.
RD6/AN6 GPIO or analog input. Returns value on pin RD6/AN6 when used as a digital
B6
input. When configured as an analog input, reads as 0.
GPIO or analog input. This pin can connect to a level shift network. If
B5 RD5/AN5 enabled, a +0.5V offset is added to the input voltage. When configured as
an analog input, reads as 0.
RD4/AN4 GPIO or analog input. Returns value on pin RD4/AN4 when used as a digital
B4
input. When configured as an analog input, reads as 0.
B3 RD3/REFB This pin can serve as a GPIO, or programmable reference B output.
B2 RD2/CMPB This pin can serve as a GPIO, or comparator B output.
Alternate synchronous serial data I/O for I2C interface enabled by setting
the I2CSEL bit in the MISC register. This pin can also serve as a general
B1 RD1/SDAB
purpose I/O. This pin has an N-channel pull-up to VDD which is disabled in
I2C mode.
Alternate synchronous serial clock for I2C interface, enabled by setting the
I2CSEL bit in the MISC register. This pin can also serve as a general pur-
B0 RD0/SCLB
pose I/O. This pin has an N-Channel pull-up to VDD which is disabled in I2C
mode.
Q1 | Q2 | Q3 | Q4 Q1 | Q2 | Q3 | Q4 Q1 | Q2 | Q3 | Q4 Q1 | Q2 | Q3 | Q4
PC PC + 1 PC + 2 PC + 3
Timer0
Data bus
FOSC/4 0
PSout 8
1
Sync with
1 Internal TMR0
clocks
RC3/T0CKI 0 PSout
pin Set T0IF
T0SE (2 cycle delay)
Interrupt on
Overflow
PSA
T0CS
Prescaler/
Postscaler
Local
Oscillator 0 8-bit Counter
18 mS 8
Timer 1
3
8-to-1 MUX PS2:PS0
PSA
Enable 1 0 PSA
WDT
Watchdog Timer Time-out
PC Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
(Program
Counter) PC-1 PC PC+1 PC+2 PC+3 PC+4 PC+5 PC+6
Instruction MOVWF TMR0 MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
Fetch
Instruction
Executed
Write TMR0 Read TMR0 Read TMR0 Read TMR0 Read TMR0 Read TMR0
executed reads NT0 reads NT0 reads NT0 reads NT0 + 1 reads NT0 + 2
PC Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
(Program
Counter) PC-1 PC PC+1 PC+2 PC+3 PC+4 PC+5 PC+6
Instruction MOVWF TMR0 MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
Fetch
Instruction
Execute Write TMR0 Read TMR0 Read TMR0 Read TMR0 Read TMR0 Read TMR0
executed reads NT0 reads NT0 reads NT0 reads NT0 reads NT0 + 1
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OSC1
CLKOUT(3)
GIE bit
(INTCON<7>)
INSTRUCTION FLOW
PC PC PC +1 PC +1 0004h 0005h
Instruction
fetched Inst (PC) Inst (PC+1) Inst (0004h) Inst (0005h)
Instruction Inst (PC-1) Inst (PC) Dummy cycle Dummy cycle Inst (0004h)
executed
When the external clock input (pin RC3/T0CKI) is used Since the prescaler output is synchronized with the
for Timer0, it must meet certain requirements. The internal clocks, there is a small delay from the time the
external clock requirement is due to internal phase external clock edge occurs to the time the Timer0
clock (TOSC) synchronization. Also, there is a delay in module is actually incremented. Figure 6-5 shows the
the actual incrementing of TMR0 after synchronization. delay from the external clock edge to the timer
incrementing.
6.2.1 EXTERNAL CLOCK SYNCHRONIZATION
6.3 Prescaler
When no prescaler is used, the external clock input is
the same as the prescaler output. The synchronization An 8-bit counter is available as a prescaler for the
of T0CKI with the internal phase clocks is Timer0 module, or as a post-scaler for the Watchdog
accomplished by sampling the prescaler output on the Timer (Figure 6-1). For simplicity, this counter is being
Q2 and Q4 cycles of the internal phase clocks referred to as prescaler throughout this data sheet.
(Figure 6-5). Therefore, it is necessary for T0CKI to be Note that there is only one prescaler available which is
high for at least 2Tosc (and a small RC delay of 20 ns) mutually exclusive between the Timer0 module and the
and low for at least 2Tosc (and a small RC delay of Watchdog Timer. Thus, a prescaler assignment for the
20 ns). Timer0 module means that there is no prescaler for the
When a prescaler is used, the external clock input is Watchdog Timer, and vice-versa.
divided by the asynchronous ripple counter-type Bit PSA and PS2:PS0 (OPTION<3:0>) determine the
prescaler so that the prescaler output is symmetrical. prescaler assignment and prescale ratio.
For the external clock to meet the sampling When assigned to the Timer0 module, all instructions
requirement, the ripple counter must be taken into writing to the Timer0 module (e.g., CLRF 1, MOVWF 1,
account. Therefore, it is necessary for T0CKI to have a BSF 1,x) will clear the prescaler. When assigned to
period of at least 4Tosc (and a small RC delay of 40 ns) WDT, a CLRWDT instruction will clear the prescaler
divided by the prescaler value. The only requirement along with the Watchdog Timer. The prescaler is not
on T0CKI high and low time is that they do not violate readable or writable.
the minimum pulse width requirement of 10 ns.
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
EXT CLOCK INPUT OR Small pulse
PRESCALER OUT (NOTE 2) misses sampling
TMR0 T0 T0 + 1 T0 + 2
Notes:
1. Delay from clock input change to TMR0 increment is 3 TOSC to 7 TOSC. (Duration of Q = TOSC).
Therefore, the error in measuring the interval between two edges on TMR0 input = 4 tosc max.
2. External clock if no prescaler selected, Prescaler output otherwise.
3. The arrows indicate the points in time where sampling occurs.
SDA
SCL S P
U U R R R R R R
_ _ D/A P S R/W UA BF Register: I2CSTAT W: Writable bit
Address: 94h R: Readable bit
POR value: 00h U: Unimplemented, read as 0
bit7 bit0
WCOL I2COV I2CEN CKP I2CM3 I2CM2 I2CM1 I2CM0 Register: I2CCON W: Writable bit
Address: 14h R: Readable bit
bit7 bit0 POR value: 00h U: Unimplemented, read as 0
FIGURE 7-4: I2C 7-BIT ADDRESS FORMAT 7.2 Addressing I2C Devices
MSb LSb There are two address formats. The simplest is the
S R/W ACK 7-bit address format with a R/W bit (Figure 7-4). The
address is the most significant seven bits of the byte.
slave address Sent by For example when loading the I2CADD register, the
S Start Condition Slave least significant bit is a dont care. The more complex
R/W Read/Write pulse is the 10-bit address with a R/W bit (Figure 7-5). For
ACK Acknowledge
10-bit address format, two bytes must be transmitted
with the first five bits specifying this to be a 10-bit
FIGURE 7-5: I2C 10-BIT ADDRESS address.
FORMAT
S 1 1 1 1 0 A9 A8 RW ACK A7 A6 A5 A4 A3 A2 A1 A0 ACK
sent by slave
= 0 for write
S - Start Condition
R/W - Read/Write Pulse
ACK - Acknowledge
SDA
MSB acknowledgement byte complete. acknowledgement
signal from receiver interrupt with receiver signal from receiver
SCL S 1 2 7 8 9 1 2 38 9 P
Start Stop
Condition Address R/W ACK Wait Data ACK Condition
State
(read or write)
(n bytes + acknowledge)
S Slave Address R/W A DATA A/A Sr Slave Address R/W A DATA A/A P
Combined Format:
S Slave Address R/W A Slave Address A Data A Data A/A Sr Slave Address R/W A Data A Data A P
first 7 bits second byte first 7 bits
(write) (read)
Combined format - A master addresses a slave with a 10-bit address, then transmits
data to this slave and reads data from this slave.
A = acknowledge (SDA low)
From master to slave A = not acknowledge (SDA high)
S = START condition
From slave to master P = STOP condition
RC6/SCLA
I2CBUF
RC7/SDAA SCK
4:2 Shift
clock
MUX SDA
RD0/SCLB I2CSR
MSB
RD1/SDAB
I2CADD
Set, Reset
Start and S, P bits
Stop bit detect (I2CSTAT Reg)
7.5 I2C Operation I2C Slave mode (7-bit address), with start and
stop bit interrupts enabled
The I2C module in I2C mode fully implements all slave I2C Slave mode (10-bit address), with start and
functions, and provides support in hardware to facilitate stop bit interrupts enabled
software implementations of the master functions. The
I2C Firmware Controlled Master mode, slave is
I2C module implements the standard and fast mode
idle
specifications as well as 7-bit and 10-bit addressing.
Two pins are used for data transfer. These are the Selection of any I2C mode with the I2CEN bit set, forces
RC6/SCLA pin, which is the I2C clock, and the the SCL and SDA pins to be open collector, provided
RC7/SDAA pin which acts as the I2C data. The I2C these pins are set to inputs through the TRISC bits.
module can also be accessed via the RD0/SCLB and The I2CSTAT register gives the status of the data
RD1/SDAB pins by setting I2CSEL (MISC<4>).The transfer. This information includes detection of a
user must configure these pins as inputs or outputs START or STOP bit, specifies if the received byte was
through the TRISC<7:6> or TRISD<1:0> bits. A block data or address, if the next byte is the completion of
diagram of the I2C module in I2C mode is shown in 10-bit address, and if this will be a read or write data
Figure 7-13. The I2C module functions are enabled by transfer. The I2CSTAT register is read only.
setting the I2CCON<5> bit.
The I2CBUF is the register to which transfer data is
The I2C module has five registers for I2C operation. written to or read from. The I2CSR register shifts the
These are the: data in or out of the device. In receive operations, the
I2C Control Register (I2CCON) I2CBUF and I2CSR create a double buffered receiver.
I2C Status Register (I2CSTAT) This allows reception of the next byte before reading
the last byte of received data. When the complete byte
Serial Receive/Transmit Buffer (I2CBUF)
is received, it is transferred to the I2CBUF and PIR1<3>
I2C Shift Register (I2CSR) - Not directly is set. If another complete byte is received before the
accessible I2CBUF is read, a receiver overflow has occurred and
Address Register (I2CADD) the I2CCON<6> is set.
The I2CCON register (14h) allows control of the I2C The I2CADD register holds the slave address. In 10-bit
operation. Four mode selection bits (I2CCON<3:0>) mode, the user needs to write the high byte of the
allow one of the following I2C modes to be selected: address (1 1 1 1 0 A9 A8 0). Following the high byte
I2C Slave mode (7-bit address) address match, the low byte of the address needs to be
I2C Slave mode (10-bit address) loaded (A7-A0).
1 0 No No Yes
1 1 No No Yes
0 1 No No Yes
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
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 I2CIF
I2CIF (PIR1<3>)
BF (I2CSTAT<0>)
cleared in software From I2CIF interrupt
I2CBUF is written in software service routine
CKP (I2CCON<4>)
Master mode operation is supported by interrupt In multi-master mode, the interrupt generation on the
generation on the detection of the START and STOP. detection of the START and STOP allows the
The STOP(P) and START(S) bits are cleared from a determination of when the bus is free. The STOP (P)
reset or when the I2C module is disabled. Control of the and START (S) bits are cleared from a reset or when
I2C bus may be taken when the P bit is set, or the bus the I2C module is disabled. Control of the I2C bus may
is idle and both the S and P bits are cleared. be taken when the P bit is set, or the bus is idle and
In master mode, the SCL and SDA lines are both the S and P bits are cleared. When the bus is
manipulated by changing the corresponding busy, enabling the I2C interrupt will generate the
TRISC<7:6> or TRISD<1:0> bits to an output (cleared). interrupt when the STOP occurs.
The output level is always low, regardless of the In multi-master operation, the SDA line must be
value(s) in PORTC<7:6> or PORTD<1:0>. So when monitored to see if the signal level is the expected
transmitting data, a 1 data bit must have the output level. This check only needs to be done when a
TRISC<7> or TRISD<1> bit set (input) and a 0 data high level is output. If a high level is expected and low
bit must have the TRISC<7> or TRISD<1> bit cleared level is present, the device needs to release the SDA
(output). The same scenario is true for the SCL line and SCL lines (set TRISC<7:6>). There are two stages
with the TRISC<6> or TRISD<0> bit. where this arbitration can be lost, these are:
The following events will cause the I2C interrupt Flag Address Transfer
(I2CIF) to be set (I2C interrupt if enabled): Data Transfer
START When the slave logic is enabled, the slave continues to
STOP receive. If arbitration was lost during the address
Data transfer byte transmitted/received transfer stage, the device may being addressed. If
addressed an ACK pulse will be generated. If
Master mode of operation can be done with either the
arbitration was lost during the data transfer stage, the
slave mode idle (I2CM3...I2CM0 = 1011b) or with the
device will need to re-transfer the data at a later time.
slave active. When both master and slave modes are
enabled, the software needs to differentiate the
source(s) of the interrupt.
SMHOG enable
1 = Stretch I2C CLK signal (hold low) when receive data buffer is full (refer to
B7 SMHOG Section 7.5.4). For pausing I2C transfers while preventing interruptions of A/D
conversions.
0 = Disable I2C CLK stretch.
Serial Port Ground Select
B6 SPGNDB 1 = PORTD<1:0> ground reference is the RD5/AN5 pin.
0 = PORTD<1:0> ground reference is VSS.
Serial Port Ground Select
B5 SPGNDA 1 = PORTC<7:6> ground reference is the RA1/AN1 pin.
0 = PORTC<7:6> ground reference is VSS.
I2C Port select Bit.
B4 I2CSEL 1 = PORTD<1:0> are used as the I2C clock and data lines.
0 = PORTC<7:6> are used as the I2C clock and data lines.
SMBus-Compatibility Select
1 = SMBus compatibility mode is enabled. PORTC<7:6> and PORTD<1:0> have
B3 SMBus SMBus-compatible input thresholds.
0 = SMBus-compatibility is disabled. PORTC<7:6> and PORTD<1:0> have Schmitt Trig-
ger input thresholds.
Oscillator Output Select (available in IN mode only).
B2 INCLKEN 1 = Output IN oscillator signal divided by four on OSC2 pin.
0 = Disconnect IN oscillator signal from OSC2 pin.
OSC2 output port bit (available in IN mode only).
B1 OSC2 Writes to this location affect the OSC2 pin in IN mode. Reads return the value of the
output latch.
OSC1 input port bit (available in IN mode only).
B0 OSC1 Reads from this location return the status of the OSC1 pin in IN mode. Writes have no
effect.
RCV_MODE:
if ((I2CBUF=Full) OR (I2COV = 1))
{ Set I2COV;
Do not acknowledge;
}
else { transfer I2CSR I2CBUF;
send ACK = 0;
}
Receive 8-bits in I2CSR;
Set interrupt;
XMIT_MODE:
While ((I2CBUF = Empty) AND (CKP=0)) Hold SCL Low;
Send byte;
Set interrupt;
if (ACK Received = 1) { End of transmission;
Go back to IDLE_MODE;
}
else if (ACK Received = 0) Go back to XMIT_MODE;
IDLE_MODE (10-Bit):
If (High_byte_addr_match AND (R/W = 0))
{ PRIOR_ADDR_MATCH = FALSE;
Set interrupt;
if ((I2CBUF = Full) OR ((I2COV = 1))
{ Set I2COV;
Do not acknowledge;
}
else { Set UA = 1;
Send ACK = 0;
While (I2CADD not updated) Hold SCL low;
Clear UA = 0;
Receive Low_addr_byte;
Set interrupt;
Set UA = 1;
If (Low_byte_addr_match)
{ PRIOR_ADDR_MATCH = TRUE;
Send ACK = 0;
while (I2CADD not updated) Hold SCL low;
Clear UA = 0;
Set RCV_MODE;
}
}
}
else if (High_byte_addr_match AND (R/W = 1)
{ if (PRIOR_ADDR_MATCH)
{ send ACK = 0;
set XMIT_MODE;
}
else PRIOR_ADDR_MATCH = FALSE;
}
A SM
=0 HO
G
OG =1
S MH SM
HO
G
I2CIF = 1 =0
I2CIF = 1
E/DRIVE
B
SCL
LOW I2
CI
F= SMHOG = 0
SMHOG = 0
I2CIF = 0
SCL = 0
I2CIF = 0
C
D
I2CIF = 1
I2CIF = 0
SCL = 1
Internal ADOFF
Oscillator WRITE_TMR Clock
Stop
FOSC ADRST Logic
(Configuration Bit)
AMUXOE
(ADCON0<2>)
RA0/AN0
RESERVED 15
RESERVED 14
RD7/AN7 13
RD6/AN6 12 ADOFF
RD5/AN5 11
10 Note 2
RD4/AN4 ADTMRH ADTMRL
Prog. Ref. B 9 Analog Timer
Prog. Ref. A 8 Mux Overflow
Temp sensor 7 ~ 1 kohm A/D Capture (OVFIF, PIR1<0>)
SREFLO 6
SREFHI 5 ADCAPH ADCAPL
Bandgap Ref. 4
RA3/AN3 3 Internal
RA2/AN2 2 Data
RA1/AN1 1 Bus
RA0/AN0 A/D
0
Capture Interrupt
(ADCIF, PIR1<1>)
4
ADCON0<7:4>
~2.5uA~5uA~10uA~20uA
ADOFF
(SLPCON<0>)
CDAC
ADCON1<7:4>
0.1F ~100
(nominal)
ADRST (ADCON0<1>)
Note 1 Note 1: All current sources are disabled if ADRST = 1
ADTMR INCREMENTS
ADRST
ADCON0<1>
ADTMR
COUNT XX XX+1 XX+2 XX+3 XX+8 XX+9
CDAC COMPARE
ADCIF,
PIR1<1> (must be cleared by software)
Capture
Register XX XX+8
Current Source
ADCON1<7:4>
Output
0 0 0 1 2.25 A
0 0 1 0 4.5 A
0 0 1 1 6.75 A
0 1 0 0 9 A
0 1 0 1 11.25 A
0 1 1 0 13.5 A
0 1 1 1 15.75 A
1 0 0 0 18 A
1 0 0 1 20.25 A
1 0 1 0 22.5 A
1 0 1 1 24.75 A
1 1 0 0 27 A
1 1 0 1 29.25 A
1 1 1 0 31.5 A
1 1 1 1 33.75 A
TABLE 8-6: CDAC CAPACITOR SELECTION (EXAMPLES FOR FULL SCALE OF 3.5V AND 1.5V)
Calculated
A/D A/D Current CDAC CDAC Capacitor
Resolution Conversion Time Full Scale Source Output Capacitor Nearest Standard
(Bits) (Seconds) (Volts) (amps) (Farads) Value
VDD
LSOFF SUM
(SLPCON<4>)
VDD
Input Protection
Diodes
External
Capacitor
(Optional)
RA1/AN1
*
LSOFF
(SLPCON<4>)
*These switches are a matched pair
VREF
+
Bandgap SREFHI
_
Reference
To A/D
MUX
SREFLO ~ SREFHI
9
= SREFLO
KREF
SREFHI - SREFLO
9.5 Comparator and Programmable The comparator outputs are visible at either
Reference Modules RC1/CMPA or RD2/CMPB pins by setting the CMAOE
(CMCON<1>) or CMBOE (CMCON<5>) bits. Setting
9.5.1 COMPARATORS CMxOE does not affect the comparator operation. It
only enables the pin function regardless of the port
The PIC14000 includes two independent low-power TRIS register setting.
comparators for comparing the programmable refer-
Both the references and the comparators are enabled
ence outputs to either the RA1/AN1 or RA5/AN5 pins.
by clearing the CMOFF (SLPCON<2>) bit.
The negative input of each comparator is tied to one of
the reference outputs as shown in Figure 9-3. The 9.5.2 PROGRAMMABLE REFERENCES
comparator positive inputs are connected to the output
of the RA1/AN1 and RA5/AN5 level-shift networks. The PIC14000 includes two independent, programma-
At reset, the RA1/AN1 level-shift output is connected to ble voltage references. Each reference is built using
the positive inputs of both comparators. This allows a two resistor ladders, bandgap-referenced current
window comparison of the RA1/AN1 voltage using the source, and analog multiplexers. The first ladder con-
two programmable references and comparators. Set- tains 32 taps, and is divided into three ranges (upper,
ting CMBOE (CMCON<5>) changes the configuration middle, and lower) to provide a coarse voltage adjust-
so that RA1/AN1 and RA5/AN5 may be independently ment. The coarse ladder includes 1k and 10k resistors
monitored. yielding a step size of either 5 or 50 mV (nominal)
depending on the selected range. Figure 9-8 shows the
The comparator outputs can be read by the CMAOUT comparator and reference architecture.
(CMCON<2>) and CMBOUT (CMCON<6>) bits. These
are read-only bits and writes to these locations have no A second ladder contains eight taps, and is connected
effect. across the selected coarse ladder resistor to increase
resolution. This subdivides the coarse ladder step by
Either a rising or falling comparator output can gener- approximately 1/8. Thus, resolutions approaching 5/8
ate an interrupt to the CPU as controlled by the polarity mV are obtainable.
bits CPOLA (CMCON<0>) and CPOLB (CMCON<4>).
The CMIF bit (PIR1<7>) interrupt flag is set whenever
the exclusive-OR of the comparator output CMxOUT
and the CPOLx bits equal a logic one. As with other
peripheral interrupts, the corresponding enable bit
CMIE (PIE1<7>) must also be set to enable the com-
parator interrupt. In addition, the global interrupt enable
and peripheral interrupt enable bits INTCON<7:6>
must also be set. This comparator interrupt is level sen-
sitive.
CMOFF
~5 A
PREFx<7:3>
Analog
Mux PREFx<2:0>
(1 of 32)
CMxOE
~0.15V
PREFx<7:3> To A/D
Converter
Programmable
Reference
To CMxOUT bit,
_ CMCON register RC1/CMPA or
From AN1 Level RD2/CMPB
Shift Network
+
CMBOE
CPOLx
CMIF bit
From Other
From AN5 Level Comparator PIR1<7>
Shift Network
Channel B only
0.8
0.7
0.6
VOLTS
0.5
0.4
0.3
0.2
0.1
7F 50 4F 00 C8 D7 F8
PREFx Value (hex)
Comparator A Output
B2 CMAOUT Reading this bit returns the status of the comparator A output. Writes to this bit have no
effect.
B7-B0 PRA7
PRA6
PRA5
Programmable Reference A Voltage Select Bits.
PRA4
See Table 9-1 and Table 9-2 for decoding.
PRA3
PRA2
PRA1
PRA0
B7-B0 PRB7
PRB6
PRB5
Programmable Reference B Voltage Select Bits.
PRB4
See Table 9-1 and Table 9-2 for decoding.
PRB3
PRB2
PRB1
PRB0
PIC14000
Main
Supply
1-10 A recommended
VREG
N-FET
(enhancement)
6V
Typical
VDD
Optional External
Voltage Regulator
(Not required for supply voltages
below 6.0 V)
2007h Bit 13-8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
BITS r CPC r CPP1 CPP0 PWRTE WDTE r FOSC
Read/Write R/W R/W Reserved R/W R/W R/W R/W Reserved R/W
Erased value 1 1 1 1 1 1 1 1 1
SMHOG enable
1 = Stretch I2C CLK signal (hold low) when receive data buffer is full (refer to
B7 SMHOG Section 7.5.4). For pausing I2C transfers while preventing interruptions of A/D
conversions.
0 = Disable I2C CLK stretch.
Serial Port Ground Select
B6 SPGNDB 1 = PORTD<1:0> ground reference is the RD5/AN5 pin.
0 = PORTD<1:0> ground reference is VSS.
Serial Port Ground Select
B5 SPGNDA 1 = PORTC<7:6> ground reference is the RA1/AN1 pin.
0 = PORTC<7:6> ground reference is VSS.
I2C Port select Bit.
B4 I2CSEL 1 = PORTD<1:0> are used as the I2C clock and data lines.
0 = PORTC<7:6> are used as the I2C clock and data lines.
SMBus-Compatibility Select
1 = SMBus compatibility mode is enabled. PORTC<7:6> and PORTD<1:0> have
B3 SMBus SMBus-compatible input thresholds.
0 = SMBus-compatibility is disabled. PORTC<7:6> and PORTD<1:0> have Schmitt Trig-
ger input thresholds.
Oscillator Output Select (available in IN mode only).
B2 INCLKEN 1 = Output IN oscillator signal divided by four on OSC2 pin.
0 = Disconnect IN oscillator signal from OSC2 pin.
OSC2 output port bit (available in IN mode only).
B1 OSC2 Writes to this location affect the OSC2 pin in IN mode. Reads return the value of the
output latch.
OSC1 input port bit (available in IN mode only).
B0 OSC1 Reads from this location return the status of the OSC1 pin in IN mode. Writes have no
effect.
MCLR
SLEEP
WDT WDT
Module Time-out
VDD rise
detect
Power-on Reset
VDD
OST/PWRT
OST
Chip_Reset
10-bit Ripple counter R Q
OSC1
PWRT
On-chip(1)
RC OSC 10-bit Ripple counter
Enable OST
POR TO PD Meaning
0 1 1 Power-On Reset
0 0 X Illegal, TO is set on POR
0 X 0 Illegal, PD is set on POR
1 0 1 WDT reset during normal operation
1 0 0 WDT time-out wakeup from sleep
1 1 1 MCLR reset during normal operation
1 1 0 MCLR reset during SLEEP or HIBERNATE, or interrupt wake-up from
SLEEP or HIBERNATE.
The PIC14000 contains an integrated low-voltage The Power-up Timer provides a fixed 72 ms (nominal)
detector. The supply voltage is divided and compared time-out on power-up only, from POR. The power-up
to the bandgap reference output. If the supply voltage timer operates from a local internal oscillator. The chip
(VDD) falls below VTRIP-, then the low-voltage detector is kept in reset as long as PWRT is active. The PWRT
will cause LVD (PCON<0>) to be reset. This bit can be delay allows the VDD to rise to an acceptable level. A
read by software to determine if a low voltage condition configuration bit, PWRTE, can disable (if set, or unpro-
occurred. This bit must be set by software. grammed) or enable (if cleared, or programmed) the
power-up timer.
The nominal values of the low-voltage detector trip
points are as follows: The power-up timer delay will vary from chip to chip
and due to VDD and temperature.
VTRIP- = 2.55V
VTRIP+ = 2.60V 10.5.3 OSCILLATOR START-UP TIMER (OST)
Hysteresis (VTRIP+ VTRIP-) = 55 mV
The Oscillator Start-up Timer (OST) provides 1024
10.5 Power-on Reset (POR), Power-up oscillator cycles (from OSC1 input) delay after the
Timer (PWRT) and Oscillator Start-up PWRT delay is over. This guarantees that the crystal
Timer (OST) oscillator or resonator has started and stabilized.
A Power-on Reset pulse is generated on-chip when There is an 8-cycle delay in IN mode to ensure stability
VDD rise is detected (in the range of 1.5V - 2.1V). To only after a Power-on Reset (POR) or wake-up from
take advantage of the POR, just tie the MCLR pin SLEEP.
directly (or through a resistor) to VDD. This will elimi-
nate external RC components usually needed to create
a Power-on Reset. A maximum rise time for VDD is
specified. See Electrical Specifications for details.
When the device starts normal operation (exits the
reset condition), device operating parameters (voltage,
frequency, temperature, ...) must be met to ensure
operation. If these conditions are not met, the device
must be held in reset until the operating conditions are
met.
For additional information, refer to Application Note
AN607, Power-up Trouble Shooting.
Legend: u = unchanged
x = unknown
- = unimplemented, read as 0
Note 1: When the wake-up is due to an interrupt and the GIE bit is set, the PC is loaded with the interrupt vector
(0004h).
PBIF
PBIE
ADCIF
ADCIE
Wake-up (If in SLEEP mode)
T0IF or terminate long write
I2CIF
T0IE
I2CIE
PEIF
PEIE Interrupt to CPU
OVFIF
OVFIE GIE
CMIF
CMIE
RCIF
RCIE
Instruction Inst (PC-1) Inst (PC) Dummy Cycle Dummy Cycle Inst (0004h)
executed
Notes:
1. PBIF flag is sampled here (every Q1)
2. Interrupt latency = 3-4Tcy where Tcy = instruction cycle time.
Latency is the same whether Inst (PC) is a single cycle or a 2-cycle instruction.
3. Available only in IN oscillator mode on OSC2.
4. For minimum width spec of PBTN pulse, refer to AC specs.
5. PBIF is enabled to be set anytime during the Q4-Q1 cycles.
Timer0
Data bus
FOSC/4 0
PSout 8
1
Sync with
1 Internal TMR0
clocks
RC3/T0CKI 0 PSout
pin Set T0IF
T0SE (2 cycle delay)
Interrupt on
Overflow
PSA
T0CS
Prescaler/
Postscaler
Local
Oscillator 0 8-bit Counter
18 mS 8
Timer 1
3
8-to-1 MUX PS2:PS0
PSA
Enable 1 0 PSA
WDT
Watchdog Timer Time-out
The WDT has a nominal time-out period of 18 ms (with It should also be taken into account that under
no prescaler). The time-out periods vary with worst-case conditions (minimum VDD, maximum
temperature, VDD and process variations (see DC temperature, maximum WDT prescaler) it may take
specs). If longer time-out periods are desired, a pres- several seconds before a WDT time-out occurs. Refer
caler with a division ratio of up to 1:128 can be to Section 6.3 for prescaler switching considerations.
assigned to the WDT under software control by writing
to the OPTION registers. Thus, time-out periods up to 10.8 Power Management Options
2.3 seconds can be realized. The CLRWDT and SLEEP
The PIC14000 has several power management
instructions clear the WDT and the prescaler, if
options to prolong battery lifetime. The SLEEP instruc-
assigned to the WDT, and prevent it from timing out and
tion halts the CPU and can turn off the on-chip oscilla-
generating a device RESET.
tors. The CPU can be in SLEEP mode, yet the A/D
The TO bit in the status register will be cleared upon a converter can continue to run. Several bits are included
watchdog timer time-out. The WDT time-out period (no in the SLPCON register (8Fh) to control power to ana-
prescaler) is measured and stored in calibration space log modules.
at location 0FD2h.
Function Summary
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)
INTERRUPT
Interrupt Latency
Flag (5)
(Note 2)
GIE bit Processor in
(INTCON<7>)
SLEEP
INSTRUCTION FLOW
PC PC PC+1 PC+2 PC + 2 0004h 0005h
Instruction Inst(0004h)
fetched Inst(PC) = SLEEP Inst(PC + 1) Inst(PC + 2) Inst(0005h)
Instruction SLEEP Inst(PC + 1) Dummy cycle Dummy cycle
executed Inst(PC - 1) Inst(0004h)
10.9 Code Protection After reset, to place the device into programming/verify
mode, the program counter (PC) is at location 00h. A
The code in the program memory can be protected by 6-bit command is then supplied to the device.
programming the code protect bits. When code Depending on the command, 14-bits of program data
protected, the contents of the program memory cannot are then supplied to or from the device. For complete
be read out. In code-protected mode, the configuration details about serial programming, please refer to the
word (2007h) will not be scrambled, allowing reading of PIC16C6X/7X Programming Specifications (Literature
all configuration bits. #DS30228).
10.10 In-Circuit Serial Programming A typical in-system serial programming connection is
shown in Figure 10-14.
PIC14000 can be serially programmed while in the end
application circuit. This is simply done with two lines for FIGURE 10-14: TYPICAL IN-SYSTEM SERIAL
clock and data, and three other lines for power, ground PROGRAMMING
and the programming voltage. This allows customers to CONNECTION
manufacture boards with unprogrammed devices, and
then program the microcontroller just before shipping
the product. This allows the most recent firmware or a To Normal
Connections
custom firmware to be programmed. External
Connector PIC14000
The device is placed into a program/verify mode by Signals
holding the RC6/SCL and RC7/SDA pins low while
+5V VDD
raising the MCLR (VPP) pin from VIL to VIH. RC6 then
becomes the programming clock and RC7 becomes 0V VSS
the programmed data. Both RC6 and RC7 are Schmitt Vpp MCLR/VPP
trigger inputs in this mode.
CLK RC6
VDD
To Normal
Connections
Description: The contents of the W register are Description: The contents of W register are
added to the eight bit literal 'k' and the ANDed with the eight bit literal 'k'. The
result is placed in the W register. result is placed in the W register.
Words: 1 Words: 1
Cycles: 1 Cycles: 1
Example ADDLW 0x15 Example ANDLW 0x5F
Words: 1 Cycles: 1
Before Instruction
W = 0x07
After Instruction
W = value of k8
Description: Return from subroutine. The stack is Encoding: 00 1100 dfff ffff
POPed and the top of the stack (TOS) Description: The contents of register 'f' are rotated
is loaded into the program counter. one bit to the right through the Carry
This is a two cycle instruction. Flag. If 'd' is 0 the result is placed in
Words: 1 the W register. If 'd' is 1 the result is
placed back in register 'f'.
Cycles: 2
C Register f
Example RETURN
After Interrupt Words: 1
PC = TOS
Cycles: 1
Example RRF REG1,0
Before Instruction
REG1 = 1110 0110
C = 0
After Instruction
REG1 = 1110 0110
W = 0111 0011
C = 0
Description: The contents of register 'f' are rotated Status Affected: TO, PD
one bit to the left through the Carry Encoding: 00 0000 0110 0011
Flag. If 'd' is 0 the result is placed in
the W register. If 'd' is 1 the result is Description: The power-down status bit, PD is
cleared. Time-out status bit, TO is
stored back in register 'f'.
set. Watchdog Timer and its pres-
C Register f caler are cleared.
The processor is put into SLEEP
Words: 1 mode with the oscillator stopped.
See Section 10.8 for more details.
Cycles: 1
Words: 1
Example RLF REG1,0
Cycles: 1
Before Instruction
REG1 = 1110 0110 Example: SLEEP
C = 0
After Instruction
REG1 = 1110 0110
W = 1100 1100
C = 1
Description: The W register is subtracted (2s com- Encoding: 00 0010 dfff ffff
plement method) from the eight bit literal Description: Subtract (2s complement method) W reg-
'k'. The result is placed in the W register. ister from register 'f'. If 'd' is 0 the result is
Words: 1 stored in the W register. If 'd' is 1 the
result is stored back in register 'f'.
Cycles: 1
Words: 1
Example 1: SUBLW 0x02
Cycles: 1
Before Instruction
Example 1: SUBWF REG1,1
W = 1
C = ? Before Instruction
After Instruction REG1 = 3
W = 2
W = 1 C = ?
C = 1; result is positive
After Instruction
Example 2: Before Instruction
REG1 = 1
W = 2 W = 2
C = ? C = 1; result is positive
After Instruction Example 2: Before Instruction
W = 0 REG1 = 2
C = 1; result is zero W = 2
Example 3: Before Instruction C = ?
W = 3 After Instruction
C = ? REG1 = 0
After Instruction W = 2
C = 1; result is zero
W = 0xFF
C = 0; result is nega- Example 3: Before Instruction
tive REG1 = 1
W = 2
C = ?
After Instruction
REG1 = 0xFF
W = 2
C = 0; result is negative
Encoding: 00 1110 dfff ffff Description: The contents of the W register are
XORed with the eight bit literal 'k'.
Description: The upper and lower nibbles of regis- The result is placed in the W regis-
ter 'f' are exchanged. If 'd' is 0 the ter.
result is placed in W register. If 'd' is 1
the result is placed in register 'f'.
Words: 1
Words: 1 Cycles: 1
Preliminary
EM167103
DEVELOPMENT TOOLS FROM MICROCHIP
Product TRUEGAUGE Development Kit SEEVAL Designers Kit Hopping Code Security Programmer Kit Hopping Code Security Eval/Demo Kit
All 2 wire and 3 wire N/A DV243001 N/A N/A
Serial EEPROM's
MTA11200B DV114001 N/A N/A N/A
HCS200, 300, 301 * N/A N/A PG306001 DM303001
DS40122B-page 106
PIC14000
PIC14000
13.0 ELECTRICAL CHARACTERISTICS FOR PIC14000
ABSOLUTE MAXIMUM RATINGS
Ambient temperature under bias.............................................................................................................-55C to+ 125C
Storage Temperature ............................................................................................................................. -65C to +150C
Voltage on any pin with respect to VSS (except VDD and MCLR) ...................................................... -0.5V to VDD +0.6V
Voltage on VDD with respect to VSS .............................................................................................................. 0 to +6.0 V
Voltage on MCLR with respect to VSS (Note 2) ...............................................................................................0 to +14 V
Total power Dissipation (Note 1) ..............................................................................................................................1.0 W
Maximum Current out of VSS pin ...........................................................................................................................300mA
Maximum Current into VDD pin ..............................................................................................................................250mA
Input clamp current, IIK (VI <0 or VI> VDD) .........................................................................................................................20mA
Output clamp current, IOK (VO <0 or VO>VDD) ...................................................................................................................20mA
Maximum Output Current sunk by any I/O pin .........................................................................................................25mA
Maximum Output Current sourced by any I/O pin....................................................................................................25mA
Maximum Current sunk by PORTA, PORTC, and PORTD(combined) ..................................................................200mA
Maximum Current sourced by PORTA, PORTC, and PORTE (combined) ............................................................200mA
Maximum Current sunk by PORTC and PORTD (combined) ................................................................................200mA
Maximum Current sourced by PORTC and PORTD (combined)...........................................................................200mA
Note 1: Power dissipation is calculated as follows: Pdis = VDD x {IDD - IOH} + {(VDD-VOH) x IOH} + (VOl x IOL)
Note 2: Voltage spikes below VSS at the MCLR pin, inducing currents greater than 80mA, may cause latch-up. Thus,
a series resistor of 50-100 should be used when applying a low level to the MCLR pin rather than pulling
this pin directly to VSS.
NOTICE: Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above those
indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for
extended periods may affect device reliability.
VDD start voltage to VPOR VSS V See section on power-on reset for details
guarantee Power-On Reset
VDD rise rate to guarantee SVDD 0.05* V/ms See section on power-on reset for details
Power-On Reset
Comparator interrupt enabled: IPD2 75 100 A VDD = 3.0V, CMOFF = 0, LSOFF = 0, REFOFF = 0
level-shift, programmable
reference, and comparator active IPD2 95 125 A VDD = 4.0V, CMOFF = 0, LSOFF = 0, REFOFF = 0
Internal oscillator mode IDD 2.2 TBD mA Fosc = 4 MHz, VDD = 5.5V
PORTC<5:0> weak pull-up current IPURC 50 200 400 A VDD = 5V, VPIN = VSS
Input Leakage Current (Notes 1,2)
I/O ports, CDAC IIL 1 A Vss VPIN VDD, Pin at hi-impedance
MCLR 5 A Vss VPIN VDD
OSC1 5 A Vss VPIN VDD
Output Low Voltage
I/O ports VOL 0.6 V IOL = 8.5mA, VDD-4.5V, -40C to +85C
OSC2 0.6 V IOL = 1.6mA, VDD-4.5V, -40C to +85C
Output High Voltage
I/O ports (Note 2) VOH VDD-0.7 V IOH = -3.0mA, VDD=4.5V, -40C to +85C
RC6, RC7, RD0, RD1 (except I2C mode) 2.4 V IOH = -2.0mA, VDD=4.5V, -40C to +85C
OSC2 VDD-0.7 V IOH = -1.3mA, VDD=4.5V, -40C to +85C
Capacitive Loading Specs on Output
Pins
OSC2 pin COSC2 15 pF
All I/O pins except OSC2 (in IN mode) CIO 50 pF
SCL, SDA in I2C mode Cb 400 pF
Data in Typ column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only
and are not tested.
Note 1: The leakage current on the MCLR 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 voltages.
2: Negative current is defined as coming out of the pin.
F Frequency T Time
pp
di SDI t0 T0CKI
io I/O port
mc MCLR
F Fall P Period
H High R Rise
L Low Z Hi-impedance
I2C only
CC
HD Hold SU Setup
ST
Q4 Q1 Q2 Q3 Q4 Q1
OSC1
1 3 3 4 4
2
CLKOUT
VDD/2
RL
CL CL
Pin Pin
VSS VSS
RL = 464
CL = 50 pF for all pins except OSC2
15 pF for OSC2 output
Q4 Q1 Q2 Q3
OSC1
11
10
CLKOUT
13 12
19 18
14 16
I/O Pin
(input)
17 15
VDD
MCLR
30
Internal
POR
33
PWRT
Timeout
32
OSC
Timeout
Internal
RESET
Watchdog
Timer
RESET
31
34
I/O Pin
TABLE 13-3: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER AND POWER-UP
TIMER REQUIREMENTS
30 TmcL MCLR Pulse Width (low) 100 ns VDD = 5V, -40C to +85C
31 TWDT Watchdog Timer Timeout Period 7* 18 33* ms VDD = 5V, -40C to +85C
(No Prescaler)
T0CKI
40 41
42
SCL
91
81 93
83
90
80 92
82
SDA
START STOP
Condition Condition
101
91
SCL
90
80
106
96
107
97
91
81 92
82
SDA
IN
100
110
109
99 109
99
SDA
OUT
TO BE DETERMINED.
FIGURE 13-11: VTH (INPUT THRESHOLD VOLTAGE) OF OSC1 INPUT (IN HS MODE) vs VDD
3.60
3.40
3.20
)
3.00 5C
to 8
40
C
2.80 x (-
Ma YP 5C
)
CT to 8
2.60 25 C
(-40
VTH (Volts)
2.40 Min
2.20
2.00
1.80
1.60
1.40
1.20
1.00
3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5
VDD (Volts)
10,000
6.0
5.5
5.0
4.5
4.0
3.5
3.0
1,000
IDD (A)
100
10
1
10,000 100,000 1,000,000 10,000,000 100,000,000
Frequency (Hz)
FIGURE 13-13: MAXIMUM OPERATING SUPPLY CURRENT VS FREQ (EXT CLOCK, -40 TO +85C)
TO BE DETERMINED.
TO BE DETERMINED.
FIGURE 13-15: WATCHDOG TIMER TIME-OUT PERIOD (TWDT) VS. TEMPERATURE (TYPICAL)
VDD=5V
24
22
WDT Time-Out Period (no Prescaler, mSec)
20
18
16
14
12
10
-40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 100
Temperature (C)
50.0
45.0 -5
40.0 C
Min @ +85
35.0 -10
IOH (mA)
WDT period (ms)
30.0 25C
Ma
x, 8 Typ @
5C
-15
25.0 Max,
70C
20.0 Typ,
25C
-20
-40C
15.0 Max @
Min, 0C
10.0
-25
Min, -40C
0 0.5 1 1.5 2 2.5 3
5.0 V OH (Volts)
2 3 4 5 6 7
V DD (Volts)
FIGURE 13-19: IOH VS VOH, VDD = 5V*
FIGURE 13-17: TRANSCONDUCTANCE (GM)
0
OF HS OSCILLATOR VS VDD
-5
9000
-10
8000
-15
7000
C
0
IOH (mA)
-4
-20
x,
Min @ 85C
Ma
6000
-25
gm (A/V)
4000
C
, 25 -35
Typ
3000
-40
8 5C Max @ -40C
Min,
2000 -45
1000
-50
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0 VOH (Volts)
2 3 4 5 6 7
VDD (Volts)
35 90
Min @ -40C 80
30 Min @ -40C
70
25
60
Typ @ 25C Typ @ 25C
20
IOL (mA)
50
IOL (mA)
Min @ +85C
15 40
Min @ +85C
30
10
20
5
10
0
0
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
VOL (Volts)
VOL (Volts)
Temperature Sensor
Output Voltage vo(temp) 0.92 1.05 1.18 V TA = 25C
Supply Sensitivity ss(temp) 0.2 %/V From VDDmin to VDDmax 1
Temperature Coefficient KTC 3.2 3.65 4.1 mV/C Measured from 25C to Tmax.
Includes 2C temperature
calibration tolerance
A/D Comparator
Input Offset Voltage ioff(adc) -10 2 10 mV Measured over common-mode
range
Input Common Mode Voltage cmr(adc) 0 VDD-1.4 V
Range
Differential Voltage Gain gain(adc) 100 dB 1
Common Mode Rejection Ratio cmrr(adc) 80 dB VDD = 5V, TA = 25C, over 1
common-mode range
Power Supply Rejection Ratio psrr(adc) 70 dB TA = 25C, VDDmin to VDDmax 1
Operating Current (A/D on) idd(adc) 40 65 A ADOFF = 0 2
Operating Current (A/D off) 0 A ADOFF = 1 2
Programmable Reference(s)
Upper Range TA = 25C
Output Voltage vo(pref) 0.627 0.792 0.957 V PREFx<7:0> = 7Fh
(127 decimal), max
0.418 0.528 0.638 V PREFx<7:0> = 50h
(80 decimal), min
Coarse Resolution resc(pref) 38.0 48.0 58.0 mV PREFx<2:0> = constant
Fine Resolution resf(pref) 4.0 5.0 6.0 mV PREFx<7:3> = constant
Middle Range TA = 25C
Output Voltage vo(pref) 0.414 0.523 0.632 V PREFx<7:0> = 4F
(79 decimal), max
0.380 0.480 0.580 V PREFx<7:0> = 00h
(default), mid-point
0.342 0.432 0.522 V PREFx<7:0> = C8h
(200 decimal), min
Coarse Resolution resc(pref) 3.8 4.8 5.8 mV PREFx<2:0> = constant
Fine Resolution resf(pref) 0.38 0.46 0.54 mV PREFx<7:3> = constant 1
Low-Voltage Detector
Detect Voltage v-(lvd) 2.43 2.55 2.67 V Decreasing VDD
Release Voltage v+(lvd) 2.48 2.60 2.72 V Increasing VDD
Hysteresis vhys(lvd) 35 55 75 mV Between detect and release trip
points
Operating Current (on) idd(lvd) 15 25 A REFOFF = 0 2
Operating Current (off) idd(lvd) 0 A REFOFF = 1 2
Internal Oscillator
Frequency Range fosc(in) 3.0 4.0 5.0 MHz
Temperature Coefficient tc(in) -0.04 %/C From Tmin to Tmax 1
Supply Sensitivity ss(in) 0.8 %/V From VDDmin to VDDmax 1
Jitter jit(in) 100 ppm 3 sigma from mean 1
Start-up Time tsu(in) 8 Tcycs At Power-On Reset and exit from 4
SLEEP
Operating Current idd(in) 300 500 A 2
(oscillator on)
Operating Current idd(in) 0 A SLEEP mode, OSCOFF = 1 2
(oscillator off)
Level-Shift Network(s)
Input Current (RA1/RD5 pin) iin(lvs) -3.4 -4.8 -6.2 A TA = 25C, RA1/RD5 = 0V (SUM
pin is open)
Output Voltage vo(lvs) 0.37 0.46 0.55 V TA = 25C, RA1/RD5 = 0V, (SUM
pin is open)
Zeroing Mismatch Error zm(lvs) 0.02 % 1
Output Voltage Temperature tc(lvs) 0.39 %/C From Tmin to Tmax 1
Coefficient
Output Voltage Supply ss(lvs) 0.2 %/V From VDDmin to VDDmax 1
Sensitivity
Operating Current (network on) idd(lvs) 5 15 A LSOFF = 0 2
Operating Current (network off) idd(lvs) 0 A LSOFF = 1 2
Calculations:
Temperature coefficients are calculated as:
tc = (value @TMAX - value @TMIN) / ((TMAX-TMIN) * Average(value @TMAX,value @TMIN))
Temperature coefficient for the internal temperature sensor is calculated as:
tc sensor = (sensor voltage @ TMAX - sensor voltage @ 25C) / (TMAX - 25C)
Temperature coefficients for the bandgap reference and programmable current source are calculated as
the larger TC from 25C to either TMIN or TMAX
Supply sensitivities are calculated as:
ss = (value@VDDMAX - value@VDDMIN)/((VDDMAX - VDDMIN)*
Average(value@VDDMAX, value@VDDMIN))
Programmable current source output sensitivity is calculated as:
vs = (value@(VDD - 1.4V) - value @ 0V)/(VDD - 1.4V) *
Average(value@(VDD - 1.4V), value @ 0V)
1.192
1.188
1.186
1.184
1.182
1.180
1.178
-40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 100
Temperature (C)
2.5
Current Source Output (uA)
2.3
2.1
1.9
1.7
-40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 100
Temperature (C)
1.3
1.2
1.1
1.0
0.9
0.8
-40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 100
Temperature (C)
0.1258
Slope Reference Ratio (KREF)
0.1256
0.1254
0.1252
0.1250
2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
Supply Voltage (Volts)
0.1258
0.1256
Slope Reference Ratio (KREF)
0.1254
0.1252
0.1250
0.1248
0.1246
-40 -20 0 20 40 60 80 100
Temperature (C)
Fixed Bandgap Reference Voltage
0.6
0.5
0.4
0.3
-40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90
Temperature (C)
4.2
4.1
Oscillator Frequency (MHz)
4.0
3.9
3.8
3.7
3.6
3.5
2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
Supply Voltage (Volts)
4.3
4.2
Oscillator Frequency (MHz)
4.1
4.0
3.9
3.8
3.7
3.6
3.5
-40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 100
Temperature (C)
Preliminary
Temperature Sensor,
Calibration Factors,
TMR0 I2C/ 28-pin DIP, SOIC, SSOP
PIC14000 20 4K 192 14 11 22 2.7-6.0 Yes Low Voltage Detector,
ADTMR SMBus (.300 mil)
SLEEP, HIBERNATE,
Comparators with
Programmable References
DS40122B-page 133
PIC14000
A.2
DS40122B-page 134
Clock Memory Peripherals Features
)
Hz
PIC14000
( M
ion
s) y
at
rd or
p er
wo em
s)
O
12 M
s
yte
of
og
)
r
b
(x ram
on
cy
lts
y(
o
cti
en
u
or
)
(V
qu
(s
str
em
e
le
In
M
ng
u
PIC16C5X Family of Devices
Fr
es
of
a
od
Ra
r
at
ag
um
M
e
ns
k
D
be
OM
im
Pi
er
M
ag
m
R
ac
M
lt
ax
m
P
Nu
EP
RO
M
I/O
Ti
RA
Vo
PIC16C52 4 384 25 TMR0 12 2.5-6.25 33 18-pin DIP, SOIC
PIC16C54 20 512 25 TMR0 12 2.5-6.25 33 18-pin DIP, SOIC; 20-pin SSOP
PIC16C54A 20 512 25 TMR0 12 2.0-6.25 33 18-pin DIP, SOIC; 20-pin SSOP
PIC16CR54A 20 512 25 TMR0 12 2.0-6.25 33 18-pin DIP, SOIC; 20-pin SSOP
Preliminary
PIC16C55 20 512 24 TMR0 20 2.5-6.25 33 28-pin DIP, SOIC, SSOP
PIC16C56 20 1K 25 TMR0 12 2.5-6.25 33 18-pin DIP, SOIC; 20-pin SSOP
PIC16C57 20 2K 72 TMR0 20 2.5-6.25 33 28-pin DIP, SOIC, SSOP
PIC16CR57B 20 2K 72 TMR0 20 2.5-6.25 33 28-pin DIP, SOIC, SSOP
PIC16C58A 20 2K 73 TMR0 12 2.0-6.25 33 18-pin DIP, SOIC; 20-pin SSOP
PIC16CR58A 20 2K 73 TMR0 12 2.5-6.25 33 18-pin DIP, SOIC; 20-pin SSOP
All PIC16/17 Family devices have Power-On Reset, selectable Watchdog Timer, selectable code protect and high I/O current capability.
H z) y
(M or
n em s)
tio M rd ge
ra o
pe r o lta )
O am 4 w
V lts
of og x1 s) e o
y te
PIC16CXXX Family of Devices
nc Pr ( by nc s (V
e ( ( s) e ce e et
qu r y le ( s) f er ur g es
e o u o r o an R
Fr od at Re tS R ut es
M em M ar al up ns -o
um O M r p r n r r ge n k ag
im R ta e m te Pi lt a c
ax P a i m o n n te / O ow
M E D T C I I I Vo Br Pa
PIC16C554 20 512 80 TMR0 3 13 2.5-6.0 18-pin DIP, SOIC; 20-pin SSOP
PIC16C556 20 1K 80 TMR0 3 13 2.5-6.0 18-pin DIP, SOIC; 20-pin SSOP
PIC16C558 20 2K 128 TMR0 3 13 2.5-6.0 18-pin DIP, SOIC; 20-pin SSOP
Preliminary
PIC16C620 20 512 80 TMR0 2 Yes 4 13 2.5-6.0 Yes 18-pin DIP, SOIC; 20-pin SSOP
PIC16C621 20 1K 80 TMR0 2 Yes 4 13 2.5-6.0 Yes 18-pin DIP, SOIC; 20-pin SSOP
PIC16C622 20 2K 128 TMR0 2 Yes 4 13 2.5-6.0 Yes 18-pin DIP, SOIC; 20-pin SSOP
All PIC16/17 Family devices have Power-on Reset, selectable Watchdog Timer, selectable code protect and high I/O
current capability.
All PIC16C6XXX Family devices use serial programming with clock pin RB6 and data pin RB7.
DS40122B-page 135
PIC14000
A.4
H z) y s) (
(M or le T)
on e m )
s o du g
t i M d AR in
a
DS40122B-page 136
r m o r M S m
p e a w M , U m
O ) W 2C
) a
of
gr 4 ts gr
y ro (x1 t es e /P I /I r t V ol ro
P y s
PIC14000
nc ) r S P P o e ( l P et
ue
(b (s pa e rc ge es
q r y u le m s )( v u n eria R
e o o rt( la So a
Fr em od /C R tS ut es
M M M re Po e lS e c ui -o
um O r t u a l l l r u pt ins
a g i r n k ag
i m R M t a e p r i r a r P l t C o w c
ax m te -
M EP RO Da Ti Ca Se Pa In I/O Vo In Br Pa
PIC16C62 20 2K 128 TMR0, 1 SPI/I2C 7 22 2.5-6.0 Yes 28-pin SDIP, SOIC, SSOP
TMR1, TMR2
PIC16C6X Family of Devices
PIC16C62A(1) 20 2K 128 TMR0, 1 SPI/I2C 7 22 2.5-6.0 Yes Yes 28-pin SDIP, SOIC, SSOP
TMR1, TMR2
PIC16CR62(1) 20 2K 128 TMR0, 1 SPI/I2C 7 22 2.5-6.0 Yes Yes 28-pin SDIP, SOIC, SSOP
TMR1, TMR2
PIC16C63 20 4K 192 TMR0, 2 SPI/I2C, 10 22 2.5-6.0 Yes Yes 28-pin SDIP, SOIC
TMR1, TMR2 USART
PIC16CR63(1) 20 4K 192 TMR0, 2 SPI/I2C, 10 22 2.5-6.0 Yes Yes 28-pin SDIP, SOIC
TMR1, TMR2 USART
Preliminary
PIC16C64 20 2K 128 TMR0, 1 SPI/I2C Yes 8 33 2.5-6.0 Yes 40-pin DIP;
TMR1, TMR2 44-pin PLCC, MQFP
PIC16C64A(1) 20 2K 128 TMR0, 1 SPI/I2C Yes 8 33 2.5-6.0 Yes Yes 40-pin DIP;
TMR1, TMR2 44-pin PLCC, MQFP, TQFP
PIC16CR64(1) 20 2K 128 TMR0, 1 SPI/I2C Yes 8 33 2.5-6.0 Yes Yes 40-pin DIP;
TMR1, TMR2 44-pin PLCC, MQFP, TQFP
PIC16C65 20 4K 192 TMR0, 2 SPI/I2C, Yes 11 33 2.5-6.0 Yes 40-pin DIP;
TMR1, TMR2 USART 44-pin PLCC, MQFP
PIC16C65A(1) 20 4K 192 TMR0, 2 SPI/I2C, Yes 11 33 2.5-6.0 Yes Yes 40-pin DIP;
TMR1, TMR2 USART 44-pin PLCC, MQFP, TQFP
PIC16CR65(1) 20 4K 192 TMR0, 2 SPI/I2C, Yes 11 33 2.5-6.0 Yes Yes 40-pin DIP;
TMR1, TMR2 USART 44-pin PLCC, MQFP, TQFP
All PIC16/17 family devices have Power-on Reset, selectable Watchdog Timer, selectable code protect, and high I/O current capability.
All PIC16C6X family devices use serial programming with clock pin RB6 and data pin RB7.
Note 1: Please contact your local sales office for availability of these devices.
ta m pt r ra D te lt ow c
ax EP Da Ti Se Pa A/ In I/O Vo -C Pa
M Ca In Br
PIC16C710 20 512 36 TMR0 4 4 13 2.5-6.0 Yes Yes 18-pin DIP, SOIC;
20-pin SSOP
PIC16C71 20 1K 36 TMR0 4 4 13 2.5-6.0 Yes 18-pin DIP, SOIC
PIC16C711 20 1K 68 TMR0 4 4 13 2.5-6.0 Yes Yes 18-pin DIP, SOIC;
20-pin SSOP
PIC16C72 20 2K 128 TMR0, 1 SPI/I2C 5 8 22 2.5-6.0 Yes Yes 28-pin SDIP, SOIC, SSOP
TMR1, TMR2
Preliminary
PIC16C73 20 4K 192 TMR0, 2 SPI/I2C, 5 11 22 2.5-6.0 Yes 28-pin SDIP, SOIC
TMR1, TMR2 USART
PIC16C73A(1) 20 4K 192 TMR0, 2 SPI/I2C, 5 11 22 2.5-6.0 Yes Yes 28-pin SDIP, SOIC
TMR1, TMR2 USART
PIC16C74 20 4K 192 TMR0, 2 SPI/I2C, Yes 8 12 33 2.5-6.0 Yes 40-pin DIP;
TMR1, TMR2 USART 44-pin PLCC, MQFP
PIC16C74A(1) 20 4K 192 TMR0, 2 SPI/I2C, Yes 8 12 33 2.5-6.0 Yes Yes 40-pin DIP;
TMR1, TMR2 USART 44-pin PLCC, MQFP, TQFP
All PIC16/17 Family devices have Power-on Reset, selectable Watchdog Timer, selectable code protect and high I/O current
capability.
All PIC16C7X Family devices use serial programming with clock pin RB6 and data pin RB7.
Note 1: Please contact your local sales office for availability of these devices.
DS40122B-page 137
PIC14000
A.6
DS40122B-page 138
PIC14000
tio em
ra M
pe am ) )
O r s) es ts
of og e t ol
cy Pr yt (by s (V
n (b s) ce
ue y M l e( ur ge
q or o an
Fre P RO o du S R
M em M es
um O M EE pt ins ge ag
h
M ta ta er r ru P a k
xim PR lt c
as
a im te
Fl
M EE RO Da Da T In I/O Vo Pa
PIC16C84 10 1K 36 64 TMR0 4 13 2.0-6.0 18-pin DIP, SOIC
PIC16F84(1) 10 1K 68 64 TMR0 4 13 2.0-6.0 18-pin DIP, SOIC
Preliminary
PIC16CR84(1) 10 1K 68 64 TMR0 4 13 2.0-6.0 18-pin DIP, SOIC
PIC16F83(1) 10 512 36 64 TMR0 4 13 2.0-6.0 18-pin DIP, SOIC
PIC16CR83(1) 10 512 36 64 TMR0 4 13 2.0-6.0 18-pin DIP, SOIC
All PIC16/17 family devices have Power-on Reset, selectable Watchdog Timer, selectable code protect, and
high I/O current capability.
All PIC16C8X family devices use serial programming with clock pin RB6 and data pin RB7.
Note 1: Please contact your local sales office for availability of these devices.
Hz) y )
or (s
(M u le T) ls
i on em R ne g
at M od SA n in
er M ha m
p am ,U C ) m
O gr
M 2C ra
PIC16C9XX Family Of Devices
of s) W t) ts
y P ro te rt - bi s V ol r og
n c y ) r e /P PI/I
S o ( 8 e ( P t
(b s P rc l se
q ue r y l e( pa s) ( v e t er e u ge r ia e
e o u o m t ( a r u l o a n e R
Fr od or Sl ve ns R tS ut s
M em M /C on od tS s
e ui -o ge
um O M r u re al P l l el C M r up i n t Pi g r c n k a
im R ta e pt ri ra D r P lta i c
ax m D te pu -C ow
M EP Da Ti Ca Se Pa A/ LC In I/O In Vo In Br Pa
PIC16C923 8 4K 176 TMR0, 1 SPI/I2C 4 Com 8 25 27 3.0-6.0 Yes 64-pin SDIP(1), TQFP,
TMR1, TMR2 32 Seg 68-pin PLCC, DIE
PIC16C924 8 4K 176 TMR0, 1 SPI/I2C 5 4 Com 9 25 27 3.0-6.0 Yes
Preliminary
64-pin SDIP(1), TQFP,
TMR1, TMR2 32 Seg 68-pin PLCC, DIE
All PIC16/17 Family devices have Power-on Reset, selectable Watchdog Timer, selectable code protect and high I/O current capability.
All PIC16CXX Family devices use serial programming with clock pin RB6 and data pin RB7.
Note 1: Please contact your local Microchip representative for availability of this package.
DS40122B-page 139
PIC14000
A.8
DS40122B-page 140
PIC14000
)
ds
Hz
or
(M
(W
n
y
io
)
or
rat
es
em
pe
yt
M
)
T)
O
(b
ns
m
R
ts
of
y
io
a
s
t
ol
y
ly
s
gr
or
SA
pt
o
uc
(V
nc
r
tip
ce
(U
(s
ru
r
Pr
PIC17CXX Family of Devices
em
ue
st
ul
ge
le
er
M
s)
ou
In
eq
n
u
M
t(
nt
f
Fr
e
od
lI
or
Ra
es
at
M
ro
pt
ar
a
um
ns
lP
w
s
ag
ru
rn
ge
M
be
RO
k
im
er
Pi
M s
rd
t
ta
ria
m
p
l
te
AM
m
ax
RO
ac
EP
a
In
Ha
Ex
M
I/O
P
Se
Ti
Nu
C
PW tur
Vo
Preliminary
PIC17CR42 25 2K 232 TMR0,TMR1, 2 2 Yes Yes Yes 11 33 2.5-5.5 58 40-pin DIP;
TMR2,TMR3 44-pin PLCC, MQFP
PIC17C43 25 4K 454 TMR0,TMR1, 2 2 Yes Yes Yes 11 33 2.5-6.0 58 40-pin DIP;
TMR2,TMR3 44-pin PLCC, TQFP, MQFP
PIC17CR43 25 4K 454 TMR0,TMR1, 2 2 Yes Yes Yes 11 33 2.5-6.0 58 40-pin DIP;
TMR2,TMR3 44-pin PLCC, TQFP, MQFP
PIC17C44 25 8K 454 TMR0,TMR1, 2 2 Yes Yes Yes 11 33 2.5-6.0 58 40-pin DIP;
TMR2,TMR3 44-pin PLCC, TQFP, MQFP
All PIC16/17 Family devices have Power-on Reset, selectable Watchdog Timer, selectable code protect and high I/O current capability.
PIC16C55, 28-pin
PIC16C57, PIC16CR57B
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 data sheet easy to follow? If not, why?
4. What additions to the data sheet do you think would enhance the structure and subject?
5. What deletions from the data sheet could be made without affecting the overall usefulness?
8. How would you improve our software, systems, and silicon products?
Temperature - = 0C to +70C
Range: I = -40C to +85C
Frequency 04 = 4 MHz
Range: 20 = 20 MHz
The PICmicro family meets the specifications contained in the Microchip Data Sheet.
Microchip believes that its family of PICmicro microcontrollers is one of the most secure products 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 knowl-
edge, require using the PICmicro microcontroller in a manner outside the operating specifications contained in the data sheet.
The person doing so may be 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 product.
If you have any further questions about this matter, please contact the local sales office nearest to you.
03/01/02