PIC16F84A Microchip Technology Inc., PIC16F84A Datasheet

no-image

PIC16F84A

Manufacturer Part Number
PIC16F84A
Description
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F84A
Manufacturer:
a
Quantity:
310
Part Number:
PIC16F84A-04-I/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16F84A-04/P
Manufacturer:
MICROCHIP
Quantity:
1 450
Part Number:
PIC16F84A-04E/P
Manufacturer:
MICROCHIP
Quantity:
1 200
Part Number:
PIC16F84A-04I/P
Manufacturer:
MICROCHIP
Quantity:
4 500
Part Number:
PIC16F84A-04I/SO
Manufacturer:
CYPRESS
Quantity:
667
Part Number:
PIC16F84A-20I/P
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16F84A-20I/SS
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16F84A-20P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F84AT-04I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
M
PIC16F84A
Data Sheet
18-pin Enhanced FLASH/EEPROM
8-bit Microcontroller
2001 Microchip Technology Inc.
DS35007B

Related parts for PIC16F84A

PIC16F84A Summary of contents

Page 1

... Enhanced FLASH/EEPROM 2001 Microchip Technology Inc. M PIC16F84A Data Sheet 8-bit Microcontroller DS35007B ...

Page 2

... QS-9000 compliant for its PICmicro 8-bit MCUs code hopping ® ® devices, Serial EEPROMs and microperipheral products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001 certified. 2001 Microchip Technology Inc SEEVAL ...

Page 3

... Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer (OST) • Watchdog Timer (WDT) with its own On-Chip RC Oscillator for reliable operation • Code protection • Power saving SLEEP mode • Selectable oscillator options 2001 Microchip Technology Inc. PIC16F84A Pin Diagrams PDIP, SOIC RA2 RA3 ...

Page 4

... Index .................................................................................................................................................................................................... 79 On-Line Support................................................................................................................................................................................... 83 Reader Response ................................................................................................................................................................................ 84 PIC16F84A Product Identification System ........................................................................................................................................... 85 TO OUR VALUED CUSTOMERS It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and enhanced as new volumes and updates are introduced ...

Page 5

... Manual should be considered a complementary document to this data sheet, and is highly recom- mended reading for a better understanding of the device architecture and operation of the peripheral modules. The PIC16F84A belongs to the mid-range family of the ® PICmicro microcontroller devices. A block diagram of the device is shown in Figure 1-1. ...

Page 6

... PIC16F84A TABLE 1-1: PIC16F84A PINOUT DESCRIPTION PDIP SOIC SSOP Pin Name No. No. No. OSC1/CLKIN OSC2/CLKOUT MCLR RA0 RA1 RA2 RA3 RA4/T0CKI RB0/INT RB1 RB2 RB3 RB4 RB5 RB6 12 12 ...

Page 7

... Program Memory Organization The PIC16FXX has a 13-bit program counter capable of addressing program memory space. For the PIC16F84A, the first (0000h-03FFh) are physically implemented (Figure 2-1). Accessing a loca- tion above the physically implemented address will cause a wraparound. For example, for locations 20h, 420h, 820h, C20h, 1020h, 1420h, 1820h, and 1C20h, the instruction will be the same ...

Page 8

... FSR (Section 2.5). The GPR addresses in Bank 1 are mapped to addresses in Bank example, addressing loca- tion 0Ch or 8Ch will access the same GPR. DS35007B-page 6 FIGURE 2-2: REGISTER FILE MAP - PIC16F84A File Address (1) 00h Indirect addr. Indirect addr. 01h TMR0 ...

Page 9

... T0SE PSA PS2 RP0 — PORTA Data Direction Register — EEIF WRERR WREN — Write buffer for upper 5 bits of the PC T0IE INTE RBIE T0IF PIC16F84A Value on Details Bit 1 Bit 0 Power-on on page RESET 11 ---- ---- 20 xxxx xxxx 11 0000 0000 0001 1xxx 11 ...

Page 10

... Legend Readable bit - n = Value at POR DS35007B-page 8 Note 1: The IRP and RP1 bits (STATUS<7:6>) are not used by the PIC16F84A 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. 2: The C and DC bits operate as a borrow and digit borrow out bit, respectively, in subtraction ...

Page 11

... WDT (PSA = ’1’), TMR0 has a 1:1 prescaler assignment. R/W-1 R/W-1 R/W-1 R/W-1 T0CS T0SE PSA PS2 128 W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared PIC16F84A R/W-1 R/W-1 PS1 PS0 bit Bit is unknown DS35007B-page 9 ...

Page 12

... PIC16F84A 2.3.3 INTCON REGISTER The INTCON register is a readable and writable register that contains the various enable bits for all interrupt sources. REGISTER 2-3: INTCON REGISTER (ADDRESS 0Bh, 8Bh) R/W-0 R/W-0 GIE EEIE bit 7 bit 7 GIE: Global Interrupt Enable bit 1 = Enables all unmasked interrupts 0 = Disables all interrupts ...

Page 13

... INDF register incf FSR ;inc pointer btfss FSR,4 ;all done? goto NEXT ;NO, clear next CONTINUE : ;YES, continue An effective 9-bit address is obtained by concatenating the 8-bit FSR register and the IRP bit (STATUS<7>), as shown in Figure 2-3. However, IRP is not used in the PIC16F84A. DS35007B-page 11 ...

Page 14

... PIC16F84A FIGURE 2-3: DIRECT/INDIRECT ADDRESSING Direct Addressing From Opcode RP1 RP0 6 (2) Bank Select Location Select 00h 0Bh 0Ch Data (1) Memory 4Fh 50h 7Fh Note 1: For memory map detail, see Figure 2-2. 2: Maintain as clear for upward compatibility with future products. 3: Not implemented. DS35007B-page 12 ...

Page 15

... EECON2 (not a physically implemented register) • EEDATA • EEADR EEDATA holds the 8-bit data for read/write, and EEADR holds the address of the EEPROM location being accessed. PIC16F84A devices have 64 bytes of data EEPROM with an address range from 0h to 3Fh. REGISTER 3-1: EECON1 REGISTER (ADDRESS 88h) U-0 — ...

Page 16

... PIC16F84A 3.1 Reading the EEPROM Data Memory To read a data memory location, the user must write the address to the EEADR register and then set control bit RD (EECON1<0>). The data is available, in the very next cycle, in the EEDATA register; therefore, it can be read in the next instruction. EEDATA will hold this value until another read or until it is written to by the user (during a write operation) ...

Page 17

... BSF STATUS, RP0 ; Select Bank 1 MOVLW 0x0F ; Value used to ; initialize data ; direction MOVWF TRISA ; Set RA<3:0> as inputs ; RA4 as output ; TRISA<7:5> are always ; read as ’0’. 2001 Microchip Technology Inc. PIC16F84A FIGURE 4-1: BLOCK DIAGRAM OF PINS RA3:RA0 Data Bus Port Q CK Data Latch D ...

Page 18

... PIC16F84A TABLE 4-1: PORTA FUNCTIONS Name Bit0 Buffer Type RA0 bit0 TTL RA1 bit1 TTL RA2 bit2 TTL RA3 bit3 TTL RA4/T0CKI bit4 ST Legend: TTL = TTL input Schmitt Trigger input TABLE 4-2: SUMMARY OF REGISTERS ASSOCIATED WITH PORTA Address Name Bit 7 Bit 6 05h PORTA — ...

Page 19

... The interrupt-on-change feature is recommended for wake-up on key depression operation and operations where PORTB is only used for the interrupt-on-change feature. Polling of PORTB is not recommended while using the interrupt-on-change feature. 2001 Microchip Technology Inc. PIC16F84A FIGURE 4-3: BLOCK DIAGRAM OF PINS RB7:RB4 (1) RBPU ...

Page 20

... PIC16F84A TABLE 4-3: PORTB FUNCTIONS Name Bit Buffer Type (1) RB0/INT bit0 TTL/ST RB1 bit1 TTL RB2 bit2 TTL RB3 bit3 TTL RB4 bit4 TTL RB5 bit5 TTL (2) RB6 bit6 TTL/ST (2) RB7 bit7 TTL/ST Legend: TTL = TTL input Schmitt Trigger. Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt. ...

Page 21

... Timer0 will clear the prescaler count, but will not change the prescaler assignment. PS OUT 1 Sync with Internal Clocks Programmable 0 Prescaler (2 Cycle Delay) 3 PS2, PS1, PS0 PSA PIC16F84A ). Also, there is a delay in the actual Data Bus 8 TMR0 PS OUT Set Interrupt Flag bit T0IF on Overflow DS35007B-page 19 ...

Page 22

... PIC16F84A 5.2.1 SWITCHING PRESCALER ASSIGNMENT The prescaler assignment is fully under software con- trol (i.e., it can be changed “on the fly” during program execution). Note: To avoid an unintended device RESET, a specific instruction sequence (shown in the PICmicro™ Mid-Range Reference Man- ual, DS33023) must be executed when changing the prescaler assignment from Timer0 to the WDT ...

Page 23

... SPECIAL FEATURES OF THE CPU What sets a microcontroller apart from other processors are special circuits to deal with the needs of real time applications. The PIC16F84A 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 features are: • ...

Page 24

... A series resistor (R ) may be required S for AT strip cut crystals. The PIC16F84A oscillator design requires the use of a parallel cut crystal. Use of a series cut crystal may give a frequency out of the crystal manufacturers specifications. When in XT, LP modes, the device can have an external clock source to drive the OSC1/CLKIN pin (Figure 6-2) ...

Page 25

... C EXT account variation, due to tolerance of the external R and C components. Figure 6-3 shows how an R/C combination is connected to the PIC16F84A. FIGURE 6- EXT appropriate recom- C EXT ...

Page 26

... PIC16F84A 6.3 RESET The PIC16F84A differentiates between various kinds of RESET: • Power-on Reset (POR) • MCLR during normal operation • MCLR during SLEEP • WDT Reset (during normal operation) • WDT Wake-up (during SLEEP) Figure 6-4 shows a simplified block diagram of the On-Chip RESET Circuit. The MCLR Reset path has a noise filter to ignore small pulses ...

Page 27

... PIC16F84A Wake-up from SLEEP: – through interrupt – through WDT Time-out uuuu uuuu ---- ---- uuuu uuuu ( (3) uuuq quuu uuuu uuuu ---u uuuu uuuu uuuu ...

Page 28

... PIC16F84A 6.4 Power-on Reset (POR) A Power-on Reset pulse is generated on-chip when V rise is detected (in the range of 1.2V - 1.7V take advantage of the POR, just tie the MCLR pin directly (or through a resistor eliminate external RC components usually needed to create Power-on Reset. A minimum rise time for V must be met for this to operate properly. See Electrical Specifications for details ...

Page 29

... MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET FIGURE 6-8: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED TO V TIME V DD MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET 2001 Microchip Technology Inc. PIC16F84A DD T PWRT T OST DD T PWRT T OST ): FAST PWRT T ...

Page 30

... Then bringing MCLR high, execution will begin immediately (Figure 6-6). This is useful for testing purposes or to synchronize more than one PIC16F84A device when operating in parallel. Table 6-6 shows the significance of the TO and PD bits. Table 6-3 lists the RESET conditions for some special registers, while Table 6-4 lists the RESET conditions for all the registers ...

Page 31

... Interrupts The PIC16F84A has 4 sources of interrupt: • External interrupt RB0/INT pin • TMR0 overflow interrupt • PORTB change interrupts (pins RB7:RB4) • Data EEPROM write complete interrupt The interrupt control register (INTCON) records individual interrupt requests in flag bits. It also contains the individual and global interrupt enable bits. ...

Page 32

... PIC16F84A 6.9 Context Saving During Interrupts During an interrupt, only the return PC value is saved on the stack. Typically, users wish to save key register values during an interrupt (e.g., W register and STATUS register). This is implemented in software. The code in Example 6-1 stores and restores the STATUS and W register’s values. The user defined ...

Page 33

... MUX PSA • 0 MUX WDT Time-out Bit 5 Bit 4 Bit 3 Bit 2 (1) (2) (2) PWRTE WDTE T0CS T0SE PSA PS2 PIC16F84A 8 PS2:PS0 To TMR0 (Figure 5-2) 1 PSA Value on Value on all Bit 1 Bit 0 Power-on other Reset RESETS FOSC1 FOSC0 (2) PS1 PS0 1111 1111 1111 1111 ...

Page 34

... PIC16F84A 6.11 Power-down Mode (SLEEP) A device may be powered down (SLEEP) and later powered up (wake-up from SLEEP). 6.11.1 SLEEP The Power-down mode is entered by executing the SLEEP instruction. If enabled, the Watchdog Timer is cleared (but keeps running), the PD bit (STATUS<3>) is cleared, the TO bit (STATUS<4>) is set, and the oscillator driver is turned off ...

Page 35

... Only the four Least Significant bits of ID location are usable. 6.14 In-Circuit Serial Programming PIC16F84A microcontrollers can 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 ...

Page 36

... PIC16F84A NOTES: DS35007B-page 34 2001 Microchip Technology Inc. ...

Page 37

... Byte-oriented operations • Bit-oriented operations • Literal and control operations 2000 Microchip Technology Inc. PIC16F84A All instructions are executed within one single instruc- tion cycle, unless a conditional test is true or the pro- gram counter is changed as a result of an instruction. In this case, the execution takes two instruction cycles with the second cycle executed as a NOP ...

Page 38

... PIC16F84A TABLE 7-2: PIC16CXXX 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 39

... Operation: (W) .AND. (f) (destination) Status Affected: Z Description: AND the W register with register 'f the result is stored in the W register the result is stored back in register 'f'. 2000 Microchip Technology Inc. PIC16F84A BCF Bit Clear f Syntax: [ label ] BCF f,b Operands 127 ...

Page 40

... PIC16F84A BTFSC Bit Test, Skip if Clear Syntax: [ label ] BTFSC f,b Operands 127 Operation: skip if (f<b> Status Affected: None Description: If bit ’b’ in register ’f’ is ’1’, the next instruction is executed. If bit ’b’ in register ’f’ is ’0’, the next ...

Page 41

... Status Affected: Z Description: The contents of register ’f’ are incremented. If ’d’ the result is placed in the W register. If ’d’ the result is placed back in register ’f’. 2000 Microchip Technology Inc. PIC16F84A INCFSZ Increment f, Skip if 0 Syntax: [ label ] INCFSZ f,d Operands ...

Page 42

... PIC16F84A MOVF Move f Syntax: [ label ] MOVF f,d Operands 127 d [0,1] Operation: (f) (destination) Status Affected: Z Description: The contents of register f are moved to a destination dependant upon the status des- tination is W register the destination is file register f itself useful to test a file register, since status flag Z is affected ...

Page 43

... The power-down status bit cleared. Time-out status bit set. Watchdog Timer and its prescaler are cleared. The processor is put into SLEEP mode with the oscillator stopped. 2000 Microchip Technology Inc. PIC16F84A SUBLW Subtract W from Literal [ label ] SUBLW k Syntax: Operands: 0 ...

Page 44

... PIC16F84A XORLW Exclusive OR Literal with W Syntax: [ label ] XORLW k Operands 255 Operation: (W) .XOR Status Affected: Z Description: The contents of the W register are XOR’ed with the eight-bit lit- eral 'k'. The result is placed in the W register. DS35007B-page 42 XORWF Exclusive OR W with f Syntax: [ label ] ...

Page 45

... Microchip’s PIC17CXXX and PIC18CXXX family of microcontrollers, respectively. These compilers provide powerful integration capabilities and ease of use not found with other compilers. For easier source level debugging, the compilers pro- vide symbol information that is compatible with the MPLAB IDE memory display. PIC16F84A DS35007B-page 43 ...

Page 46

... PIC16F84A 8.4 MPLINK Object Linker/ MPLIB Object Librarian The MPLINK object linker combines relocatable objects created by the MPASM assembler and the MPLAB C17 and MPLAB C18 C compilers. It can also link relocatable objects from pre-compiled libraries, using directives from a linker script. The MPLIB object librarian is a librarian for pre- compiled code to be used with the MPLINK object linker ...

Page 47

... Some of the features include a RS-232 interface, push button switches, a potentiometer for simulated analog input, a serial EEPROM to demonstrate usage of the I2CTM bus and separate headers for connection to an LCD module and a keypad. and PIC16F84A PIC16C62X, PIC16C71, PIC16C8X, that supports the ...

Page 48

... PIC16F84A 8.13 PICDEM 3 Low Cost PIC16CXXX Demonstration Board The PICDEM 3 demonstration board is a simple dem- onstration board that supports the PIC16C923 and PIC16C924 in the PLCC package. It will also support future 44-pin PLCC microcontrollers with an LCD Mod- ule. All the necessary hardware and software is included to run the basic demonstration programs ...

Page 49

... DEVELOPMENT TOOLS FROM MICROCHIP MCP2510 MCRFXXX HCSXXX 93CXX 25CXX/ 24CXX/ PIC18FXXX PIC18CXX2 PIC17C7XX PIC17C4X PIC16C9XX PIC16F8XX PIC16C8X PIC16C7XX PIC16C7X PIC16F62X PIC16CXXX PIC16C6X PIC16C5X PIC14000 PIC12CXXX Tools Software Emulators Debugger Programmers 2001 Microchip Technology Inc. PIC16F84A Kits Eval and Boards Demo DS35007B-page 47 ...

Page 50

... PIC16F84A NOTES: DS35007B-page 48 2001 Microchip Technology Inc. ...

Page 51

... Microchip Technology Inc. (except V , MCLR, and RA4) ......................................... -0. (1) .......................................................................................................-0.3 to +14V ) DD > the MCLR pin, inducing currents greater than 80 mA, may cause latch-up PIC16F84A + 0.3V {( DS35007B-page 49 ...

Page 52

... PIC16F84A FIGURE 9-1: PIC16F84A-20 VOLTAGE-FREQUENCY GRAPH 6.0V 5.5V 5.0V 4.5V 4.0V 3.5V 3.0V 2.5V 2.0V FIGURE 9-2: PIC16LF84A-04 VOLTAGE- FREQUENCY GRAPH 6.0V 5.5V 5.0V 4.5V 4.0V 3.5V 3.0V 2.5V 2.0V 4 MHz 10 MHz Frequency F = (6.0 MHz/ 2.0V MHz MAX DDAPPMIN Note the minimum voltage of the DDAPPMIN ® PICmicro device in the application has a maximum frequency of 10 MHz. MAX DS35007B-page 50 20 MHz Frequency ...

Page 53

... RC and XT osc configuration (Note 4) F — and XT osc configuration (Note 4) F (During FLASH programming) — osc configuration (PIC16F84A-20) F 16LF84A — osc configuration F can be lowered without losing RAM data. measurements in active operation mode are: ; WDT enabled/disabled as specified not included ...

Page 54

... PIC16F84A 9.1 DC Characteristics (Continued) PIC16LF84A-04 (Commercial, Industrial) PIC16F84A-04 (Commercial, Industrial, Extended) PIC16F84A-20 (Commercial, Industrial, Extended) Param Symbol Characteristic No. I Power-down Current (Note 3) PD D020 D020 16F84A-20 16F84A-04 D021A D021A 16F84A-20 16F84A-04 D021B 16F84A-20 16F84A-04 Module Differential Current (Note 5) D022 I Watchdog Timer WDT Legend: Rows with standard voltage device data only are shaded for improved readability. † ...

Page 55

... Data in “Typ” column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. Note oscillator configuration, the OSC1 pin is a Schmitt Trigger input. Do not drive the PIC16F84A with an external clock while the device mode, or chip damage may result. ...

Page 56

... Data in “Typ” column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. Note oscillator configuration, the OSC1 pin is a Schmitt Trigger input. Do not drive the PIC16F84A with an external clock while the device mode, or chip damage may result. ...

Page 57

... I/O port inp INT pin mp MCLR Uppercase letters and their meanings Fall H High I Invalid (high impedance) L Low 2001 Microchip Technology Inc. PIC16F84A T Time os, osc OSC1 ost oscillator start-up timer pwrt power-up timer rbt RBx pins t0 T0CKI wdt watchdog timer P Period R ...

Page 58

... PIC16F84A 9.3.2 TIMING CONDITIONS The temperature and voltages specified in Table 9-1 apply to all timing specifications unless otherwise noted. All timings are measured between high and low measurement points as indicated in Figure 9-4. Figure 9-5 specifies the load conditions for the timing specifications. TABLE 9-1: TEMPERATURE AND VOLTAGE SPECIFICATIONS - AC ...

Page 59

... All specified values PIC16F84A Units Conditions MHz XT, RC osc (-04, LF) MHz XT, RC osc (-04) MHz HS osc (-20) kHz LP osc (-04, LF) MHz RC osc ...

Page 60

... PIC16F84A FIGURE 9-7: CLKOUT AND I/O TIMING Q4 OSC1 CLKOUT I/O Pin (Input) I/O Pin old value (Output) Note: All tests must be done with specified capacitive loads (Figure 9- I/O pins and CLKOUT. TABLE 9-3: CLKOUT AND I/O TIMING REQUIREMENTS Param Sym Characteristic No. 10 TosH2ckL OSC1 to CLKOUT 10A 11 TosH2ckH OSC1 to CLKOUT ...

Page 61

... Power-up Timer Period PWRT I/O hi-impedance from MCLR 34 T IOZ Low or RESET † Data in "Typ" column unless otherwise stated. These parameters are for design guidance only and are not tested. 2001 Microchip Technology Inc. PIC16F84A Min Typ† Max Units 2 — ...

Page 62

... PIC16F84A FIGURE 9-9: TIMER0 CLOCK TIMINGS RA4/T0CKI TABLE 9-5: TIMER0 CLOCK REQUIREMENTS Parameter Sym Characteristic No. 40 Tt0H T0CKI High Pulse Width 41 Tt0L T0CKI Low Pulse Width 42 Tt0P T0CKI Period † Data in "Typ" column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested ...

Page 63

... The data presented in this section is a statistical summary of data collected on units from different lots over a period of time and matrix samples. ‘Typical’ represents the mean of the distribution ‘Max’ or ‘Min’ represents (mean + (mean - 3 ), respectively, where 2001 Microchip Technology Inc standard deviation over the whole temperature range. PIC16F84A range). This is DD DS35007B-page 61 ...

Page 64

... PIC16F84A FIGURE 10-1: TYPICAL I DD 4.0 3.5 3.0 2.5 2.0 1.5 1.0 2.5 V 0.5 2 FIGURE 10-2: MAXIMUM I DD 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 2.5 V 0.5 2 DS35007B-page 62 vs. F OVER V (HS MODE, 25°C) OSC DD 3 (MHz) OSC vs. F OVER V (HS MODE, -40° TO +125°C) OSC DD 4.0 V 3 (MHz) OSC 5.5 V 5.0 V 4 5 ...

Page 65

... FIGURE 10-3: TYPICAL I DD 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0.0 0.5 1.0 FIGURE 10-4: MAXIMUM I DD 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0.0 0.5 1.0 2001 Microchip Technology Inc. vs. F OVER V (XT MODE, 25°C) OSC DD 1.5 2.0 2.5 F (MHz) OSC vs. F OVER V (XT MODE, -40° TO +125°C) OSC DD 1.5 2.0 2.5 F (MHz) OSC PIC16F84A 5.5 V 5.0 V 4.5 V 4.0 V 3.5 V 3.0 V 2.5 V 2.0 V 3.0 3.5 4.0 5.5 V 5.0 V 4.5 V 4.0 V 3.5 V 3.0 V 2.5 V 2.0 V 3.0 3.5 4.0 DS35007B-page 63 ...

Page 66

... PIC16F84A FIGURE 10-5: TYPICAL FIGURE 10-6: MAXIMUM I DD 250 200 150 100 DS35007B-page 64 vs. F OVER V (LP MODE, 25°C) OSC DD 100 125 F (kHz) OSC vs. F OVER V (LP MODE, -40° TO +125°C) OSC DD 5.0 V 4.5 V 3.5 V 3.0 V 2.5 V 2.0 V ...

Page 67

... OSC 2000 1800 1600 1400 1200 1000 800 600 400 200 0 2.0 2.5 2001 Microchip Technology Inc. vs. V FOR R (RC MODE pF 3 100 k 3.0 3.5 4.0 V (V) DD vs. V FOR R (RC MODE 100 pF 3 100 k 3.0 3.5 4.0 V (V) DD PIC16F84A 4.5 5.0 5.5 4.5 5.0 5.5 DS35007B-page 65 ...

Page 68

... PIC16F84A FIGURE 10-9: AVERAGE F OSC 900 800 700 600 500 400 300 200 100 0 2.0 2.5 3.0 FIGURE 10-10: I vs. V (SLEEP MODE, ALL PERIPHERALS DISABLED Typical: statistical mean @ 25°C Maximum: mean + 3 (-40°C to +125°C) Minimum: mean – 3 (-40°C to +125°C) 10.0 1.0 0.1 0.0 2.0 2.5 DS35007B-page 66 vs. V FOR R (RC MODE 300 pF ...

Page 69

... FIGURE 10-12: TYPICAL, MINIMUM, AND MAXIMUM WDT PERIOD vs Typical: statistical mean @ 25°C Maximum: mean + 3 (-40°C to +125°C) Minimum: mean – 3 (-40°C to +125°C) 0 2.0 2.5 3.0 2001 Microchip Technology Inc. PIC16F84A Max Typ 3.5 4.0 4 Max Typ Min 3.5 4.0 4 ...

Page 70

... PIC16F84A FIGURE 10-13: TYPICAL, MINIMUM AND MAXIMUM V 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 Typical: statistical mean @ 25°C Maximum: mean + 3 (-40°C to +125°C) 0.5 Minimum: mean – 3 (-40°C to +125°C) 0.0 0.0 2.5 5.0 FIGURE 10-14: TYPICAL, MINIMUM AND MAXIMUM V 3.0 2.5 2.0 1.5 1.0 0.5 Typical: statistical mean @ 25°C Maximum: mean + 3 (-40°C to +125°C) Minimum: mean – 3 (-40°C to +125°C) ...

Page 71

... Maximum: mean + 3 (-40°C to +125°C) Minimum: mean – 3 (-40°C to +125°C) 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 0.0 2.5 5.0 2001 Microchip Technology Inc. vs (mA) vs 7.5 10.0 12.5 15.0 I (mA) OL PIC16F84A (V = 5V, - +125 C) DD Max Typ Min 3V, - +125 C) DD Max Typ Min 17.5 20.0 22.5 25.0 DS35007B-page 69 ...

Page 72

... PIC16F84A FIGURE 10-17: MINIMUM AND MAXIMUM V 2.00 Typical: statistical mean @ 25°C Maximum: mean + 3 (-40°C to +125°C) Minimum: mean – 3 (-40°C to +125°C) 1.75 1.50 1.25 1.00 0.75 0.50 0.25 0.00 2.0 2.5 3.0 FIGURE 10-18: MINIMUM AND MAXIMUM V 3.50 Typical: statistical mean @ 25°C Maximum: mean + 3 (-40°C to +125°C) 3.25 Minimum: mean – 3 (-40°C to +125°C) 3 ...

Page 73

... For PICmicro device marking beyond this, certain price adders apply. Please check with your Microchip sales office. For QTP devices, any special marking adders are included in QTP price. 2001 Microchip Technology Inc. PIC16F84A Example PIC16F84A-04I/P 0110017 Example PIC16F84A-04 /SO 0110017 Example PIC16F84A- 20/SS 0110017 DS35007B-page 71 ...

Page 74

... PIC16F84A 18-Lead Plastic Dual In-line (P) – 300 mil (PDIP Dimension Limits Number of Pins Pitch Top to Seating Plane Molded Package Thickness Base to Seating Plane Shoulder to Shoulder Width Molded Package Width Overall Length Tip to Seating Plane Lead Thickness Upper Lead Width ...

Page 75

... A2 .088 .091 .094 A1 .004 .008 .012 E .394 .407 .420 E1 .291 .295 .299 D .446 .454 .462 h .010 .020 .029 L .016 .033 .050 .009 .011 .012 B .014 .017 .020 PIC16F84A A2 MILLIMETERS MIN NOM MAX 18 1.27 2.36 2.50 2.64 2.24 2.31 2.39 0.10 0.20 0.30 10.01 10.34 10.67 7.39 7.49 7.59 11.33 11.53 11.73 0.25 0.50 0.74 0.41 0.84 1. 0.23 0.27 0.30 0.36 0.42 0. ...

Page 76

... PIC16F84A 20-Lead Plastic Shrink Small Outline (SS) – 209 mil, 5.30 mm (SSOP Dimension Limits Number of Pins Pitch Overall Height Molded Package Thickness Standoff § Overall Width Molded Package Width Overall Length Foot Length Lead Thickness Foot Angle Lead Width Mold Draft Angle Top ...

Page 77

... REVISION HISTORY Version Date A 9/98 This is a new data sheet. However, the devices described in this data sheet are the upgrades to the devices found in the PIC16F8X Data Sheet , DS30430. B 8/01 Added DC and AC Characteristics Graphs and Tables to Section 10. 2001 Microchip Technology Inc. PIC16F84A Revision Description DS35007B-page 75 ...

Page 78

... TioR, TioF (max (C84) (C84) TioR, TioF (max TioR, TioF (max (LC84) (LC84) Yes Yes N/A N/A TTL/ST* TTL/ST* (*Schmitt Trigger) (*Schmitt Trigger) PIC16CR83/ PIC16F84A CR84 2.0V - 5.5V (- +125 C) 20 MHz I (typ (max kHz, (LP osc kHz, ...

Page 79

... TABLE 1: CONVERSION CONSIDERATIONS - PIC16C84, PIC16F83/F84, PIC16CR83/CR84, PIC16F84A (CONTINUED) Difference PIC16C84 EEADR<7:6> and recommended that DD the EEADR<7:6> bits be cleared. When either of these bits is set, the maxi- mum I for the device is DD higher than when both are cleared. The polarity of the PWRTE ...

Page 80

... RB6 (clock) and RB7 (data in/out). DS35007B-page 78 To convert code written for PIC16C5X to PIC16F84A, the user should take the following steps: 1. Remove any program memory page select operations (PA2, PA1, PA0 bits) for CALL, GOTO. 2. Revisit any computed jump operations (write add to PC, etc ...

Page 81

... E EECON1 Register EEIF Bit ...................................................................... 29 Electrical Characteristics .................................................... 49 Load Conditions.......................................................... 56 Parameter Measurement Information......................... 56 PIC16F84A-04 Voltage-Frequency Graph ................. 50 PIC16F84A-20 Voltage-Frequency Graph ................. 50 PIC16LF84A-04 Voltage-Frequency Graph ............... 50 Temperature and Voltage Specifications - AC ........... 56 Endurance ............................................................................ 1 Errata .................................................................................... 2 External Clock Input (RA4/T0CKI). See Timer0 External Interrupt Input (RB0/INT). See Interrupt Sources External Power-on Reset Circuit......................................... 26 F Firmware Instructions ...

Page 82

... PIC16F84A XORWF....................................................................... 42 Summary Table........................................................... 36 INT Interrupt (RB0/INT)....................................................... 29 INTCON Register ....................................... 7 EEIE Bit....................................................................... 29 GIE Bit.................................................................. 10 INTE Bit................................................................ 10 INTF Bit ................................................................ 10 PEIE Bit....................................................................... 10 RBIE Bit ............................................................... 10 RBIF Bit..........................................................10 T0IE Bit ................................................................ 10 T0IF Bit ..........................................................10 Interrupt Sources.......................................................... 21 Block Diagram............................................................. 29 Data EEPROM Write Complete ........................... 29 Interrupt-on-Change (RB7:RB4) ............... 4 RB0/INT Pin, External ............................... 4 TMR0 Overflow ...

Page 83

... Block Diagram ............................................................ 31 Postscaler. See Prescaler Programming Considerations ..................................... 31 RC Oscillator .............................................................. 30 Time-out Period .......................................................... 30 WDT Reset, Normal Operation................................... 24 WDT Reset, SLEEP .............................................24 WWW, On-Line Support ....................................................... (Zero) bit ............................................................................ PIC16F84A , DS35007B-page 81 ...

Page 84

... PIC16F84A NOTES: DS35007B-page 82 2001 Microchip Technology Inc. ...

Page 85

... Microchip's development systems software products. Plus, this line provides information on how customers can receive any currently available upgrade kits.The Hot Line Numbers are: ® ® or Microsoft 1-800-755-2345 for U.S. and most of Canada, and 1-480-792-7302 for the rest of the world. PIC16F84A 013001 DS35007B-page 83 ...

Page 86

... Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Y Device: PIC16F84A 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 87

... Package Pattern temp., PDIP package, 4 MHz, normal V limits, QTP pattern #301. b) PIC16LF84A - 04I/SO = Industrial temp., (2) SOIC package, 200 kHz, Extended V (2) limits. c) PIC16F84A - 20I/P = Industrial temp., PDIP package, 20 MHz, normal V Note Blank for OTP and . PIC16F84A DD DD limits Standard V ...

Page 88

... Centro Direzionale Colleoni Palazzo Taurus Colleoni 1 20041 Agrate Brianza Milan, Italy Tel: 39-039-65791-1 Fax: 39-039-6899883 United Kingdom Arizona Microchip Technology Ltd. 505 Eskdale Road Winnersh Triangle Wokingham Berkshire, England RG41 5TU Tel: 44 118 921 5869 Fax: 44-118 921-5820 08/01/01 2001 Microchip Technology Inc. ...

Related keywords