PIC14000-04/SO Microchip Technology, PIC14000-04/SO Datasheet

IC MCU OTP 4KX14 A/D 28SOIC

PIC14000-04/SO

Manufacturer Part Number
PIC14000-04/SO
Description
IC MCU OTP 4KX14 A/D 28SOIC
Manufacturer
Microchip Technology
Series
PIC® 14r

Specifications of PIC14000-04/SO

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Core Processor
PIC
Speed
4MHz
Connectivity
I²C
Peripherals
POR, Temp Sensor, WDT
Number Of I /o
20
Program Memory Type
OTP
Ram Size
192 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 6 V
Data Converters
Slope A/D
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
28-SOIC (7.5mm Width)
Controller Family/series
PIC14
No. Of I/o's
22
Ram Memory Size
192Byte
Cpu Speed
4MHz
No. Of Timers
2
Interface
I2C
Embedded Interface Type
I2C
Rohs Compliant
Yes
Processor Series
PIC14000
Core
PIC
Data Bus Width
8 bit
Data Ram Size
192 B
Interface Type
SPI, UART
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
22
Number Of Timers
1
Operating Supply Voltage
2.7 V to 6 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
Development Tools By Supplier
ICE2000
Minimum Operating Temperature
0 C
On-chip Adc
16 bit, 8 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING309-1073 - ADAPTER 28-SOIC TO 28-SOIC309-1024 - ADAPTER 28-SOIC TO 28-DIP309-1023 - ADAPTER 28-SOIC TO 28-DIPDV007003 - PROGRAMMER UNIVERSAL PROMATE II
Eeprom Size
-
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC14000-04/SO
Quantity:
48
Part Number:
PIC14000-04/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC14000-04/SO
Manufacturer:
Maxim
Quantity:
103
High-Performance RISC CPU:
• Only 35 single word instructions to learn
• All single cycle instructions except for program
• Operating speed: DC - 20 MHz clock input
• 4096 x 14 on-chip EPROM program memory
• 192 x 8 general purpose registers (SRAM)
• 6 internal and 5 external interrupt sources
• 38 special function hardware registers
• Eight-level hardware stack
Analog Peripherals Features:
• Slope Analog-to-Digital (A/D) converter
• Internal bandgap voltage reference
• Factory calibrated with calibration constants
• On-chip temperature sensor
• Voltage regulator control output
• Two comparators with programmable references
• On-chip low voltage detector
Special Microcontroller Features:
• Power-on Reset (POR), Power-up Timer (PWRT)
• Watchdog Timer (WDT) with its own on-chip RC
• Multi-segment programmable code-protection
• Selectable oscillator options
• Serial in-system programming (via two pins)
1996 Microchip Technology Inc.
branches which are two cycle
- Eight external input channels including two
- Six internal input channels
- 16-bit programmable timer with capture
- 16 ms maximum conversion time at maxi-
- 4-bit programmable current source
stored in EPROM
and Oscillator Start-up Timer (OST)
oscillator for reliable operation
- Internal 4 MHz oscillator
- External crystal oscillator
channels with selectable level shift inputs
register
mum (16-bit) resolution and 4 MHz clock
28-Pin Programmable Mixed Signal Controller
This document was created with FrameMaker 4 0 4
Preliminary
Pin Diagram
Digital Peripherals Features:
• 22 I/O pins with individual direction control
• High current sink/source for direct LED drive
• TMR0: 8-bit timer/counter with 8-bit
• 16-bit A/D timer: can be used as a general
• I
CMOS Technology:
• Low-power, high-speed CMOS EPROM technology
• Fully static design
• Wide-operating voltage range (2.7V to 6.0V)
• Commercial and Industrial Temperature Range
• Low power dissipation (typical)
Applications:
• Battery Chargers
• Battery Capacity Monitoring
• Uninterruptable Power Supply Controllers
• Power Management Controllers
• HVAC Controllers
• Sensing and Data Acquisition
PDIP, SOIC, SSOP, Windowed CERDIP
programmable prescaler
purpose timer
Management Bus
- < 3 mA @5V, 4 MHz operating mode
- < 300 A @3V (Sleep mode: clocks stopped
- < 5 A @3V (Hibernate mode: clocks
2
C serial port compatible with System
with analog circuits active)
stopped, analog inactive, and WDT disabled)
OSC2/CLKOUT
OSC1/PBTN
RD2/CMPB
RD3/REFB
RD1/SDAB
RC7/SDAA
RD0/SCLB
RC6/SCLA
MCLR/V
RA1/AN1
RA0/AN0
VREG
RC5
V
DD
PP
PIC14000
• 1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
DS40122B-page 1
RA2/AN2
RA3/AN3
RD4/AN4
RD5/AN5
RD6/AN6
RD7/AN7
CDAC
SUM
V
RC0/REFA
RC1/CMPA
RC2
RC3/T0CKI
RC4
SS

Related parts for PIC14000-04/SO

PIC14000-04/SO Summary of contents

Page 1

... Multi-segment programmable code-protection • Selectable oscillator options - Internal 4 MHz oscillator - External crystal oscillator • Serial in-system programming (via two pins) 1996 Microchip Technology Inc. This document was created with FrameMaker PIC14000 Pin Diagram PDIP, SOIC, SSOP, Windowed CERDIP RA1/AN1 • 1 RA0/AN0 2 ...

Page 2

... Other Analog Modules..................................................................................................................... 65 10.0: Special Features of the CPU ........................................................................................................... 75 11.0: Instruction Set Summary ................................................................................................................. 91 12.0: Development Support.................................................................................................................... 103 13.0: Electrical Characteristics for PIC14000 ..........................................................................................107 14.0: Analog Specifications: PIC14000-04 (Commercial, Industrial)...................................................... 123 Appendix A:PIC16/17 Microcontrollers ....................................................................................................133 Index .........................................................................................................................................................143 PIC14000 Product Identification System ..................................................................................................149 To Our Valued Customers We constantly strive to improve the quality of all our products and documentation ...

Page 3

... An internal low-voltage detect circuit allows for tracking of voltage levels. Upon detecting the low voltage con- dition, the PIC14000 can be instructed to save its oper- ating state then enter an idle state. 1996 Microchip Technology Inc. This document was created with FrameMaker The internal band-gap reference is used for calibrating the measurements of the analog peripherals ...

Page 4

... PIC14000 NOTES: DS40122B-page 4 Preliminary 1996 Microchip Technology Inc. ...

Page 5

... Please refer to AN621 for more information. Microchip's PICSTART PICSTART-PLUS PRO MATE programmers all support programming of the PIC14000. Third party programmers also are avail- able; refer to the Microchip Third Party Guide for a list of sources. 2.2 One-Time-Programmable (OTP) Devices The availability of OTP devices is especially useful for customers who need the fl ...

Page 6

... PIC14000 NOTES: DS40122B-page 6 Preliminary 1996 Microchip Technology Inc. ...

Page 7

... The PIC14000 can directly or indirectly address its register files or data memory. All special function registers including the program counter are mapped in the data memory. The PIC14000 has an orthogonal instruction set that makes it possible to carry out any operation on any register using any addressing mode. This symmetrical nature and lack of ‘ ...

Page 8

... PIC14000 FIGURE 3-1: PIC14000 BLOCK DIAGRAM 13 EPROM Program Memory Program 14 Bus Instruction reg 8 Instruction Decode & Control Timing Generation OSC1/PBTN OSC2/CLKOUT Internal Oscillator MCLR/V Programmable Reference A & B with Comparators Voltage Temp Bandgap Regulator Sensor Reference Support VREG Note 1: Higher order bits are from the STATUS register. ...

Page 9

... I N-channel pull-up device which is disabled in I NPU/OD General purpose I/O. If enabled, is multiplexed as (No P-diode) synchronous serial data I/O for I an N-channel pull-up device which is disabled in I mode. CMOS General purpose I/O or comparator B output. Preliminary PIC14000 Description . interface. Also is the 2 C mode ...

Page 10

... PIC14000 TABLE 3-1: PIN DESCRIPTIONS (CONTINUED) Pin Pin Name I/O No. RD3/REFB 3 I/O-PU AN/ST RD4/AN4 26 I/O AN/ST RD5/AN5 25 I/O AN/ST RD6/AN6 24 I/O AN/ST RD7/AN7 23 I/O AN/ST VREG 10 O — OSC1/PBTN 8 I-PU ST OSC2 — CLKOUT MCLR/VPP 14 I/PWR PWR GND SS Legend: Type: Definition: TTL ...

Page 11

... Q2, Q3, and Q4 cycles. Data memory is read during Q2 (operand read) and written during Q4 (destination write PC+1 Fetch INST (PC+1) Execute INST (PC) Execute 1 Execute 2 Fetch 2 Fetch 3 Fetch SUB_1 Preliminary PIC14000 Internal Phase Clock PC+2 Fetch INST (PC+2) Execute INST (PC+1) Execute 3 Fetch 4 Flush Flush Fetch SUB_1 DS40122B-page 11 ...

Page 12

... PIC14000 NOTES: DS40122B-page 12 Preliminary 1996 Microchip Technology Inc. ...

Page 13

... MEMORY ORGANIZATION 4.1 Program Memory Organization The PIC14000 has a 13-bit program counter capable of addressing program memory space. Only the first (0000-0FFFh) are physically imple- mented. Accessing a location above the physically implemented address will cause a wraparound. The reset vector is at 0000h and the interrupt vector is at 0004h (Figure 4-1) ...

Page 14

... PIC14000 TABLE 4-2: CALIBRATION CONSTANT ADDRESSES Address Data K , exponent 0FC0h REF K , mantissa high byte 0FC1h REF K , mantissa middle byte 0FC2h REF K , mantissa low byte 0FC3h REF K , exponent 0FC4h mantissa high byte 0FC5h mantissa middle byte 0FC6h mantissa low byte 0FC7h exponent ...

Page 15

... SPECIAL FUNCTION REGISTERS The special function registers are registers used by the CPU and peripheral functions for controlling the desired operation of the device (Table 4-3). These reg- isters are static RAM. TABLE 4-3: SPECIAL FUNCTION REGISTERS FOR THE PIC14000 Address Name Bit 7 Bank0 INDF ...

Page 16

... PIC14000 TABLE 4-3: SPECIAL FUNCTION REGISTERS FOR THE PIC14000 (CONTINUED) Address Name Bit 7 Bank1 INDF Addressing this location uses contents of FSR to address data memory (not a physical regis- 80h* (Indirect Ad- ter). dress) 81h OPTION RCPU 82h* PCL Program Counter’s (PC’s) least significant byte ...

Page 17

... Set Summary.” Note 1: The IRP and RP1 bits (STATUS<7:6>) are not used by the PIC14000 and should be programmed as cleared. Use of these bits as general purpose R/W bits is NOT recommended, since this may affect upward compatibility with future products ...

Page 18

... PIC14000 4.2.2.2 OPTION REGISTER The OPTION register (Address 81h readable and writable register which contains various control bits to configure the TMR0/WDT prescaler, TMR0, and the weak pull-ups on PORTC<5:0>. Bit 6 is reserved. FIGURE 4-4: OPTION REGISTER R/W R/W R/W R/W R/W ...

Page 19

... T0IE: TMR0 interrupt enable bit 1 = Enables T0IF interrupt 0 = Disables T0IF interrupt PEIE: Peripheral interrupt enable bit 1 = Enables all un-masked peripheral interrupts 0 = Disables all peripheral interrupts GIE: Global interrupt enable 1 = Enables all un-masked interrupts 0 = Disables all interrupts Preliminary PIC14000 disabled). Before enabling W: Writable R: Readable U: Unimplemented, ...

Page 20

... PIC14000 4.2.2.4 PIE1 REGISTER This register contains the individual enable bits for the Peripheral interrupts including A/D capture event, I serial port, PORTC change and A/D capture timer overflow, and external push button. FIGURE 4-6: PIE1 REGISTER R R/W R/W 2 — CMIE — ...

Page 21

... Unimplemented. Read as ‘0’ Unimplemented. Read as ‘0’ CMIF: Programmable Reference Comparator Interrupt Flag 1 = The comparator output has tripped. This is a level-sensitive interrupt The interrupt did not occur Preliminary PIC14000 Readable Unimplemented, read as ‘0’ DS40122B-page 21 ...

Page 22

... PIC14000 4.2.2.6 PCON REGISTER The Power Control (PCON) register status contains 2 flag bits to allow differentiation between a Power-on Reset, an external MCLR reset, WDT reset, or low-volt- age condition (Figure 4-8). FIGURE 4-8: PCON REGISTER R — — — — bit7 DS40122B-page 22 These bits are cleared on POR. The user must set these bits following POR ...

Page 23

... Refer to the application note “Table Read Using the PIC16CXX”(AN556). 4.3.2 STACK The PIC14000 has an 8 deep x 13-bit wide hardware stack (Figure 4-1). The stack space is not part of either program or data space and the stack pointer is not readable or writable. The PC is PUSHed in the stack when a CALL instruction is executed or an interrupt is acknowledged ...

Page 24

... An effective 9-bit address is obtained by concatenating the 8-bit FSR register and the IRP bit (STATUS<7>), as shown in Figure 4-10. However, IRP is not used in the PIC14000. A simple program to clear RAM location 20h-2Fh using indirect addressing is shown in Example 4-2. FIGURE 4-10: ...

Page 25

... I/O PORTS The PIC14000 has three ports, PORTA, PORTC and PORTD, described in the following paragraphs. Generally, PORTA is used as the analog input port. PORTC is used for general purpose I/O and for host communication. PORTD provides additional I/O lines. Four lines of PORTD may function as analog inputs. ...

Page 26

... PIC14000 FIGURE 5-2: PORTA DATA REGISTER 05h Bit 7 Bit 6 PORTA — — Read/Write U U POR value 0xh 0 0 Bit Name Function B7-B4 Unimplemented. Reads as‘0’. — 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’. ...

Page 27

... Read Input Buffer TRISC From other PORTC pins EN and V . These pins do not have a P-channel pull-up Preliminary PIC14000 . INITIALIZING PORTC ; Initialize PORTC data ; latches before setting ; the data direction ; register ; Select Bank1 ; Value used to initialize ; data direction ; Set RC<3:0> as inputs ; RC<5:4> as outputs ...

Page 28

... PIC14000 TABLE 5-1: PORT RC0 PIN CONFIGURATION SUMMARY RC0 Pin TRISC<0> Configuration Digital Input (weak pull-up) 1 Digital Input (no pull-up) 1 Digital Output 0 Analog Output 0 FIGURE 5-4: BLOCK DIAGRAM OF PORTC<5:4> PINS RCPU HIBERNATE Data Bus Write PORTC Write TRISC Read PORTC Set RCIF 1 ...

Page 29

... If the CMAOE bit (CMCON<1>) is set to‘1’, RC0 becomes REFA, RC1 becomes CMPA, ignoring the PORTC<1:0> data and TRISC<1:0> register settings. 1996 Microchip Technology Inc HIBERNATE CK Q Schmitt Trigger Read Input Buffer TRISC and Preliminary PIC14000 P I/O Pin Read PORTC DS40122B-page 29 ...

Page 30

... PIC14000 FIGURE 5-6: PORTC DATA REGISTER 07h Bit 7 Bit 6 PORTC RC7/SDAA RC6/SCLA Read/Write R/W R/W POR value xxh x Bit Name Function Synchronous serial data I/O for I 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 ...

Page 31

... Control direction on pin RC0/REFA (has no effect if the CMAOE bit is set pin is an output 1 = pin is an input U= unimplemented unknown. 1996 Microchip Technology Inc. Bit 5 Bit 4 Bit 3 TRISC5 TRISC4 TRISC3 R/W R/W R Preliminary PIC14000 Bit 2 Bit 1 Bit 0 TRISC2 TRISC1 TRISC0 R/W R/W R enabled enabled): DS40122B-page 31 ...

Page 32

... PIC14000 5.3 PORTD and TRISD PORTD is an 8-bit port that may be used for general purpose I/O. Four pins can be configured as analog inputs. FIGURE 5-8: BLOCK DIAGRAM OF PORTD<7:4> PINS Data Bus D Write CK Q PORTD D Write CK Q TRISD Read PortD To A/D Converter ...

Page 33

... C mode. Alternate synchronous serial clock for CSEL bit in the MISC register. This pin can also serve as a general pur- pose I/O. This pin has an N-Channel pull-up to VDD which is disabled in I mode. Preliminary PIC14000 I/O Pin Bit 2 Bit 1 Bit 0 R/W R/W R/W ...

Page 34

... PIC14000 FIGURE 5-12: TRISD REGISTER 88h Bit 7 Bit 6 TRISD TRISD7 TRISD6 Read/Write R/W R/W POR value FFh 1 Bit Name Function Control direction on pin RD7/AN7: B7 TRISD7 0 = pin is an output 1 = pin is an input Control direction on pin RD6/AN6: B6 TRISD6 0 = pin is an output 1 = pin is an input ...

Page 35

... BCF TRISC Note that the user may have expected the pin ; values to be 00pp pppp. The 2nd BCF caused ; RC7 to be latched as the pin value (High). Preliminary PIC14000 READ MODIFY WRITE INSTRUCTIONS ON AN I/O PORT PORTC<7:4> Inputs PORTC<3:0> Outputs PORT latch PORT pins ...

Page 36

... PIC14000 5.4.2 SUCCESSIVE OPERATIONS ON I/O PORTS The actual write to an I/O port happens at the end of an instruction cycle, whereas for reading, the data must be valid at the beginning of the instruction cycle. Therefore, care must be exercised if a write operation is followed by a read operation on the same I/O port. ...

Page 37

... TIMER MODULES The PIC14000 contains two general purpose timer modules, Timer0 (TMR0) and the Watchdog Timer (WDT). The ADTMR is described in the A/D section. The Timer0 module is identical to the Timer0 module of the PIC16C7X enhanced core products 8-bit overflow counter. The Timer0 module has a programmable prescaler option ...

Page 38

... PIC14000 6.1 Timer0 Interrupt The TMR0 interrupt is generated when the Timer0 overflows from FFh to 00h. This overflow sets the T0IF bit. The interrupt can be masked by clearing bit T0IE (INTCON<5>). Flag bit T0IF (INTCON<2>) must be cleared in software by the TMR0 module interrupt ser- ...

Page 39

... Timer0 module (e.g., CLRF 1, MOVWF 1, BSF 1,x ) will clear the prescaler. When assigned to WDT, a CLRWDT instruction will clear the prescaler along with the Watchdog Timer. The prescaler is not readable or writable (Duration OSC OSC Preliminary PIC14000 Small pulse misses sampling (note OSC 4 tosc max. DS40122B-page 39 ...

Page 40

... PIC14000 6.3.1 SWITCHING PRESCALER ASSIGNMENT The prescaler assignment is fully under software control, i.e., it can be changed “on the fly” during program execution. To avoid an unintended device RESET, the following instruction (Example 6-1) must be executed when changing the prescaler assignment from Timer0 to WDT. ...

Page 41

... I C module’s hardware, except general call support, while portions of the master proto- col will need to be addressed in the PIC14000 soft- ware. Table 7-1 defines some of the I terminology. For additional information on the I face specification, please refer to the Philips Corpora- 2 tion document “ ...

Page 42

... PIC14000 2 2 FIGURE 7-2: I CSTAT PORT STATUS REGISTER D R/W UA bit7 DS40122B-page Register: I CSTAT W: Writable bit BF Address: 94h R: Readable bit POR value: 00h U: Unimplemented, read as ‘0’ bit0 BF: Buffer full Receive Receive complete, I CBUF is full Receive not complete, I CBUF is empty Transmit Transmit in progress, I ...

Page 43

... COV must be cleared in software overflow WCOL: Write collision detect the I CBUF register is written while it is still transmitting the previ- ous word. Must be cleared in software collision Preliminary PIC14000 W: Writable bit R: Readable bit U: Unimplemented, read as ‘0’ 2 CM<3:0> 2 CBUF is still holding the previous DS40122B-page 43 ...

Page 44

... PIC14000 2 TABLE 7- BUS TERMINOLOGY Term Description Transmitter The device that sends the data to the bus. Receiver The device that receives the data from the bus. Master The device which initiates the transfer, generates the clock, and terminates the transfer. Slave The device addressed by a master. ...

Page 45

... SCL from Master S Start Condition byte complete. interrupt with receiver clock line held low while interrupts are serviced R/W ACK Wait Data State Preliminary PIC14000 SLAVE-RECEIVER ACKNOWLEDGE not acknowledge acknowledge Clock pulse for acknowledgement acknowledgement signal from receiver 9 3 • Stop ACK ...

Page 46

... PIC14000 When a master does not wish to relinquish the bus (by generating a STOP condition), a repeated START (Sr) must be generated. This condition is identical to the START (SDA goes high-to-low while SCL is high), but occurs after a data transfer acknowledge pulse (not the FIGURE 7-8: MASTER - TRANSMITTER SEQUENCE ...

Page 47

... This is shown in the Figure 7-12. 1996 Microchip Technology Inc. FIGURE 7-11: MULTI-MASTER ARBITRATION (2 MASTERS) DATA 1 DATA 2 SDA SCL 2 FIGURE 7-12 CLOCK SYNCHRONIZATION CLK 1 counter CLK reset 2 SCL Preliminary PIC14000 transmitter 1 loses arbitration DATA 1≠ SDA start counting wait HIGH period state DS40122B-page 47 ...

Page 48

... PIC14000 2 FIGURE 7-13 BLOCK DIAGRAM MISC<4> RC6/SCLA RC7/SDAA 4:2 MUX RD0/SCLB RD1/SDAB 2 7 Operation 2 2 The I C module mode fully implements all slave functions, and provides support in hardware to facilitate software implementations of the master functions. The module implements the standard and fast mode specifi ...

Page 49

... AC timing specifications. C module 2 Generate ACK Pulse CSR-> I CBUF Yes Yes Preliminary PIC14000 2 CSR value is not loaded into the 2 CIF bit is set. Table 7-2 shows what 2 COV bits. The shaded boxes 2 CBUF register while the Set I CIF bit 2 ...

Page 50

... PIC14000 7.5.1.1 ADDRESSING 2 Once the I C module has been enabled, the I for a START to occur. Following the START, the 8-bits 2 are shifted into the I CSR. All incoming bits are sampled with the rising edge of the clock (SCL) line The I CSR<7:1> is compared to the I The address is compared on the falling edge of the eighth clock (SCL) pulse ...

Page 51

... CKP bit (I R ACK SCL held low while CPU 2 responds to I CIF cleared in software 2 I CBUF is written in software Set bit after writing to I Preliminary PIC14000 2 CBUF register, which also loads 2 CCON<4>). Transmitting Data ACK From I CIF interrupt service routine 2 CBUF DS40122B-page 51 ...

Page 52

... PIC14000 7.5.2 MASTER MODE Master mode operation is supported by interrupt generation on the detection of the START and STOP. The STOP(P) and START(S) bits are cleared from a 2 reset or when the I C module is disabled. Control of the bus may be taken when the P bit is set, or the bus is idle and both the S and P bits are cleared ...

Page 53

... CSEL SMBUS R/W R/W R Function 2 C CLK signal (hold low) when receive data buffer is full (refer transfers while preventing interruptions of A CLK stretch clock and data lines clock and data lines. Preliminary PIC14000 Bit 2 Bit 1 Bit 0 INCLKEN OSC2 OSC1 R/W R DS40122B-page 53 ...

Page 54

... PIC14000 FIGURE 7-17: OPERATION OF THE I IDLE_MODE (7-bit): if (Addr_match RCV_MODE ((I2CBUF=Full COV = 1 Set I COV; Do not acknowledge else { transfer I CSR I CBUF; send ACK = Receive 8-bits in I CSR; Set interrupt; XMIT_MODE: While ((I2CBUF = Empty) AND (CKP=0)) Hold SCL Low; Send byte; Set interrupt; if (ACK Received = 1) ...

Page 55

... SMBus AND ACCESS.bus CONSIDERATIONS PIC14000 is compliant with the SMBus specification published by Intel. Some key points to note regarding the bus specifications and how it pertains to the PIC14000 hardware are listed below: • SMBus has fixed input voltage thresholds. PIC14000 I/O buffers have programmable levels ...

Page 56

... PIC14000 NOTES: DS40122B-page 56 Preliminary 1996 Microchip Technology Inc. ...

Page 57

... ANALOG MODULES FOR A/D CONVERSION 8.1 Overview The PIC14000 includes analog components to create a slope A/D converter including: • Comparator • 4-bit programmable current source • 16-channel analog mux • 16-bit timer with capture register Each channel is converted independently by means of a slope conversion method using a single precision comparator ...

Page 58

... PIC14000 Caution: Reading or writing the ADTMR register during an A/D conversion cycle can pro- duce unpredictable results and is not recommended. Note: The correct sequence for writing the ADTMR register is HI byte followed by LO byte. Reversing this order will prevent the A/D timer from running. ...

Page 59

... Bit 3 b13 b12 b11 R/W R/W R Bit 5 Bit 4 Bit R/W R/W R Bit 5 Bit 4 Bit 3 b13 b12 b11 R/W R/W R Preliminary PIC14000 XX+8 Bit 2 Bit 1 Bit R/W R/W R Bit 2 Bit 1 Bit 0 b10 b9 b8 R/W R/W R Bit 2 Bit 1 Bit R/W R/W R Bit 2 Bit 1 ...

Page 60

... PIC14000 8.4 A/D Comparator The PIC14000 includes a high gain comparator for A/D conversions. The positive input terminal of the A/D comparator is connected to the output of an analog mux through an RC low-pass filter. The nominal time-constant for the RC filter is 3.5 s. The negative input terminal is connected to the external 0.1 F (nom- inal) ramp capacitor ...

Page 61

... The capacitor must be discharged at the beginning of each conversion cycle by asserting ADRST (ADCON0<1>) for at least 200 s to allow a complete discharge. Asserting ADRST disables the current sources inter- nally. Current flow begins when ADRST is cleared. Preliminary PIC14000 DS40122B-page 61 ...

Page 62

... PIC14000 8.7 A/D Control Registers Two A/D control registers are provided on the PIC14000 to control the conversion process. These are ADCON0 (1Fh) and ADCON1 (9Fh). Both registers are readable and writable. TABLE 8-3: A/D CONTROL AND STATUS REGISTER 0 1Fh Bit 7 Bit 6 ADCON0 ...

Page 63

... PORTA AND PORTD CONFIGURATION ADCON1<1:0> ADCON1<3:2> Legend Analog input Digital I/O 1996 Microchip Technology Inc. Bit 5 Bit 4 Bit 3 PCFG3 R/W R/W R/W R RA0/AN0 RA1/AN1 RD4/AN4 RD5/AN5 Preliminary PIC14000 Bit 2 Bit 1 Bit 0 PCFG2 PCFG1 PCFG0 R/W R/W R RA2/AN2 RA3/AN3 RD6/AN6 RD7/AN7 DS40122B-page 63 ...

Page 64

... PIC14000 8.8 A/D Speed, Resolution and Capacitor Selection The conversion time for the A/D converter on the PIC14000 can be calculated using the equation: N Conversion Time = (1/Fosc Where Fosc is the oscillator frequency and N is the number of bits of resolution desired. Therefore at 4MHz, the conversion time for 16 bits is 16 ...

Page 65

... OTHER ANALOG MODULES The PIC14000 has additional analog modules for mixed signal applications. These include: • bandgap voltage reference • comparators with programmable references • internal temperature sensor • voltage regulator control 9.1 Bandgap Voltage Reference The bandgap reference circuit is used to generate a 1 ...

Page 66

... PIC14000 FIGURE 9-1: LEVEL-SHIFT NETWORKS V DD Input Protection Diodes RA1/AN1 RD5/AN5 ADZERO (ADCON<0>) LSOFF (SLPCON<4>) 9.3 Slope Reference Voltage Divider The slope reference voltage divider circuit, consisting of a buffer amplifier and resistor divider, is connected to the internal bandgap reference producing two other voltage references called SREFHI and SREFLO (see Figure 9-2) ...

Page 67

... Comparator and Programmable Reference Modules 9.5.1 COMPARATORS The PIC14000 includes two independent low-power comparators for comparing the programmable refer- ence outputs to either the RA1/AN1 or RA5/AN5 pins. The negative input of each comparator is tied to one of the reference outputs as shown in Figure 9-3. The comparator positive inputs are connected to the output of the RA1/AN1 and RA5/AN5 level-shift networks ...

Page 68

... PIC14000 Two registers PREFA (9Bh) and PREFB (9Ch) are used to select the reference output voltages. The PREFx<7:3> bits select the output from the coarse lad- der, while PREFx<2:0> bits are for the fine-tune adjust- ment. Table 9-1 and Table 9-2 show the reference decoding ...

Page 69

... Preliminary PIC14000 Nominal Output Voltage Range (V) 0.8000 - 0.8500 0.7500 - 0.8000 0.7000 - 0.7500 0.6500 - 0.7000 0.6000 - 0.6500 0.5500 - 0.6000 0.5450 - 0.5500 0.5400 - 0.5450 0.5350 - 0.5400 0.5300 - 0.5350 0.5250 - 0.5300 0.5200 - 0.5250 0.5150 - 0.5200 0.5100 - 0.5150 0.5050 - 0.5100 0.5000 - 0.5050 0.4950 - 0.5000 0.4900 - 0.4950 ...

Page 70

... PIC14000 TABLE 9-2: PROGRAMMABLE REFERENCE FINE RANGE SELECTION Fractional Value Of The PREFx<2:0> Coarse Range FIGURE 9-4: PROGRAMMABLE REFERENCE TRANSFER FUNCTION Upper Range 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0 DS40122B-page 70 1 Middle Range 00 PREFx Value (hex) Preliminary ...

Page 71

... RC0/REFA and RC1/CMPA assume normal PORTC function. Comparator A Polarity Bit B0 CPOLA 1 = Invert the output of comparator not invert the output of comparator A. 1996 Microchip Technology Inc. Bit 5 Bit 4 Bit 3 CMBOE CPOLB U CMAOUT R/W R/W — Preliminary PIC14000 Bit 2 Bit 1 Bit 0 CMAOE CPOLA R R/W R DS40122B-page 71 ...

Page 72

... PIC14000 FIGURE 9-6: PREFA REGISTER 9Bh Bit 7 Bit 6 PREFA PRA7 PRA6 Read/Write R/W R/W POR value 00h 0 0 Bit Name PRA7 B7-B0 PRA6 PRA5 PRA4 PRA3 PRA2 PRA1 PRA0 FIGURE 9-7: PREFB REGISTER 9Ch Bit 7 Bit 6 PREFB PRB7 PRB6 Read/Write R/W ...

Page 73

... VDD of about 5V, after the voltage drop across the FET. FIGURE 9-8: VOLTAGE REGULATOR CIRCUIT PIC14000 1-10 A recommended 6V Typical 1996 Microchip Technology Inc. V REG N-FET (enhancement Optional External Voltage Regulator (Not required for supply voltages below 6.0 V) Preliminary PIC14000 Main Supply DS40122B-page 73 ...

Page 74

... PIC14000 NOTES: DS40122B-page 74 Preliminary 1996 Microchip Technology Inc. ...

Page 75

... SPECIAL FEATURES OF THE CPU What sets apart a microcontroller from other processors are special circuits to deal with the needs of real time applications. The PIC14000 has a host of such features intended to maximize system reliability, minimize cost through elimination components, provide power saving operating modes and offer code protection. These are: • ...

Page 76

... PIC14000 10.2 Oscillator Configurations The PIC14000 can be operated with two different oscil- lator options. The user can program a configuration word (CONFIG<0>) to select one of these: • HS High Speed Crystal/Ceramic Resonator (CONFIG<0> =‘0’) • IN Internal oscillator (CONFIG<0> =‘1’) (Default) 10 ...

Page 77

... The 10 k potentiometer biases the 74AS04 in the linear region. This could be used for external oscillator designs. FIGURE 10-5: EXTERNAL PARALLEL C2 + 10k 10k 20pF +/-.5% +/-.5% +/-.5% Preliminary PIC14000 CAPACITOR SELECTION FOR CRYSTAL OSCILLATOR > 4.5V 30pf is recommended. RESONANT CRYSTAL OSCILLATOR CIRCUIT To Other ...

Page 78

... Note 1: This is a separate oscillator from the RC oscillator of the CLKIN pin. DS40122B-page 78 10.3 Reset The PIC14000 differentiates between various kinds of reset: • Power-on Reset (POR) • MCLR Reset during normal operation • MCLR Reset during SLEEP • WDT Reset (normal operation) Some registers are not affected in any reset condition ...

Page 79

... Low-Voltage Detector The PIC14000 contains an integrated low-voltage detector. The supply voltage is divided and compared to the bandgap reference output. If the supply voltage (V ) falls below V -, then the low-voltage detector DD TRIP will cause LVD (PCON<0> reset. This bit can be read by software to determine if a low voltage condition occurred ...

Page 80

... Addr: 03h 000h 0001 1xxx 000h 0001 1uuu 000h 0001 0uuu 000h 0000 1uuu uuu0 0uuu ( uuu1 0uuu Preliminary POWER-UP MCLR C PIC14000 powers down will limit any current PCON Addr: 8Eh 0--- --0x u--- --ux u--- --ux u--- --ux u--- --ux u--- --ux 1996 Microchip Technology Inc. ...

Page 81

... Preliminary PIC14000 Wake-up from SLEEP through interrupt Wake up from SLEEP through WDT time-out uuuu uuuu - uuuu uuuu ( (3) uuu? ?uuu uuuu uuuu ...

Page 82

... PIC14000 10.6 Interrupts The PIC14000 has several sources of interrupt: • External interrupt from OSC1/PBTN pin 2 • port interrupt • PORTC interrupt on change (pins RC<7:4> only) • Timer0 overflow • A/D timer overflow • A/D converter capture event • Programmable reference comparator interrupt This section addresses the external and Timer0 interrupts only ...

Page 83

... The timing of the external interrupt is shown in Figure 10-10 Interrupt Latency (Note 2) PC+1 PC+1 Inst (0004h) Inst (PC+1) — Inst (PC) Dummy Cycle Dummy Cycle Preliminary PIC14000 0004h 0005h Inst (0005h) Inst (0004h) DS40122B-page 83 ...

Page 84

... PIC14000 10.6.2 TIMER0 INTERRUPT An overflow (FFh 00h) in Timer0 will set the T0IF (INTCON<2>) flag. Setting T0IE enables the interrupt. 10.6.3 PORTC INTERRUPT ON CHANGE An input change on PORTC<7:4> sets RCIF (PIR1<2>). Setting RCIE (PIE1<2>) enables the inter- rupt. For operation of PORTC, refer to Section 5.2. ...

Page 85

... Internal clocks 0 (2 cycle delay) PSA Prescaler/ Postscaler 8-bit Counter 8-to-1 MUX 1 0 PSA WDT Time-out Note: T0CS, T0SE, PSA, PS2:PS0 correspond to (OPTION<5:0>). Preliminary PIC14000 be permanently disabled by HIBERNATE Mode. Refer to Data bus 8 TMR0 PSout Set T0IF Interrupt on Overflow PS2:PS0 DS40122B-page 85 ...

Page 86

... Section 6.3 for prescaler switching considerations. 10.8 Power Management Options The PIC14000 has several power management options to prolong battery lifetime. The SLEEP instruc- tion halts the CPU and can turn off the on-chip oscilla- tors. The CPU can be in SLEEP mode, yet the A/D converter can continue to run ...

Page 87

... The MCLR pin must logic high level (V ). The contribution from any on-chip pull-up IH resistors should be considered. 10.8.2 WAKE-UP FROM SLEEP The PIC14000 can wake up from SLEEP through one of the following events: 1. External reset input on MCLR pin 2. Watchdog Timer time-out (if WDT is enabled) 3. ...

Page 88

... PIC14000 FIGURE 10-12: SLPCON REGISTER 8Fh Bit 7 Bit 6 SLPCON HIBEN — Read/Write R/W U POR value 3Fh 0 0 Bit Name Hibernate Mode Select B7 HIBEN 1 = Hibernate mode enable 0 = Normal operating mode B6 – Unimplemented. Read as ‘0’ References Power Control (bandgap reference, low voltage detector, ...

Page 89

... In-Circuit Serial Programming PIC14000 can be serially programmed while in the end application circuit. This is simply done with two lines for clock and data, and three other lines for power, ground and the programming voltage. This allows customers to ...

Page 90

... PIC14000 NOTES: DS40122B-page 90 Preliminary 1996 Microchip Technology Inc. ...

Page 91

... INSTRUCTION SET SUMMARY The PIC14000’s instruction set is the same as PIC16CXX. Each instruction is a 14-bit word divided into an OPCODE which specifies the instruction type and one or more operands which further specify the operation of the instruction. The instruction set sum- mary in Table 11-2 lists byte-oriented, bit-oriented, and literal and control operations ...

Page 92

... PIC14000 TABLE 11-2: PIC14000 INSTRUCTION SET Mnemonic, Description Operands BYTE-ORIENTED FILE REGISTER OPERATIONS ADDWF f, d Add W and f ANDWF f, d AND W with f CLRF f Clear f CLRW - Clear W COMF f, d Complement f DECF f, d Decrement f DECFSZ f, d Decrement f, Skip if 0 INCF f, d Increment f INCFSZ f, d Increment f, Skip if 0 ...

Page 93

... Cycles: Example ANDWF f,d Syntax: Operands: Operation: Status Affected: Encoding: dfff ffff Description: . Words: Cycles: Example Preliminary PIC14000 And Literal with W [ label ] ANDLW 255 (W) .AND. (k) ( 1001 kkkk kkkk The contents of W register are AND’ed with the eight bit literal 'k'. The . ...

Page 94

... PIC14000 BCF Bit Clear f Syntax: [ label ] BCF f,b Operands 127 Operation: 0 (f<b>) Status Affected: None Encoding: 01 00bb Description: Bit 'b' in register 'f' is cleared Words: 1 Cycles: 1 Example BCF FLAG_REG, 7 Before Instruction FLAG_REG = 0xC7 After Instruction FLAG_REG = 0x47 BSF Bit Set f Syntax: [ label ] BSF ...

Page 95

... Example FLAG,1 PROCESS_CODE address FALSE address TRUE CLRW Syntax: Operands: Operation: PC<12:11> Status Affected: Encoding: kkkk kkkk Description: Words: Cycles: Example THERE Preliminary PIC14000 Clear f [ label ] CLRF 127 00h ( 0001 1fff ffff The contents of register 'f' are cleared and the Z bit is set ...

Page 96

... PIC14000 CLRWDT Clear Watchdog Timer Syntax: [ label ] CLRWDT Operands: None Operation: 00h WDT 0 WDT prescaler Status Affected: TO, PD Encoding: 00 0000 Description: CLRWDT instruction resets the Watch- dog Timer. It also resets the prescaler of the WDT. Status bits TO and PD are set. Words: 1 Cycles: ...

Page 97

... Example IORLW Syntax: Operands: Operation: Status Affected: Encoding: dfff ffff Description: Words: Cycles: Example 0xFF 0 0x00 1 Preliminary PIC14000 Increment f, Skip label ] INCFSZ f 127 d [0,1] ( (dest), skip if result = 0 None 00 1111 dfff ffff The contents of register 'f' are incre- mented the result is placed in the W register the result is placed back in register 'f' ...

Page 98

... PIC14000 IORWF Inclusive OR W with f Syntax: [ label ] IORWF Operands 127 d [0,1] Operation: (W) .OR. (f) (dest) Status Affected: Z Encoding: 00 0100 Description: Inclusive OR the W register with regis- ter 'f the result is placed in the W register the result is placed back in register 'f'. Words: 1 Cycles: 1 Example IORWF RESULT, 0 ...

Page 99

... Words: Cycles: Example RETLW Syntax: Operands: Operation: Status Affected: 0010 Encoding: Description: Words: Cycles: Example TABLE Preliminary PIC14000 Return from Interrupt [ label ] RETFIE None TOS PC, 1 GIE None 00 0000 0000 1001 Return from Interrupt. Stack is POPed and Top of Stack (TOS) is loaded in the PC ...

Page 100

... PIC14000 RETURN Return from Subroutine Syntax: [ label ] RETURN Operands: None Operation: TOS PC Status Affected: None Encoding: 00 0000 Description: Return from subroutine. The stack is POPed and the top of the stack (TOS) is loaded into the program counter. This is a two cycle instruction. Words: ...

Page 101

... Microchip Technology Inc. SUBWF Syntax: Operands: Operation: Status Affected: kkkk kkkk Encoding: Description: Words: Cycles: Example 1: Example 2: Example 3: Preliminary PIC14000 Subtract W from f [ label ] SUBWF f 127 d [0,1] (f) - (W) dest 0010 dfff ffff Subtract (2’s complement method) W reg- ister from register 'f the result is stored in the W register ...

Page 102

... PIC14000 SWAPF Swap Nibbles in f Syntax: [ label ] SWAPF f,d Operands 127 d [0,1] Operation: (f<3:0>) (dest<7:4>), (f<7:4>) (dest<3:0>) Status Affected: None Encoding: 00 1110 Description: The upper and lower nibbles of regis- ter 'f' are exchanged the result is placed in W register the result is placed in register 'f'. ...

Page 103

... MP) assembly to support various package types. In stand- alone mode the PRO MATE II can read, verify or pro- gram PIC16C5X, PIC14000 devices. It can also set configuration and code-protect bits in this mode. 12.5 PICSTART Plus Entry Level Development System PIC14000, The PICSTART programmer is an easy-to-use, low- cost prototype programmer ...

Page 104

... Assembler (MPASM) The MPASM Universal Macro Assembler is a PC- hosted symbolic assembler. It supports all microcon- troller series including the PIC12C5XX, PIC14000, PIC16C5X, PIC16CXX, and PIC17CXX families. MPASM offers full featured Macro capabilities, condi- tional assembly, and several source and listing formats. ...

Page 105

... Microchips HCS Secure Data Products. The HCS eval- uation kit includes an LCD display to show changing codes, a decoder to decode transmissions, and a pro- gramming interface to program test transmitters. Preliminary PIC14000 demon- – Application Code and secure serials. Disk is included to aid in trade- Evaluation and ...

Page 106

... TABLE 12-1: DEVELOPMENT TOOLS FROM MICROCHIP 1996 Microchip Technology Inc. Preliminary PIC14000 DS40122B-page 106 ...

Page 107

... ELECTRICAL CHARACTERISTICS FOR PIC14000 ABSOLUTE MAXIMUM RATINGS † Ambient temperature under bias.............................................................................................................-55 C to+ 125 C Storage Temperature ............................................................................................................................. - +150 C Voltage on any pin with respect to V (except V SS Voltage on V with respect to V .............................................................................................................. Voltage on MCLR with respect to V (Note 2) ............................................................................................... Total power Dissipation (Note 1) ..............................................................................................................................1.0 W Maximum Current out of V pin ...

Page 108

... Measured with all inputs at rails loads values of individual analog module cannot be tested independently but are characterized Worst-case I conditions with all configuration bits unprogrammed. Programming configuration bits PD may reduce DS40122B-page 108 PIC14000 Standard Operating Conditions (unless otherwise stated) Operating temperature - Operating voltage V = 2.7V to 6.0V ...

Page 109

... OL OL — — 0 -0.7 — — 2.4 — — -0.7 — — OSC2 400 pF Preliminary PIC14000 for industrial and TA +70 C for commercial Conditions = 5V PIN Pin at hi-impedance PIN PIN PIN DD = 8.5mA, V -4.5V 1.6mA, V -4.5V -3.0mA, V =4.5V -2.0mA, V =4.5V -1.3mA, V =4.5V DS40122B-page 109 ...

Page 110

... PIC14000 13.3 Timing Parameter Symbology The timing parameter symbols have been created following one of the following formats: 1. TppS2ppS 2. TppS T F Frequency Lowercase subscripts (pp) and their meanings CLKOUT di SDI io I/O port mc MCLR Uppercase letters and their meanings Fall H High I Invalid (Hi-impedance) L Low ...

Page 111

... Preliminary PIC14000 Units Conditions MHz HS osc mode (PIC14000-04) MHz HS osc mode (PIC14000-20) MHz HS osc mode (PIC14000-04) MHz HS osc mode (PIC14000-20 osc mode (PIC14000-04 osc mode (PIC14000-20 osc mode (PIC14000-04 osc mode (PIC14000-20 4/F CY OSC ns HS oscillator ns HS oscillator DS40122B-page 111 ...

Page 112

... PIC14000 FIGURE 13-2: LOAD CONDITIONS Load condition 1 Pin RL = 464 DS40122B-page 112 Load condition Pin V SS for all pins except OSC2 for OSC2 output Preliminary 1996 Microchip Technology Inc. ...

Page 113

... T +25 — — — — 100 — 0 — — 10 — — 20 — OSC Preliminary PIC14000 new value Max Units Conditions 30 ns Note Note Note Note 1 0.5T +20 ns Note 1 CY — ns Note 1 — ns Note 100 ns — ...

Page 114

... PIC14000 FIGURE 13-4: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER (HS MODE) AND POWER-UP TIMER TIMING V DD MCLR Internal POR 33 PWRT Timeout 32 OSC Timeout Internal RESET Watchdog Timer RESET I/O Pin Note: Refer to Figure 13-2 for load conditions TABLE 13-3: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER AND POWER-UP ...

Page 115

... Data in “Typ” column unless otherwise stated. These parameters are for design guidance only and are not tested. 1996 Microchip Technology Inc Min Typ† No Prescaler 0 20* — CY With Prescaler 10* — No Prescaler 0 20* — CY With Prescaler 10* — 40* — Preliminary PIC14000 Max Units Conditions — ns — ns — ns — ns — prescale value ( ..., 256) DS40122B-page 115 ...

Page 116

... PIC14000 2 FIGURE 13- BUS START/STOP BITS TIMING SCL SDA START Condition Note: Refer to Figure 13-2 for load conditions 2 TABLE 13- BUS START/STOP BITS REQUIREMENTS Parameter Sym Characteristic No START condition SU STA Setup time START condition HD STA Hold time STOP condition SU STO Setup time STOP condition ...

Page 117

... Units Conditions s PIC14000 must operate at a minimum of 1.5 MHz s PIC14000 must operate at a minimum of 10 MHz s PIC14000 must operate at a minimum of 1.5 MHz s PIC14000 must operate at a minimum of 10 MHz specifi from b 10-400 specifi from b 10-400 pF s Only relevant for repeated ...

Page 118

... PIC14000 13.5 DC and AC Characteristics Graphs and Tables for PIC14000 FIGURE 13-9: TYPICAL I V PD4 DETERMINED. FIGURE 13-11: V (INPUT THRESHOLD VOLTAGE) OF OSC1 INPUT (IN HS MODE 3.60 3.40 3.20 3.00 2.80 2.60 2.40 2.20 2.00 1.80 1.60 1.40 1.20 1.00 3.0 3.5 DS40122B-page 118 ...

Page 119

... FIGURE 13-12: TYPICAL OPERATING SUPPLY CURRENT 10,000 1,000 100 10 1 10,000 100,000 FIGURE 13-13: MAXIMUM OPERATING SUPPLY CURRENT 1996 Microchip Technology Inc. FREQ (EXT CLOCK 1,000,000 10,000,000 Frequency (Hz) FREQ (EXT CLOCK, - DETERMINED. Preliminary PIC14000 6.0 5.5 5.0 4.5 4.0 3.5 3.0 100,000,000 DS40122B-page 119 ...

Page 120

... PIC14000 FIGURE 13-14: MAXIMUM I PD1 VS FIGURE 13-15: WATCHDOG TIMER TIME-OUT PERIOD ( -40 -30 -20 -10 DS40122B-page 120 FREQ (EXT CLOCK, - DETERMINED. ) VS. TEMPERATURE (TYPICAL) WDT Temperature ( C) Preliminary V = 100 1996 Microchip Technology Inc. ...

Page 121

... Microchip Technology Inc. FIGURE 13-18 -10 -15 -20 - FIGURE 13-19 -10 -15 -20 Min @ 85 C -25 Typ @ 25 C -30 -35 -40 Max @ -40 C -45 - *NOTE: All pins except RC6, RC7, RD0, RD1,OSC2 Preliminary PIC14000 3V 1 (Volts 5V 1.5 2 2.5 3 3 (Volts) OH DS40122B-page 121 ...

Page 122

... PIC14000 FIGURE 13-20 3V Min @ - Typ @ Min @ + 0 (Volts) OL DS40122B-page 122 FIGURE 13-21 2 0.5 1 *NOTE: All pins except OSC2 Preliminary 5V Min @ -40 C Typ @ 25 C Min @ +85 C 2.5 3 3.5 4 1 (Volts) OL 1996 Microchip Technology Inc. ...

Page 123

... PIC14000 14.0 ANALOG SPECIFICATIONS: PIC14000-04 (COMMERCIAL, INDUSTRIAL) Standard Operating Conditions (unless otherwise stated) Operating Temperature: - +85 C for industrial +70 C for commercial V range: 2.7V (min) to 6.0V (max) unless otherwise stated. DD Characteristic Sym. Bandgap Voltage Reference Output Voltage vo(vref) Turn-on Settling Time to < 0.1% ton(vref) Temperature Coeffi ...

Page 124

... PREFx<7:3> = constant 0.414 0.523 0.632 V PREFx<7:0> (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 3.8 4.8 5.8 mV PREFx<2:0> = constant 0.38 0.46 0.54 mV PREFx<7:3> = constant Preliminary PIC14000 Conditions Notes DS40122B-page 124 ...

Page 125

... PIC14000 Standard Operating Conditions (unless otherwise stated) Operating Temperature: - +85 C for industrial +70 C for commercial V range: 2.7V (min) to 6.0V (max) unless otherwise stated. DD Characteristic Sym. Programmable Reference(s) (continued) Lower Range Output Voltage vo(pref) Coarse Resolution resc(pref) Fine Resolution resf(pref) Relative accuracy (linearity ...

Page 126

... A CMOFF = 1 -3.4 -4.8 -6 RA1/RD5 = 0V (SUM pin is open) 0.37 0.46 0. RA1/RD5 = 0V, (SUM pin is open) — 0.02 — % — 0.39 — From Tmin to Tmax — 0.2 — %/V From VDDmin to VDDmax — LSOFF = 0 — 0 — A LSOFF = 1 Preliminary PIC14000 Conditions Notes DS40122B-page 126 ...

Page 127

... PIC14000 Standard Operating Conditions (unless otherwise stated) Operating Temperature: - +85 C for industrial +70 C for commercial V range: 2.7V (min) to 6.0V (max) unless otherwise stated. DD Characteristic Sym. Calibration Accuracy Parameter Sym. Slope Reference Ratio K REF Bandgap Reference Voltage K BG Temperature Sensor Output V THERM ...

Page 128

... DEVICES SHOWN) 1.194 1.192 1.190 1.188 1.186 1.184 1.182 1.180 1.178 -40 -30 FIGURE 14-2: PROGRAMMABLE CURRENT SOURCE vs. TEMPERATURE (TYPICAL DEVICES SHOWN) 2.7 2.5 2.3 2.1 1.9 1.7 -40 -30 -20 1996 Microchip Technology Inc. -20 - Temperature ( C) - Temperature ( C) Preliminary PIC14000 100 100 DS40122B-page 128 ...

Page 129

... PIC14000 FIGURE 14-3: TEMPERATURE SENSOR OUTPUT VOLTAGE vs. TEMPERATURE (TYPICAL DEVICES SHOWN) 1.4 1.3 1.2 1.1 1.0 0.9 0.8 -40 -30 FIGURE 14-4: SLOPE REFERENCE RATIO (K (TYPICAL DEVICES SHOWN) 0.1260 0.1258 0.1256 0.1254 0.1252 0.1250 2.5 3.0 DS40122B-page 129 -20 - Temperature ( C) ) vs. SUPPLY VOLTAGE REF 3 ...

Page 130

... DEVICES SHOWN) 0.1260 0.1258 0.1256 0.1254 0.1252 0.1250 0.1248 0.1246 -40 -20 FIGURE 14-6: PROGRAMMABLE REFERENCE OUTPUT vs. TEMPERATURE (TYPICAL) 0.7 0.6 0.5 0.4 0.3 -40 -30 -20 1996 Microchip Technology Inc. ) vs. TEMPERATURE REF Temperature ( C) Fixed Bandgap Reference Voltage - Temperature ( C) Preliminary PIC14000 80 100 DS40122B-page 130 ...

Page 131

... PIC14000 FIGURE 14-7: INTERNAL RC OSCILLATOR FREQUENCY vs. SUPPLY VOLTAGE (TYPICAL DEVICES SHOWN) 4.3 4.2 4.1 4.0 3.9 3.8 3.7 3.6 3.5 2.5 FIGURE 14-8: INTERNAL RC OSCILLATOR FREQUENCY vs. TEMPERATURE (TYPICAL DEVICES SHOWN) 4.4 4.3 4.2 4.1 4.0 3.9 3.8 3.7 3.6 3.5 -40 -30 ...

Page 132

... NOTES: 1996 Microchip Technology Inc. Preliminary PIC14000 DS40122B-page 132 ...

Page 133

... APPENDIX A: PIC16/17 MICROCONTROLLERS A.1 PIC14000 Devices 1996 Microchip Technology Inc. This document was created with FrameMaker Preliminary PIC14000 DS40122B-page 133 ...

Page 134

... PIC14000 A.2 PIC16C5X Family of Devices DS40122B-page 134 Preliminary 1996 Microchip Technology Inc. ...

Page 135

... A.3 PIC16CXXX Family of Devices 1996 Microchip Technology Inc. Preliminary PIC14000 DS40122B-page 135 ...

Page 136

... PIC14000 A.4 PIC16C6X Family of Devices DS40122B-page 136 Preliminary 1996 Microchip Technology Inc. ...

Page 137

... A.5 PIC16C7X Family of Devices 1996 Microchip Technology Inc. Preliminary PIC14000 DS40122B-page 137 ...

Page 138

... PIC14000 A.6 PIC16C8X Family of Devices DS40122B-page 138 Preliminary 1996 Microchip Technology Inc. ...

Page 139

... A.7 PIC16C9XX Family Of Devices 1996 Microchip Technology Inc. Preliminary PIC14000 DS40122B-page 139 ...

Page 140

... PIC14000 A.8 PIC17CXX Family of Devices DS40122B-page 140 Preliminary 1996 Microchip Technology Inc. ...

Page 141

... PIC16C83, PIC16CR83, PIC16C84, PIC16C84A, PIC16CR84 PIC16C55, PIC16C57, PIC16CR57B PIC16C62, PIC16CR62, PIC16C62A, PIC16C63, PIC16C72, PIC16C73, PIC16C73A PIC16C64, PIC16CR64, PIC16C64A, PIC16C65, PIC16C65A, PIC16C74, PIC16C74A PIC17C42, PIC17C43, PIC17C44 1996 Microchip Technology Inc socket Package 8-pin 18-pin 20-pin 28-pin 28-pin 40-pin 40-pin Preliminary PIC14000 DS40122B-page 141 ...

Page 142

... PIC14000 NOTES: DS40122B-page 142 Preliminary 1996 Microchip Technology Inc. ...

Page 143

... Data Memory .............................................................. 14 Memory Organization ................................................. 13 Program Memory........................................................ 13 MOVF Instruction................................................................ 98 MOVLW Instruction ............................................................ 98 MOVWF Instruction ............................................................ 98 MPASM Assembler .................................................. 103, 104 MP-C C Compiler ............................................................. 105 MPSIM Software Simulator ...................................... 103, 105 N NOP Instruction .................................................................. 99 O Opcode ............................................................................... 91 OPTION.............................................................................. 18 OPTION Instruction ............................................................ 99 P Paging, Program Memory................................................... 23 PCL..................................................................................... 23 PCLATH ............................................................................. 23 Preliminary PIC14000 DS40122B-page 143 ...

Page 144

... On An I/O Port ........................................... 35 Example 6-1: Changing Prescaler (TIMER0 WDT) ....... 40 Example 6-2: Changing Prescaler (WDT TIMER0) ....... 40 Example 10-1: Saving STATUS and W Registers in RAM........................................................ 84 LIST OF FIGURES Figure 3-1: PIC14000 Block Diagram ............................ 8 Figure 3-2: Clock/Instruction Cycle .............................. 11 Figure 4-1: PIC14000 Program Memory Map and Stack .................................................. 13 Figure 4-2: Register File Map ...

Page 145

... Freq (Ext clock, DD -40 to +85 C) .......................................... 119 Figure 13-14: Maximum Freq (Ext clock, PD -40 to +85 C) .......................................... 120 Figure 13-15: PIC14000 Watchdog Timer Time-Out Period (T ) vs. Temperature (Typical) 120 WDT 1996 Microchip Technology Inc. Figure 13-16: WDT Timer Time-out Period vs V Figure 13-17: Transconductance (gm Oscillator ...

Page 146

... PIC14000 Table 13-2: CLKOUT and I/O Timing Requirements .. 113 Table 13-3: Reset, Watchdog Timer, Oscillator Start-up Timer And Power-up Timer Requirements .......................................... 114 Table 13-4: Timer0 Clock Requirements .................... 115 2 Table 13- Bus Start/stop Bits Requirements...... 116 2 Table 13- Bus Data Requirements .................... 117 Table A-1: Pin Compatible Devices ...

Page 147

... International Business Machines Corp. Pentium is a trademark of Intel Corporation. Windows is a trademark and MS-DOS, Microsoft Windows are registered trade- marks of Microsoft Corporation. CompuServe is a regis- tered trademark of CompuServe Incorporated. All other trademarks mentioned herein are the property of their respective companies. Preliminary PIC14000 960513 DS40122B-page 147 ...

Page 148

... Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Y Device: PIC14000 Questions: 1. What are the best features of this document? 2. How does this document meet your hardware and software development needs you find the organization of this data sheet easy to follow? If not, why? 4 ...

Page 149

... PIC14000 PRODUCT IDENTIFICATION SYSTEM To order or to obtain information (e.g., on pricing or delivery), please use the listed part numbers, and refer to the factory or the listed sales offices. PART NO. -XX X /XX XXX Pattern: Package: Temperature Range: Frequency Range: Device: 1996 Microchip Technology Inc. This document was created with FrameMaker ...

Page 150

... PIC14000 NOTES: DS30444C-page 150 Preliminary 1996 Microchip Technology Inc. ...

Page 151

... NOTES: 1996 Microchip Technology Inc. Preliminary PIC14000 DS30444C-page 151 ...

Page 152

... Serialized Quick Turn Programming (SQTP service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2002, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received QS-9000 quality system ...

Page 153

... Korea Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea 135-882 Tel: 82-2-554-7200 Fax: 82-2-558-5934 Singapore Microchip Technology Singapore Pte Ltd. 200 Middle Road #07-02 Prime Centre Singapore, 188980 Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan Microchip Technology Taiwan 11F-3, No. 207 ...

Related keywords