16F84A Microchip Technology, 16F84A Datasheet

no-image

16F84A

Manufacturer Part Number
16F84A
Description
18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
Manufacturer
Microchip Technology
Datasheet
Devices Included in this Data Sheet:
• PIC16F84A
• Extended voltage range device available
High Performance RISC CPU Features:
• Only 35 single word instructions to learn
• All instructions single cycle except for program
• Operating speed: DC - 20 MHz clock input
• 1024 words of program memory
• 68 bytes of data RAM
• 64 bytes of data EEPROM
• 14-bit wide instruction words
• 8-bit wide data bytes
• 15 special function hardware registers
• Eight-level deep hardware stack
• Direct, indirect and relative addressing modes
• Four interrupt sources:
Peripheral Features:
• 13 I/O pins with individual direction control
• High current sink/source for direct LED drive
• TMR0: 8-bit timer/counter with 8-bit
Special Microcontroller Features:
• 1000 erase/write cycles Enhanced Flash program
• 1,000,000 typical erase/write cycles EEPROM data
• EEPROM Data Retention > 40 years
• In-Circuit Serial Programming (ICSP™) - via two
• Power-on Reset (POR), Power-up Timer (PWRT),
• Watchdog Timer (WDT) with its own on-chip RC
• Code-protection
• Power saving SLEEP mode
• Selectable oscillator options
M
(PIC16 LF 84A)
branches which are two-cycle
- External RB0/INT pin
- TMR0 timer overflow
- PORTB<7:4> interrupt on change
- Data EEPROM write complete
- 25 mA sink max. per pin
- 25 mA source max. per pin
programmable prescaler
memory
memory
pins
Oscillator Start-up Timer (OST)
oscillator for reliable operation
1998 Microchip Technology Inc.
18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
DC - 200 ns instruction cycle
Preliminary
Pin Diagrams
CMOS Enhanced Flash/EERPOM Technology:
• Low-power, high-speed technology
• Fully static design
• Wide operating voltage range:
• Low power consumption:
- Commercial: 2.0V to 5.5V
- Industrial:
- < 2 mA typical @ 5V, 4 MHz
- 15 A typical @ 2V, 32 kHz
- < 0.5 A typical standby current @ 2V
RA4/T0CKI
RA4/T0CKI
RB0/INT
RB0/INT
MCLR
MCLR
PIC16F84A
RA2
RA3
RB1
RB2
RB3
RA2
RA3
RB1
RB2
RB3
V
V
V
SS
SS
SS
2.0V to 5.5V
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
10
1
1
PDIP, SOIC
SSOP
18
17
16
15
14
13
12
11
10
20
19
18
17
16
15
14
13
12
11
DS35007A-page 1
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
RB7
RB6
RB5
RB4
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
V
RB7
RB6
RB5
RB4
DD
DD
DD

Related parts for 16F84A

16F84A Summary of contents

Page 1

... M 18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller Devices Included in this Data Sheet: • PIC16F84A • Extended voltage range device available (PIC16 LF 84A) High Performance RISC CPU Features: • Only 35 single word instructions to learn • All instructions single cycle except for program branches which are two-cycle • ...

Page 2

... Migration from Baseline to Midrange Devices ............................................................................................................. 62 Index ................................................................................................................................................................................................... 63 On-Line Support................................................................................................................................................................................... 65 Reader Response ................................................................................................................................................................................ 66 PIC16F84A Product Identification System ........................................................................................................................................... 67 Most Current Data Sheet To obtain the most up-to-date version of this data sheet, please check our Worldwide Web site at: http://www.microchip.com You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page. ...

Page 3

... Manual should be considered a complementary docu- ment to this data sheet, and is highly recommended reading for a better understanding of the device archi- tecture 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. FIGURE 1-1: ...

Page 4

... PIC16F84A TABLE 1-1 PIC16F84A PINOUT DESCRIPTION DIP 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 5

... 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 location above the physically implemented address will cause a wraparound. For example, for locations 20h, 420h, 820h, C20h, 1020h, 1420h, 1820h, and 1C20h will be the same instruction ...

Page 6

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

Page 7

... PD Z — PORTA data direction register — EEIF WRERR WREN (1) — Write buffer for upper 5 bits of the PC T0IE INTE RBIE T0IF Preliminary PIC16F84A Value on Value on all Bit 1 Bit 0 Power-on other resets Reset (Note3) ---- ---- ---- ---- xxxx xxxx uuuu uuuu 0000 0000 0000 0000 DC ...

Page 8

... The IRP bit is not used by the PIC16F84A. IRP should be maintained clear. bit 6-5: RP1:RP0: Register Bank Select bits (used for direct addressing Bank 0 (00h - 7Fh Bank 1 (80h - FFh) Each bank is 128 bytes. Only bit RP0 is used by the PIC16F84A. RP1 should be maintained clear. bit 4: TO: Time-out bit 1 = After power-up, CLRWDT instruction, or SLEEP instruction ...

Page 9

... Microchip Technology Inc. Note: When the prescaler is assigned to the WDT (PSA = '1'), TMR0 has a 1:1 prescaler assignment. R/W-1 R/W-1 R/W-1 R/W-1 PSA PS2 PS1 PS0 128 Preliminary PIC16F84A R = Readable bit W = Writable bit bit0 U = Unimplemented bit, read as ‘0’ Value at POR reset DS35007A-page 9 ...

Page 10

... PIC16F84A 2.2.2.3 INTCON REGISTER The INTCON register is a readable and writable register which contains the various enable bits for all interrupt sources. FIGURE 2-1: INTCON REGISTER (ADDRESS 0Bh, 8Bh) R/W-0 R/W-0 R/W-0 R/W-0 GIE EEIE T0IE INTE bit7 bit 7: GIE: Global Interrupt Enable bit 1 = Enables all un-masked interrupts 0 = Disables all interrupts Note: For the operation of the interrupt structure, please refer to Section • ...

Page 11

... FSR,4 ;all done? goto NEXT 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-1. However, IRP is not used in the PIC16F84A. Preliminary ;initialize pointer ; to RAM ;clear INDF register ;inc pointer ;NO, clear next ;YES, continue ...

Page 12

... PIC16F84A FIGURE 2-1: DIRECT/INDIRECT ADDRESSING Direct Addressing RP1 RP0 6 from opcode (2) bank select location select 00h 0Bh 0Ch Data (1) Memory 4Fh 50h 7Fh Note 1: For memory map detail see Figure 2-1. 2: Maintain as clear for upward compatiblity with future products. 3: Not implemented. DS35007A-page 12 0 IRP ...

Page 13

... Microchip Technology Inc. FIGURE 3-1: BLOCK DIAGRAM OF PINS RA3:RA0 Data bus Port CK Q Manual, Data Latch TRIS CK Q TRIS Latch RD TRIS RD PORT Note: I/O pins have protection diodes to V Preliminary PIC16F84A I/O pin V SS TTL input buffer and DS35007A-page 13 ...

Page 14

... PIC16F84A FIGURE 3-2: BLOCK DIAGRAM OF PIN RA4 Data bus PORT Data Latch TRIS Q CK Schmitt Trigger TRIS Latch input buffer RD TRIS PORT TMR0 clock input Note: I/O pin has protection diodes to V TABLE 3-1 PORTA FUNCTIONS Name Bit0 ...

Page 15

... I/O WR TRIS (2) pin TTL Input Buffer RB0/INT D Note 1: TRISB = '1' enables weak pull-up (if RBPU = '0' in the OPTION_REG register). 2: I/O pins have diode protection Port and Preliminary PIC16F84A BLOCK DIAGRAM OF PINS RB3:RB0 V DD weak P pull-up Data Latch D Q I/O (2) pin CK TRIS Latch D Q TTL ...

Page 16

... PIC16F84A TABLE 3-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 17

... Timer0 will clear the prescaler count, but will not change the prescaler assignment. PSout 1 Sync with Internal clocks Programmable 0 Prescaler (2 cycle delay) 3 PS2, PS1, PS0 PSA Preliminary PIC16F84A Data bus 8 TMR0 PSout Set interrupt flag bit T0IF on overflow DS35007A-page 17 ...

Page 18

... PIC16F84A 4.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, DS3023) must be executed when changing the prescaler assignment from Timer0 to the WDT ...

Page 19

... 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. FIGURE 5-1: EECON1 REGISTER (ADDRESS 88h) U ...

Page 20

... PIC16F84A 5.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 21

... 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 22

... A series resistor (RS) may be required for AT strip cut crystals varies with the crystal chosen. 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 modes, the device can have an external clock source to drive the OSC1/CLKIN pin (Figure 6-3) ...

Page 23

... Cext values. The user needs to take into account variation due to tolerance of the external R and C components. Figure 6-4 shows how an R/C combination is connected to the PIC16F84A. FIGURE 6-4: RC OSCILLATOR MODE V DD ...

Page 24

... PIC16F84A TABLE 6-3 RESET CONDITION FOR PROGRAM COUNTER AND THE STATUS REGISTER Condition Power-on Reset MCLR Reset during normal operation MCLR Reset during SLEEP WDT Reset (during normal operation) WDT Wake-up Interrupt wake-up from SLEEP Legend unchanged unknown. 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) ...

Page 25

... A). A larger voltage drop will degrade 100 will limit any current flowing into MCLR from external capacitor C in the event of an MCLR pin breakdown due to ESD or EOS. Preliminary PIC16F84A EXTERNAL POWER-ON RESET CIRCUIT (FOR SLOW V POWER-UP ...

Page 26

... PIC16F84A FIGURE 6-7: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET FIGURE 6-8: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET DS35007A-page 26 T PWRT T OST ...

Page 27

... PWRT TIME-OUT OST TIME-OUT INTERNAL RESET When V rises very slowly possible that the T DD has reached its final value. In this example, the chip will reset properly if, and only if, V1 1998 Microchip Technology Inc. PIC16F84A ): FAST PWRT T OST ): SLOW V DD ...

Page 28

... MCLR is kept low long enough, the time-outs will expire. Then bringing MCLR high, execution will begin immediately (Figure 6-7). 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. ...

Page 29

... Interrupt Service Routine ; should configure Bank as required ; ; Swap nibbles in STATUS_TEMP register ; and place result into W ; Move W into STATUS register ; (sets bank to original state) ; Swap nibbles in W_TEMP and place result in W_TEMP ; Swap nibbles in W_TEMP and place result into W Preliminary PIC16F84A DS35007A-page 29 ...

Page 30

... PIC16F84A 6.10 Watchdog Timer (WDT) The Watchdog Timer is a free running on-chip RC oscillator which does not require any external components. This RC oscillator is separate from the RC oscillator of the OSC1/CLKIN pin. That means that the WDT will run even if the clock on the OSC1/CLKIN and OSC2/CLKOUT pins of the device has been stopped, for example, by execution of a SLEEP instruction ...

Page 31

... SLEEP is not desirable, the user should have a NOP after the SLEEP instruction (2) OST Interrupt Latency (Note 2) Processor in SLEEP PC+2 PC Inst( Inst( Dummy cycle Preliminary PIC16F84A 0004h 0005h Inst(0004h) Inst(0005h) Dummy cycle Inst(0004h) DS35007A-page 31 ...

Page 32

... ID location are usable. DS35007A-page 32 6.14 In-Circuit Serial Programming PIC16F84A microcontrollers 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 33

... If a conditional test is true or the program counter is changed as a result of an instruc- tion, the instruction execution time 1998 Microchip Technology Inc. PIC16F84A Table 7-2 lists the instructions recognized by the MPASM assembler. Figure 7-1 shows the general formats that the instruc- tions can have ...

Page 34

... 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 35

... PICSTART Plus supports all PIC12CXXX, PIC14C000, PIC16C5X, PIC16CXXX and PIC17CXX devices with pins. Larger pin count devices such as the PIC16C923, PIC16C924 and PIC17C756 may be sup- ported with an adapter socket. PICSTART Plus is CE compliant. 3.x or versions. Preliminary PIC16F84A based and PIC14C000, PIC16C5X, DS35007A-page 35 ...

Page 36

... PIC16F84A 8.6 SIMICE Entry-Level Hardware Simulator SIMICE is an entry-level hardware development sys- tem designed to operate in a PC-based environment with Microchip’s simulator MPLAB™-SIM. Both SIM- ICE and MPLAB-SIM run under Microchip Technol- ogy’s MPLAB Integrated Development Environment (IDE) software. Specifically, SIMICE provides hardware simulation for Microchip’ ...

Page 37

... MPASM provides a rich directive language to support programming of the PICmicro. Directives are helpful in making the development of your assemble source code shorter and more maintainable. 1998 Microchip Technology Inc. PIC16F84A 8.12 Software Simulator (MPLAB-SIM) The MPLAB-SIM Software Simulator allows code development host environment. It allows the user to simulate the PICmicro series microcontrollers on an instruction level ...

Page 38

... PIC16F84A 8. Evaluation and EE OQ Programming Tools K L evaluation and programming tools support EE OQ 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. DS35007A-page 38 Preliminary 1998 Microchip Technology Inc ...

Page 39

PIC12C5XX PIC14000 PIC16C5X PIC16CXXX PIC16C6X PIC16C7XX PIC16C8X PIC16C9XX PIC17C4X PIC17C7XX ü ü ü MPLAB™-ICE ICEPIC Low-Cost ü In-Circuit Emulator MPLAB Integrated ü ü ü Development Environment MPLAB C17* Compiler fuzzy TECH -MP Explorer/Edition ü ü ü Fuzzy Logic Dev. Tool ...

Page 40

... PIC16F84A NOTES: DS35007A-page 40 Preliminary 1998 Microchip Technology Inc. ...

Page 41

... ELECTRICAL CHARACTERISTICS FOR PIC16F84A Absolute Maximum Ratings † Ambient temperature under bias.............................................................................................................- +125 C Storage temperature .............................................................................................................................. - +150 C Voltage on any pin with respect Voltage on V with respect to V .......................................................................................................... -0.3 to +7. (1) Voltage on MCLR with respect to V Voltage on RA4 with respect to V .......................................................................................................... -0.3 to +8.5V ...

Page 42

... Freq: 200 kHz max The shaded sections indicate oscillator selections which are tested for functionality, but not for MIN/MAX specifica- tions recommended that the user select the device type that ensures the specifications required. DS35007A-page 42 PIC16F84A- 4.5V to 5.5V ...

Page 43

... V/ms PWRT enabled (PWRTE bit clear) TBD — — PWRT disabled (PWRTE bit set) See section on Power-on Reset for details RC and XT osc configuration (Note 4) — 1.8 4 — (During Flash programming) HS osc configuration (PIC16F84A-20) — — 7 — 1 — ...

Page 44

... PIC16F84A 9.2 DC CHARACTERISTICS: DC Characteristics Power Supply Pins Parameter Sym Characteristic No. D001 V Supply Voltage DD D002* V RAM Data Retention DR Voltage (Note 1) D003 V V Start Voltage to POR DD ensure internal Power-on Reset signal D004 Rise Rate to VDD DD D004A* ensure internal Power-on Reset signal I Supply Current ...

Page 45

... 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 46

... 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 47

... I/O port inp INT pin mc MCLR Uppercase symbols and their meanings Fall H High I Invalid (Hi-impedance) L Low 1998 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 48

... PIC16F84A 9.5.2 TIMING CONDITIONS The temperature and voltages specified in Table 9-2 apply to all timing specifications unless otherwise noted. All timings are measure between high and low measurement points as indicated in Figure 9-1. Figure 9-2 specifies the load conditions for the timing specifications. ...

Page 49

... — — — — 2.0 * — — — — — — — — — — Preliminary 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 (-04, LF) MHz RC osc (-04) MHz XT osc ...

Page 50

... PIC16F84A FIGURE 9-4: 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-4 CLKOUT AND I/O TIMING REQUIREMENTS Parameter No. Sym Characteristic 10 TosH2ckL OSC1 to CLKOUT 10A 11 TosH2ckH ...

Page 51

... Min Typ† Max 2 * — — 1024T OSC 132 * — — 100 * unless otherwise stated. These parameters are for design guidance only and are not Preliminary PIC16F84A 31 34 Units Conditions 5.0V, extended 5.0V, extended OSC1 period OSC ...

Page 52

... PIC16F84A FIGURE 9-6: TIMER0 CLOCK TIMINGS RA4/T0CKI TABLE 9-6 TIMER0 CLOCK REQUIREMENTS Parameter Sym Characteristic No. 40 Tt0H T0CKI High Pulse Width No Prescaler 41 Tt0L T0CKI Low Pulse Width No Prescaler 42 Tt0P T0CKI Period * These parameters are characterized but not tested. C † Data in "Typ" column is at 5.0V, 25 tested ...

Page 53

... DC & AC CHARACTERISTICS GRAPHS/TABLES No data available at this time. 1998 Microchip Technology Inc. PIC16F84A Preliminary DS35007A-page 53 ...

Page 54

... PIC16F84A NOTES: DS35007A-page 54 Preliminary 1998 Microchip Technology Inc. ...

Page 55

... For OTP marking beyond this, certain price adders apply. Please check with your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP price. 1998 Microchip Technology Inc. PIC16F84A Example PIC16F84A-04I/P 9832SAW Example PIC16F84A-04 /SO 9848SAN Example PIC16F84A- 20/SS 9822CAN Preliminary DS35007A-page 55 ...

Page 56

... PIC16F84A 11.2 K04-007 18-Lead Plastic Dual In-line (P) – 300 mil Units Dimension Limits PCB Row Spacing Number of Pins Pitch Lower Lead Width Upper Lead Width Shoulder Radius Lead Thickness Top to Seating Plane Top of Lead to Seating Plane Base to Seating Plane ...

Page 57

... Preliminary PIC16F84A A1 NOM MAX 1.27 18 2.50 2.64 1.47 1.73 0.19 0.28 11.58 11.73 7.51 7.59 10.33 10.64 0.50 0.74 0.13 0.25 0.25 0.13 0.41 0. 0.38 0.51 0.27 0.30 0.42 0. DS35007A-page 57 ...

Page 58

... PIC16F84A 11.4 K04-072 20-Lead Plastic Shrink Small Outine (SS) – 5. Units Dimension Limits Pitch p Number of Pins n Overall Pack. Height A Shoulder Height A1 Standoff A2 ‡ Molded Package Length D ‡ Molded Package Width E Outside Dimension E1 Shoulder Radius R1 Gull Wing Radius R2 Foot Length ...

Page 59

... IH IH (I/O Ports with TTL, (I/O Ports with TTL, 4.5V V 5.5V) 4. (typ) = 10ms T (typ) = 10ms DEW DEW T (max) = 20ms T (max) = 20ms DEW DEW Preliminary PIC16F84A PIC16F84A CR84 2.0V - 5.5V (- +125 C) 20MHz I (typ (max (LP osc OSC OSC = 2.0V, 32kHz 2.0V ...

Page 60

... Schmitt Trigger) N/A N/A PWRTE PWRTE 100k 100k EXT EXT N/A N/A PDIP, SOIC PDIP, SOIC Preliminary PIC16F84A TioR, TioF (max) = 35ns (C84) TioR, TioF (max) = 70ns (LC84) Yes N/A TTL/ST* (* Schmitt Trigger) N/A PWRTE 100k EXT N/A PDIP, SOIC, SSOP 1998 Microchip Technology Inc. ...

Page 61

... NOTES: 1998 Microchip Technology Inc. PIC16F84A Preliminary DS35007A-page 61 ...

Page 62

... RB6 (clock) and RB7 (data in/out). DS35007A-page 62 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 63

... FSR Register ............................................... 6, 7, 11, 24 INDF Register ........................................................ 7, 24 Instruction Format .............................................................. 33 Instruction Set .................................................................... 33 Summary Table .......................................................... 34 INT Interrupt (RB0/INT) ...................................................... 29 1998 Microchip Technology Inc. PIC16F84A INTCON Register ........................................ 7, 10, 18, 24, 28 EEIE Bit ............................................................... 10, 29 GIE Bit ........................................................... 10, 28, 29 INTE Bit ............................................................... 10, 29 INTF Bit ............................................................... 10, 29 RBIE Bit ............................................................... 10, 29 RBIF Bit ......................................................... 10, 15, 29 T0IE Bit ...

Page 64

... PIC16F84A P Packaging .......................................................................... 55 PICDEM-1 Low-Cost PICmicro Demo Board ..................... 36 PICDEM-2 Low-Cost PIC16CXX Demo Board .................. 36 PICDEM-3 Low-Cost PIC16CXXX Demo Board ................ 36 PICSTART Plus Entry Level Development System ........ 35 Pinout Descriptions .............................................................. 4 Pointer, FSR ....................................................................... 11 PORTA ........................................................................... 4, 13 Initializing ................................................................... 13 PORTA Register ........................................ 7, 13, 14, 24 RA3:RA0 Block Diagram ............................................ 13 RA4 Block Diagram .................................................... 14 RA4/T0CKI Pin ................................................. 4, 13, 17 TRISA Register ...

Page 65

... Conferences for products, Development Sys- tems, technical information and more • Listing of seminars and events 1998 Microchip Technology Inc. PIC16F84A Systems Information and Upgrade Hot Line The Systems Information and Upgrade Line provides system users a listing of the latest versions of all of Microchip's development systems software products ...

Page 66

... 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 67

... PIC16F84A -04/P 301 = Commercial temp., PDIP package, 4 MHz, normal V DD (2) b) PIC16LF84A - 04I/SO = Industrial temp., (2) SOIC package, 200 kHz, Extended V limits. c) PIC16F84A - 20I/P = Industrial temp., PDIP package, 20MHz, normal V +70 C (Commercial) its. +85 C (Industrial) Note 1: 2: Preliminary PIC16F84A limits, QTP pattern #301. ...

Page 68

... Information contained in this publication regarding device applications and the like is intended for suggestion only and may be superseded by updates. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip’s products as critical components in life support systems is not authorized except with express written approval by Microchip ...

Related keywords