PIC16F630-I/SL Microchip Technology, PIC16F630-I/SL Datasheet

IC MCU FLASH 1KX14 EEPROM 14SOIC

PIC16F630-I/SL

Manufacturer Part Number
PIC16F630-I/SL
Description
IC MCU FLASH 1KX14 EEPROM 14SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F630-I/SL

Program Memory Type
FLASH
Program Memory Size
1.75KB (1K x 14)
Package / Case
14-SOIC (3.9mm Width), 14-SOL
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Eeprom Size
128 x 8
Ram Size
64 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
64 B
Interface Type
RS- 232/USB
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
12
Number Of Timers
2
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163014, DM164120-4
Minimum Operating Temperature
- 40 C
Package
14SOIC N
Device Core
PIC
Family Name
PIC16
Maximum Speed
20 MHz
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F630-I/SL
Manufacturer:
TriQuint
Quantity:
1 200
Part Number:
PIC16F630-I/SL
Manufacturer:
MICROCHI
Quantity:
1 743
Part Number:
PIC16F630-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F630-I/SL
0
Company:
Part Number:
PIC16F630-I/SL
Quantity:
219
Company:
Part Number:
PIC16F630-I/SL
Quantity:
5 700
Company:
Part Number:
PIC16F630-I/SL
Quantity:
21
PIC16F630/676
Data Sheet
14-Pin FLASH-Based 8-Bit
CMOS Microcontrollers
 2003 Microchip Technology Inc.
DS40039C

Related parts for PIC16F630-I/SL

PIC16F630-I/SL Summary of contents

Page 1

... Microchip Technology Inc. PIC16F630/676 Data Sheet 14-Pin FLASH-Based 8-Bit CMOS Microcontrollers DS40039C ...

Page 2

... 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. © 2003, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received QS-9000 quality system ...

Page 3

... Device FLASH (words) PIC16F630 1024 PIC16F676 1024  2003 Microchip Technology Inc. PIC16F630/676 Low Power Features: • Standby Current 2.0V, typical • Operating Current: - 8.5 µ kHz, 2.0V, typical - 100 µ MHz, 2.0V, typical • Watchdog Timer Current - 300 nA @ 2.0V, typical • ...

Page 4

... PIC16F630/676 Pin Diagrams 14-pin PDIP, SOIC, TSSOP RA5/T1CKI/OSC1/CLKIN RA4/T1G/OSC2/CLKOUT RA3/MCLR/V RA5/T1CKI/OSC1/CLKIN RA4/T1G/OSC2/AN3/CLKOUT RA3/MCLR/V DS40039C-page RA0/CIN+/ICSPDAT 3 12 RA1/CIN-/ICSPCLK RA2/COUT/T0CKI/INT RC5 5 10 RC0 RC4 6 RC1 9 RC3 7 RC2 RA0/AN0/CIN+/ICSPDAT 3 12 RA1/AN1/CIN-/ RA2/AN2/COUT/T0CKI/INT RC5 5 10 RC0/AN4 RC4 6 9 RC1/AN5 RC3/AN7 7 RC2/AN6 8 REF /ICSPCLK  ...

Page 5

... When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include liter- ature number) you are using. Customer Notification System Register on our web site at www.microchip.com/cn to receive the most current information on all of our products.  2003 Microchip Technology Inc. ® Devices ...................................................................................................................... 122 PIC16F630/676 DS40039C-page 3 ...

Page 6

... PIC16F630/676 NOTES: DS40039C-page 4  2003 Microchip Technology Inc. ...

Page 7

... The PIC16F630 and PIC16F676 devices are covered by this Data Sheet. They are identical, except the PIC16F676 has a 10-bit A/D converter. They come in 14-pin PDIP, SOIC and TSSOP packages. Figure 1-1 shows a block diagram of the PIC16F630/676 devices. Table 1-1 shows the pinout description. INT 13 ...

Page 8

... PIC16F630/676 TABLE 1-1: PIC16F630/676 PINOUT DESCRIPTION Name Function RA0/AN0/CIN+/ICSPDAT RA0 AN0 CIN+ ICSPDAT RA1/AN1/CIN-/V REF / RA1 ICSPCLK AN1 CIN- V REF ICSPCLK RA2/AN2/COUT/T0CKI/INT RA2 AN2 COUT T0CKI INT RA3/MCLR/V PP RA3 MCLR V PP RA4/T1G/AN3/OSC2/ RA4 CLKOUT T1G AN3 OSC2 CLKOUT RA5/T1CKI/OSC1/CLKIN RA5 ...

Page 9

... MEMORY ORGANIZATION 2.1 Program Memory Organization The PIC16F630/676 devices have a 13-bit program counter capable of addressing program memory space. Only the first (0000h - 03FFh) for the PIC16F630/676 devices is physically imple- mented. Accessing a location above these boundaries will cause a wrap around within the first space. ...

Page 10

... The Special Function registers associated with the “core” are described in this section. Those related to the operation of the peripheral features are described in the section of that peripheral feature. DS40039C-page 8 FIGURE 2-2: DATA MEMORY MAP OF THE PIC16F630/676 File Address (1) Indirect addr. 00h Indirect addr. TMR0 ...

Page 11

... TABLE 2-1: PIC16F630/676 SPECIAL REGISTERS SUMMARY BANK 0 Addr Name Bit 7 Bit 6 Bank 0 00h INDF Addressing this location uses contents of FSR to address data memory (not a physical register) 01h TMR0 Timer0 Module’s Register 02h PCL Program Counter's (PC) Least Significant Byte (2) (2) 03h ...

Page 12

... PIC16F630/676 TABLE 2-2: PIC16F630/676 SPECIAL FUNCTION REGISTERS SUMMARY BANK 1 Addr Name Bit 7 Bit 6 Bank 1 80h INDF Addressing this location uses contents of FSR to address data memory (not a physical register) 81h OPTION_REG RAPU INTEDG 82h PCL Program Counter's (PC) Least Significant Byte (2) (2) 83h ...

Page 13

... STATUS bits. For other instructions not affecting any STATUS bits, see the “Instruction Set Summary”. Note 1: Bits IRP and RP1 (STATUS<7:6>) are not used by the PIC16F630/676 and should be maintained as clear. Use of these bits is not recommended, since this may affect upward compatibility with future products. ...

Page 14

... PIC16F630/676 2.2.2.2 OPTION Register The OPTION register is a readable and writable register, which contains various control bits to configure: • TMR0/WDT prescaler • External RA2/INT interrupt • TMR0 • Weak pull-ups on PORTA REGISTER 2-2: OPTION_REG — OPTION REGISTER (ADDRESS: 81h) R/W-1 R/W-1 ...

Page 15

... T0IF bit is set when Timer0 rolls over. Timer0 is unchanged on RESET and should be initialized before clearing T0IF bit. Legend Readable bit - n = Value at POR  2003 Microchip Technology Inc. PIC16F630/676 Note: Interrupt flag bits are set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the global enable bit, GIE (INTCON<7>). User ...

Page 16

... PIC16F630/676 2.2.2.4 PIE1 Register The PIE1 register contains the interrupt enable bits, as shown in Register 2-4. REGISTER 2-4: PIE1 — PERIPHERAL INTERRUPT ENABLE REGISTER 1 (ADDRESS: 8Ch) R/W-0 R/W-0 EEIE ADIE bit 7 bit 7 EEIE: EE Write Complete Interrupt Enable bit 1 = Enables the EE write complete interrupt ...

Page 17

... TMR1 register overflowed (must be cleared in software TMR1 register did not overflow Legend Readable bit - n = Value at POR  2003 Microchip Technology Inc. PIC16F630/676 Note: Interrupt flag bits are set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the global enable bit, GIE (INTCON<7>). User ...

Page 18

... PIC16F630/676 2.2.2.6 PCON Register The Power Control (PCON) register contains flag bits to differentiate between a: • Power-on Reset (POR) • Brown-out Detect (BOD) • Watchdog Timer Reset (WDT) • External MCLR Reset The PCON Register bits are shown in Register 2-6. REGISTER 2-6: PCON — ...

Page 19

... Microchip Technology Inc. PIC16F630/676 2.3.2 STACK The PIC16F630/676 family has an 8-level x 13-bit wide hardware stack (see Figure 2-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 onto the stack when a CALL instruction is executed or an interrupt causes a branch ...

Page 20

... Writing to the INDF register indirectly results operation (although STATUS bits may be affected). 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-4. FIGURE 2-4: DIRECT/INDIRECT ADDRESSING PIC16F630/676 Direct Addressing (1) From Opcode RP1 RP0 ...

Page 21

... TRISA bcf STATUS,RP0 3.2 Additional Pin Functions Every PORTA pin on the PIC16F630/676 has an interrupt-on-change option and every PORTA pin, except RA3, has a weak pull-up option. The next two sections describe these functions. 3.2.1 WEAK PULL-UP Each of the PORTA pins, except RA3, has an individu- ally configurable weak internal pull-up ...

Page 22

... PIC16F630/676 REGISTER 3-2: TRISA — PORTA TRISTATE REGISTER (ADDRESS: 85h) U-0 — bit 7 bit 7-6: Unimplemented: Read as ’0’ bit 5-0: TRISA<5:0>: PORTA Tri-State Control bit 1 = PORTA pin configured as an input (tri-stated PORTA pin configured as an output Note: TRISA<3> always reads 1. ...

Page 23

... Value at POR  2003 Microchip Technology Inc. U-0 R/W-0 R/W-0 R/W-0 — IOCA5 IOCA4 IOCA3 W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared PIC16F630/676 R/W-0 R/W-0 R/W-0 IOCA2 IOCA1 IOCA0 bit Bit is unknown DS40039C-page 21 ...

Page 24

... PIC16F630/676 3.2.3 PIN DESCRIPTIONS AND DIAGRAMS Each PORTA pin is multiplexed with other functions. The pins and their combined functions are briefly described here. For specific information about individ- ual functions such as the comparator or the A/D, refer to the appropriate section in this Data Sheet. ...

Page 25

... Figure 3-3 shows the diagram for this pin. The RA3 pin is configurable to function as one of the following: • a general purpose input • as Master Clear Reset FIGURE 3-3: Data Bus RD TRISA PORTA Weak IOCA RD IOCA V DD Interrupt-on-Change I/O pin PIC16F630/676 RA3/MCLR/V PP BLOCK DIAGRAM OF RA3 MCLRE RESET I/O pin V SS MCLRE PORTA DS40039C-page 23 ...

Page 26

... PIC16F630/676 3.2.3.5 RA4/AN3/T1G/OSC2/CLKOUT Figure 3-4 shows the diagram for this pin. The RA4 pin is configurable to function as one of the following: • a general purpose I/O • an analog input for the A/D (PIC16F676 only) • a TMR1 gate input • a crystal/resonator connection • a clock output ...

Page 27

... WPUA — — 96h IOCA — — Note 1: PIC16F676 only. Legend unknown unchanged unimplemented locations read as '0'. Shaded cells are not used by PORTA.  2003 Microchip Technology Inc. PIC16F630/676 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 RA5 RA4 RA3 RA2 RA1 T0IE ...

Page 28

... PIC16F630/676 3.3 PORTC PORTC is a general purpose I/O port consisting of 6 bi- directional pins. The pins can be configured for either digital I/O or analog input to A/D converter. For specific information about individual functions such as the comparator or the A/D, refer to the appropriate section in this Data Sheet. ...

Page 29

... Bit is cleared Bit 5 Bit 4 Bit 3 Bit 2 RC5 RC4 RC3 RC2 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 ANS5 ANS4 ANS3 ANS2 PIC16F630/676 R/W-x R/W-x R/W-x RC2 RC1 RC0 bit Bit is unknown R/W-1 R/W-1 R/W-1 TRISC2 TRISC1 TRISC0 bit Bit is unknown Value on all ...

Page 30

... PIC16F630/676 NOTES: DS40039C-page 28  2003 Microchip Technology Inc. ...

Page 31

... Timer WDTE Note 1: T0SE, T0CS, PSA, PS0-PS2 are bits in the Option register.  2003 Microchip Technology Inc. PIC16F630/676 Counter mode is selected by setting the T0CS bit (OPTION_REG<5>). In this mode, the Timer0 module will increment either on every rising or falling edge of pin RA2/T0CKI. The incrementing edge is determined ...

Page 32

... PIC16F630/676 4.3 Using Timer0 with an External Clock When no prescaler is used, the external clock input is the same as the prescaler output. The synchronization of T0CKI, with the internal phase clocks, is accom- plished by sampling the prescaler output on the Q2 and Q4 cycles of the internal phase clocks. Therefore ...

Page 33

... RAPU INTEDG 85h TRISA — — Legend: — = Unimplemented locations, read as ‘0’ unchanged unknown. Shaded cells are not used by the Timer0 module.  2003 Microchip Technology Inc. PIC16F630/676 EXAMPLE 4-1: bcf STATUS,RP0 clrwdt clrf TMR0 bsf STATUS,RP0 movlw b’00101111’ ;Required if desired ...

Page 34

... PIC16F630/676 5.0 TIMER1 MODULE WITH GATE CONTROL The PIC16F630/676 devices have a 16-bit timer. Figure 5-1 shows the basic block diagram of the Timer1 module. Timer1 has the following features: • 16-bit timer/counter (TMR1H:TMR1L) • Readable and writable • Internal or external clock selection • ...

Page 35

... Timer1 Prescaler Timer1 has four prescaler options allowing divisions of the clock input. The T1CKPS bits (T1CON<5:4>) control the prescale counter. The prescale counter is not directly readable or writable; however, the prescaler counter is cleared upon a write to TMR1H or TMR1L. PIC16F630/676 DS40039C-page 33 ...

Page 36

... PIC16F630/676 REGISTER 5-1: T1CON — TIMER1 CONTROL REGISTER (ADDRESS: 10h) U-0 R/W-0 — TMR1GE T1CKPS1 T1CKPS0 T1OSCEN bit 7 bit 7 Unimplemented: Read as ‘0’ bit 6 TMR1GE: Timer1 Gate Enable bit If TMR1ON = 0: This bit is ignored If TMR1ON = Timer1 T1G pin is low 0 = Timer1 is on bit 5-4 ...

Page 37

... Interrupt Service Routine on an overflow. Bit 5 Bit 4 Bit 3 Bit 2 T0IE INTE RAIE T0IF — — CMIF — — — CMIE — PIC16F630/676 time before use. Thus, Value on Value on Bit 1 Bit 0 all other POR, BOD RESETS INTF RAIF 0000 0000 0000 000u — TMR1IF 00-- 0--0 00-- 0--0 ...

Page 38

... PIC16F630/676 NOTES: DS40039C-page 36  2003 Microchip Technology Inc. ...

Page 39

... COMPARATOR MODULE The PIC16F630/676 devices have one analog compar- ator. The inputs to the comparator are multiplexed with the RA0 and RA1 pins. There is an on-chip Comparator REGISTER 6-1: CMCON — COMPARATOR CONTROL REGISTER (ADDRESS: 19h) U-0 — COUT bit 7 bit 7 Unimplemented: Read as ‘ ...

Page 40

... PIC16F630/676 6.1 Comparator Operation A single comparator is shown in Figure 6-1, along with the relationship between the analog input levels and the digital output. When the analog input at V than the analog input the output of the comparator is a digital low level. When the analog input at V ...

Page 41

... Multiplexed Input with Internal Reference and Output CM2:CM0 = 101 RA1/CIN- A COUT RA0/CIN+ A RA2/COUT D Multiplexed Input with Internal Reference CM2:CM0 = 110 RA1/CIN- A COUT RA0/CIN+ A RA2/COUT D PIC16F630/676 Off (Read as '0') COUT From CV REF Module CIS = 0 CIS = 1 COUT From CV REF Module CIS = 0 CIS = 1 COUT From CV REF Module ...

Page 42

... PIC16F630/676 6.3 Analog Input Connection Considerations A simplified circuit for an analog input is shown in Figure 6-3. Since the analog pins are connected to a digital output, they have reverse biased diodes to V and The analog input, therefore, must be between V SS and the input voltage deviates from this ...

Page 43

... To minimize power consumption while in SLEEP mode, turn off the comparator, CM2:CM0 = 111, and voltage reference, VRCON<7>  2003 Microchip Technology Inc. PIC16F630/676 The following equations determine the output voltages: VRR = 1 (low range): CV VRR = 0 (high range ...

Page 44

... PIC16F630/676 REGISTER 6-2: VRCON — VOLTAGE REFERENCE CONTROL REGISTER (ADDRESS: 99h) R/W-0 VREN bit 7 bit 7 VREN: CV REF REF circuit powered REF circuit powered down bit 6 Unimplemented: Read as '0' bit 5 VRR: CV REF Range Selection bit 1 = Low range 0 = High range bit 4 Unimplemented: Read as '0' ...

Page 45

... F RC (dedicated internal oscillator) bits For correct conversion, the A/D conversion clock AD (1/T ) must be selected to ensure a minimum T 1.6 µs. Table 7-1 shows a few T selected frequencies. PIC16F630/676 REF pin. Figure 7 ADRESH ADRESL DD is used analog voltage is used. The VCFG bit (ADCON0<6>) REF pin is the reference ...

Page 46

... PIC16F630/676 TABLE 7-1: T vs. DEVICE OPERATING FREQUENCIES AD A/D Clock Source ( Operation ADCS2:ADCS0 000 OSC 2 T 100 4 T OSC 001 OSC 8 T 101 16 T OSC 010 32 T OSC 110 64 T OSC x11 A/D RC Legend: Shaded cells are outside of recommended range. Note 1: The A/D RC source has a typical T 2: These values violate the minimum required T 3: For faster conversion times, the selection of another clock source is recommended ...

Page 47

... F OSC /16 110 = F OSC /64 bit 3-0: Unimplemented: Read as ‘0’. Legend Readable bit - n = Value at POR  2003 Microchip Technology Inc. PIC16F630/676 U-0 R/W-0 R/W-0 R/W-0 — CHS2 CHS1 CHS0 W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared ...

Page 48

... PIC16F630/676 REGISTER 7-3: ANSEL — ANALOG SELECT REGISTER (ADRESS: 91h) (PIC16F676 ONLY) R/W-1 R/W-1 ANS7 ANS6 bit 7 bit 7-0: ANS<7:0>: Analog Select between analog or digital function on pins AN<7:0>, respectively Analog input. Pin is assigned as analog input Digital I/O. Pin is assigned to port or special function. ...

Page 49

... PICmicro™ (DS33023). ) has no effect on the equation, since it cancels itself out. HOLD ) is not discharged after each conversion Sampling Switch 0.6V ≤ LEAKAGE 0.6V ± 500 PIC16F630/676 ACQ , see Mid-Range Reference Manual SS C HOLD = DAC capacitance = 120 Sampling Switch (kΩ) DS40039C-page 47 ...

Page 50

... PIC16F630/676 7.3 A/D Operation During SLEEP The A/D converter module can operate during SLEEP. This requires the A/D clock source to be set to the internal oscillator. When the RC clock source is selected, the A/D waits one instruction before starting the conversion. This allows the SLEEP instruction to be executed, thus eliminating much of the switching noise from the conversion ...

Page 51

... EEDATA • EEADR EEDATA holds the 8-bit data for read/write, and EEADR holds the address of the EEPROM location being accessed. PIC16F630/676 devices have 128 bytes of data EEPROM with an address range from 0h to 7Fh. REGISTER 8-1: EEDAT — EEPROM DATA REGISTER (ADDRESS: 9Ah) ...

Page 52

... PIC16F630/676 8.1 EEADR The EEADR register can address maximum of 128 bytes of data EEPROM. Only seven of the eight bits in the register (EEADR<6:0>) are required. The MSb (bit 7) is ignored. The upper bit should always be ‘0’ to remain upward compatible with devices that have more data EEPROM memory ...

Page 53

... EEPROM. The WREN bit is not cleared by hardware.  2003 Microchip Technology Inc. PIC16F630/676 After a write sequence has been initiated, clearing the WREN bit will not affect this write cycle. The WR bit will be inhibited from being set unless the WREN bit is set. ...

Page 54

... PIC16F630/676 8.7 DATA EEPROM OPERATION DURING CODE PROTECT Data memory can be code protected by programming the CPD bit to ‘0’. When the data memory is code protected, the CPU is able to read and write data to the Data EEPROM recommended to code protect the program memory when code protecting data memory ...

Page 55

... ID Locations • In-Circuit Serial Programming  2003 Microchip Technology Inc. PIC16F630/676 The PIC16F630/676 has a Watchdog Timer that is controlled by configuration bits. It runs off its own RC oscillator for added reliability. There are two timers that offer necessary delays on power-up. One is the Oscillator Start-up Timer (OST), intended to keep the chip in RESET until the crystal oscillator is stable ...

Page 56

... LP oscillator: Low power crystal on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN Note 1: The Bandgap Calibration bits are factory programmed and must be read and saved prior to erasing the device as specified in the PIC16F630/676 Programming Specification. These bits are reflected in an export of the configuration word. Microchip Development Tools maintain all calibration bits to factory settings ...

Page 57

... Oscillator Configurations 9.2.1 OSCILLATOR TYPES The PIC16F630/676 can be operated in eight different Oscillator Option modes. The user can program three configuration bits (FOSC2 through FOSC0) to select one of these eight modes: • LP Low Power Crystal • XT Crystal/Resonator • HS High Speed Crystal/Resonator • RC External Resistor/Capacitor (2 modes) • ...

Page 58

... EXAMPLE 9-1: bsf call movwf bcf 9.2.6 CLKOUT Internal Clock The PIC16F630/676 devices can be configured to provide a clock out signal in the INTOSC and RC Oscillator modes. When configured, the oscillator frequency divided by four (F RA4/OSC2/CLKOUT pin. F purposes or to synchronize other logic. OSCILLATOR Z Section 12.0, ...

Page 59

... RESET The PIC16F630/676 differentiates between various kinds of RESET: a) Power-on Reset (POR) b) WDT Reset during normal operation c) WDT Reset during SLEEP d) MCLR Reset during normal operation e) MCLR Reset during SLEEP f) Brown-out Detect (BOD) Some registers are not affected in any RESET condition; their status is unknown on POR and unchanged in any other RESET. Most other registers are reset to a “ ...

Page 60

... PIC16F630/676 9.3.1 MCLR PIC16F630/676 devices have a noise filter in the MCLR Reset path. The filter will detect and ignore small pulses. It should be noted that a WDT Reset does not drive MCLR pin low. The behavior of the ESD protection on the MCLR pin has been altered from previous devices of this family. ...

Page 61

... Then bringing MCLR high will begin execution immediately (see Figure 9-8). This is useful for testing purposes or to synchronize more than one PIC16F630/676 device operating in parallel. Table 9-6 shows the RESET conditions for some special registers, while Table 9-7 shows the RESET conditions for all the registers ...

Page 62

... PIC16F630/676 TABLE 9-3: TIME-OUT IN VARIOUS SITUATIONS Oscillator Configuration PWRTE = 0 XT, HS PWRT 1024•T RC, EC, INTOSC T PWRT TABLE 9-4: STATUS/PCON BITS AND THEIR SIGNIFICANCE POR BOD Legend unchanged unknown TABLE 9-5: SUMMARY OF REGISTERS ASSOCIATED WITH BROWN-OUT Address Name Bit 7 Bit 6 03h STATUS ...

Page 63

... PIC16F630/676 • Wake-up from SLEEP through interrupt • Wake-up from SLEEP through WDT time-out uuuu uuuu — uuuu uuuu ( (4) uuuq quuu uuuu uuuu --uu uuuu ...

Page 64

... PIC16F630/676 FIGURE 9-7: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED MCLR Internal POR PWRT Time-out OST Time-out Internal RESET FIGURE 9-8: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED MCLR Internal POR PWRT Time-out OST Time-out Internal RESET FIGURE 9-9: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED TO V ...

Page 65

... Interrupts The PIC16F630/676 has 7 sources of interrupt: • External Interrupt RA2/INT • TMR0 Overflow Interrupt • PORTA Change Interrupts • Comparator Interrupt • A/D Interrupt (PIC16F676 only) • TMR1 Overflow Interrupt • EEPROM Data Write Interrupt The Interrupt Control register (INTCON) and Peripheral Interrupt register (PIR) record individual interrupt requests in flag bits ...

Page 66

... PIC16F630/676 FIGURE 9-10: INTERRUPT LOGIC IOCA-RA0 IOCA0 IOCA-RA1 IOCA1 IOCA-RA2 IOCA2 IOCA-RA3 IOCA3 IOCA-RA4 IOCA4 IOCA-RA5 IOCA5 TMR1IF TMR1IE CMIF CMIE (1) ADIF ADIE EEIF EEIE Note 1: PIC16F676 only. DS40039C-page 64 T0IF Wake-up (If in SLEEP mode) T0IE INTF INTE RAIF RAIE PEIE GIE  ...

Page 67

... ADIE (PIE<6>). See Section 7.0 for operation of the A/D converter interrupt Interrupt Latency 2 PC+1 PC+1 Inst (PC+1) — Dummy Cycle Inst (PC Synchronous latency = where T PIC16F630/676 by setting/clearing T0IE 0004h 0005h Inst (0004h) Inst (0005h) Inst (0004h) Dummy Cycle CY = instruction cycle time. Latency DS40039C-page 65 ...

Page 68

... PIC16F630/676 TABLE 9-8: SUMMARY OF INTERRUPT REGISTERS Address Name Bit 7 Bit 6 0Bh, 8Bh INTCON GIE PEIE 0Ch PIR1 EEIF ADIF 8Ch PIE1 EEIE ADIE Legend unknown unchanged unimplemented read as '0 value depends upon condition. Shaded cells are not used by the Interrupt module. ...

Page 69

... Address Name Bit 7 Bit 6 81h OPTION_REG RAPU INTEDG 2007h Config. bits CP BODEN MCLRE PWRTE WDTE Legend Unchanged, shaded cells are not used by the Watchdog Timer.  2003 Microchip Technology Inc. PIC16F630/676 1 0 8-bit Prescaler PSA 8 1 PS0 - PS2 0 PSA Bit 5 Bit 4 ...

Page 70

... PIC16F630/676 9.7 Power-Down Mode (SLEEP) The Power-down mode is entered by executing a instruction. SLEEP If the Watchdog Timer is enabled: • WDT will be cleared but keeps running • PD bit in the STATUS register is cleared • TO bit is set • Oscillator driver is turned off • I/O ports maintain the status they had before ...

Page 71

... Program/Verify. Only the Least Significant 7 bits of the ID locations are used. 9.10 In-Circuit Serial Programming The PIC16F630/676 microcontrollers 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: • ...

Page 72

... PIC16F630/676 NOTES: DS40039C-page 70  2003 Microchip Technology Inc. ...

Page 73

... INSTRUCTION SET SUMMARY The PIC16F630/676 instruction set is highly orthogonal and is comprised of three basic categories: • Byte-oriented operations • Bit-oriented operations • Literal and control operations Each PIC16 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 ...

Page 74

... PIC16F630/676 TABLE 10-2: PIC16F630/676 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 75

... Operation: 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'.  2003 Microchip Technology Inc. PIC16F630/676 BCF Bit Clear f Syntax: [label] BCF f,b 0 ≤ f ≤ 127 Operands: 0 ≤ b ≤ → (f<b>) ...

Page 76

... PIC16F630/676 CALL Call Subroutine Syntax: [ label ] CALL k 0 ≤ k ≤ 2047 Operands: Operation: (PC)+ 1→ TOS, k → PC<10:0>, (PCLATH<4:3>) → PC<12:11> Status Affected: None Description: Call Subroutine. First, return address (PC+1) is pushed onto the stack. The eleven-bit immedi- ate address is loaded into PC bits < ...

Page 77

... Operation: Status Affected: Z Description: The contents of register 'f' are incremented the result is placed in the W register the result is placed back in register 'f'.  2003 Microchip Technology Inc. PIC16F630/676 INCFSZ Increment f, Skip if 0 Syntax: [ label ] INCFSZ f,d 0 ≤ f ≤ 127 Operands: d ∈ [0,1] ( → (destination), ...

Page 78

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

Page 79

... The contents of register 'f' are rotated one bit to the right through the Carry Flag the result is placed in the W register the result is placed back in register 'f'. C Register f  2003 Microchip Technology Inc. PIC16F630/676 SLEEP Syntax: [ label ] SLEEP Operands: None 00h → WDT, Operation: 0 → WDT prescaler, 1 → ...

Page 80

... PIC16F630/676 SWAPF Swap Nibbles in f Syntax: [ label ] SWAPF f,d 0 ≤ f ≤ 127 Operands: d ∈ [0,1] (f<3:0>) → (destination<7:4>), Operation: (f<7:4>) → (destination<3:0>) Status Affected: None Description: The upper and lower nibbles of register 'f' are exchanged the result is placed in the W register the result is placed in register 'f' ...

Page 81

... CAN ® - PowerSmart - Analog  2003 Microchip Technology Inc. PIC16F630/676 11.1 MPLAB Integrated Development Environment Software The MPLAB IDE software brings an ease of software development previously unseen in the 8/16-bit micro- controller market. The MPLAB IDE is a Windows based application that contains: • ...

Page 82

... PIC16F630/676 11.3 MPLAB C17 and MPLAB C18 C Compilers The MPLAB C17 and MPLAB C18 Code Development Systems are complete ANSI C compilers for Microchip’s PIC17CXXX and PIC18CXXX family of microcontrollers. These compilers provide powerful integration capabilities, superior code optimization and ease of use not found with other compilers. ...

Page 83

... Microsoft Windows 32-bit operating system were chosen to best make these features available in a simple, unified application.  2003 Microchip Technology Inc. PIC16F630/676 11.11 MPLAB ICD 2 In-Circuit Debugger Microchip’s In-Circuit Debugger, MPLAB ICD powerful, low cost, run-time development tool, connecting to the host PC via an RS-232 or high speed USB interface ...

Page 84

... PIC16F630/676 11.14 PICDEM 1 PICmicro Demonstration Board The PICDEM 1 demonstration board demonstrates the capabilities of the PIC16C5X PIC16C58A), PIC16C61, PIC16C62X, PIC16C71, PIC16C8X, PIC17C42, PIC17C43 and PIC17C44. All necessary hardware and software is included to run basic demo programs. The sample microcontrollers provided with the PICDEM 1 demonstration board can be programmed with a PRO MATE II device program- mer PICSTART Plus development programmer ...

Page 85

... Microcontrollers" Handbook and a USB Interface Cable. Supports all current 8/14-pin FLASH PIC microcontrollers, as well as many future planned devices.  2003 Microchip Technology Inc. PIC16F630/676 11.22 PICDEM USB PIC16C7X5 Demonstration Board The PICDEM USB Demonstration Board shows off the capabilities of the PIC16C745 and PIC16C765 USB microcontrollers ...

Page 86

... PIC16F630/676 NOTES: DS40039C-page 84  2003 Microchip Technology Inc. ...

Page 87

... MCLR pin, inducing currents greater than 80 mA, may cause latchup. Thus, Ω a series resistor of 50-100 this pin directly  2003 Microchip Technology Inc. SS ........................................................................... -0. )...............................................................................................................± ).........................................................................................................± ∑ I DIS = should be used when applying a "low" level to the MCLR pin, rather than pulling PIC16F630/676 DD + 0.3V ∑ {( ∑( DS40039C-page 85 ...

Page 88

... PIC16F630/676 FIGURE 12-1: PIC16F630/676 WITH A/D DISABLED VOLTAGE-FREQUENCY GRAPH, -40°C ≤ T ≤ +125°C A 5.5 5.0 4.5 4 (Volts) 3.5 3.0 2.5 2 Note 1: The shaded region indicates the permissible combinations of voltage and frequency. FIGURE 12-2: PIC16F676 WITH A/D ENABLED VOLTAGE-FREQUENCY GRAPH, -40°C ≤ T ≤ ...

Page 89

... FIGURE 12-3: PIC16F676 WITH A/D ENABLED VOLTAGE-FREQUENCY GRAPH, 0°C ≤ T ≤ +125°C A 5.5 5.0 4.5 4 (Volts) 3.5 3.0 2.5 2.2 2 Note 1: The shaded region indicates the permissible combinations of voltage and frequency.  2003 Microchip Technology Inc. PIC16F630/676 Frequency (MHz) 20 DS40039C-page 87 ...

Page 90

... PIC16F630/676 12.1 DC Characteristics: PIC16F630/676-I (Industrial), PIC16F630/676-E (Extended) DC CHARACTERISTICS Param Sym Characteristic No Supply Voltage D001 D001A D001B D001C D001D D002 V DR RAM Data Retention (1) Voltage D003 V POR V DD Start Voltage to ensure internal Power-on Reset signal D004 S VDD V DD Rise Rate to ensure internal Power-on Reset ...

Page 91

... DC Characteristics: PIC16F630/676-I (Industrial) Param Device Characteristics No. D010 Supply Current ( D011 D012 D013 D014 D015 D016 D017 † Data in ‘Typ’ column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. Note 1: The test conditions for all I from rail to rail ...

Page 92

... PIC16F630/676 12.3 DC Characteristics: PIC16F630/676-I (Industrial) Param Device Characteristics No. D020 Power-down Base Current ( D021 D022 D023 D024 D025 D026 † Data in ‘Typ’ column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. Note 1: The peripheral current is the sum of the base I peripheral is enabled. The peripheral ∆ ...

Page 93

... DC Characteristics: PIC16F630/676-E (Extended) Param Device Characteristics No. D010E Supply Current ( D011E D012E D013E D014E D015E D016E D017E † Data in ‘Typ’ column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. Note 1: The test conditions for all I from rail to rail ...

Page 94

... PIC16F630/676 12.5 DC Characteristics: PIC16F630/676-E (Extended) Param Device Characteristics No. D020E Power-down Base Current ( D021E D022E D023E D024E D025E D026E † Data in ‘Typ’ column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. Note 1: The peripheral current is the sum of the base I peripheral is enabled. The peripheral ∆ ...

Page 95

... DC Characteristics: PIC16F630/676-I (Industrial), PIC16F630/676-E (Extended) DC CHARACTERISTICS Param Sym Characteristic No. Input Low Voltage V IL I/O ports D030 with TTL buffer D030A D031 with Schmitt Trigger buffer D032 MCLR, OSC1 (RC mode) D033 OSC1 (XT and LP modes) D033A OSC1 (HS mode) Input High Voltage V IH ...

Page 96

... PIC16F630/676 12.7 DC Characteristics: PIC16F630/676-I (Industrial), PIC16F630/676-E (Extended) (Cont.) DC CHARACTERISTICS Param Sym Characteristic No. Capacitive Loading Specs on Output Pins D100 C OSC2 pin OSC2 D101 C IO All I/O pins Data EEPROM Memory D120 E D Byte Endurance D120A E D Byte Endurance DRW DD D121 V V for Read/Write ...

Page 97

... High I Invalid (Hi-impedance) L Low FIGURE 12-4: LOAD CONDITIONS Load Condition 1 Pin 464Ω for all pins 15 pF for OSC2 output  2003 Microchip Technology Inc. T Time osc OSC1 SCK T0CKI t1 T1CKI Period R Rise V Valid Z Hi-impedance Load Condition Pin V SS PIC16F630/676 DS40039C-page 95 ...

Page 98

... PIC16F630/676 12.9 AC CHARACTERISTICS: PIC16F630/676 (INDUSTRIAL, EXTENDED) FIGURE 12-5: EXTERNAL CLOCK TIMING Q4 OSC1 CLKOUT TABLE 12-1: EXTERNAL CLOCK TIMING REQUIREMENTS Param Sym Characteristic No. F OSC External CLKIN Frequency Oscillator Frequency 1 T OSC External CLKIN Period (1) Oscillator Period Instruction Cycle Time 3 TosL, External CLKIN (OSC1) High ...

Page 99

... These parameters are characterized but not tested. † Data in ‘Typ’ column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested.  2003 Microchip Technology Inc. PIC16F630/676 Freq Min Typ† Max Units Tolerance ± ...

Page 100

... PIC16F630/676 FIGURE 12-6: CLKOUT AND I/O TIMING Q4 OSC1 CLKOUT I/O pin (Input) I/O pin Old Value (Output) TABLE 12-3: CLKOUT AND I/O TIMING REQUIREMENTS Param Sym Characteristic No. 10 TosH2ckL OSC1↑ to CLOUT↓ 11 TosH2ckH OSC1↑ to CLOUT↑ 12 TckR CLKOUT rise time ...

Page 101

... Watchdog Timer Reset I/O Pins FIGURE 12-8: BROWN-OUT DETECT TIMING AND CHARACTERISTICS VDD (Device in Brown-out Detect) RESET (due to BOD) Note delay only if PWRTE bit in configuration word is programmed to ‘0’.  2003 Microchip Technology Inc. PIC16F630/676 (Device not in Brown-out Detect time-out 34 DS40039C-page 99 ...

Page 102

... PIC16F630/676 TABLE 12-4: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER, POWER-UP TIMER, AND BROWN-OUT DETECT REQUIREMENTS Param Sym Characteristic No MCLR Pulse Width (low WDT Watchdog Timer Time-out Period (No Prescaler OST Oscillation Start-up Timer Period 33* T PWRT Power-up Timer Period 34 T IOZ I/O Hi-impedance from MCLR ...

Page 103

... Microchip Technology Inc Min No Prescaler 0 With Prescaler 10 No Prescaler 0 With Prescaler 10 Greater Synchronous Greater of Asynchronous OSC PIC16F630/676 48 Typ† Max Units Conditions + 20 — — ns — — — — ns — — ns — — prescale value + 40 (2, 4, ..., 256 — — ns — — ns — — — ...

Page 104

... PIC16F630/676 TABLE 12-6: COMPARATOR SPECIFICATIONS Comparator Specifications Sym Characteristics V OS Input Offset Voltage V CM Input Common Mode Voltage C MRR Common Mode Rejection Ratio ( Response Time Comparator Mode Change to Output Valid * These parameters are characterized but not tested. Note 1: Response time measured with one comparator input at (V ...

Page 105

... V SS — V REF V — — 10 kΩ µA 10 — 1000 µA — — 10 REF pin, whichever is selected as reference input. PIC16F630/676 Conditions REF = 5.0V REF = 5.0V V REF = 5.0V REF = 5.0V REF = 5.0V ≤ V ≤ AIN REF + Absolute minimum to ensure 10-bit accuracy During V AIN acquisition ...

Page 106

... PIC16F630/676 FIGURE 12-10: PIC16F676 A/D CONVERSION TIMING (NORMAL MODE) BSF ADCON0, GO 134 (T OSC Q4 A/D CLK A/D DATA ADRES ADIF GO 132 SAMPLE Note 1: If the A/D clock source is selected as RC, a time of T SLEEP instruction to be executed. TABLE 12-9: PIC16F676 A/D CONVERSION REQUIREMENTS ...

Page 107

... T AD µs (Note 2) 11.5 — µs 5* — — — T OSC / — — CY cycle. PIC16F630/676 NEW_DATA DONE Conditions ≥ 3.0V V REF V REF full range ADCS<1:0> (RC mode 2. 5.0V The minimum time is the amplifier settling time. This may be used if the “new” input voltage has not changed by more than 1 LSb (i ...

Page 108

... PIC16F630/676 NOTES: DS40039C-page 106  2003 Microchip Technology Inc. ...

Page 109

... Microchip Technology Inc. vs. V OVER TEMP (-40°C TO +25°C) DD Typical Baseline 3.5 4 4.5 V (V) DD vs. V OVER TEMP (+85°C) DD Typical Baseline I PD 3.0 3.5 4.0 4.5 V (V) DD PIC16F630/676 DD - 5.5 85 5.0 5.5 DS40039C-page 107 ...

Page 110

... PIC16F630/676 FIGURE 13-3: TYPICAL I PD 4.0E-06 3.5E-06 3.0E-06 2.5E-06 2.0E-06 1.5E-06 1.0E-06 5.0E-07 0.0E+00 2.0 2.5 FIGURE 13-4: MAXIMUM I PD 1.0E-07 9.0E-08 8.0E-08 7.0E-08 6.0E-08 5.0E-08 4.0E-08 3.0E-08 2.0E-08 1.0E-08 0.0E+00 2 2.5 DS40039C-page 108 vs. V OVER TEMP (+125°C) DD Typical Baseline ...

Page 111

... Microchip Technology Inc. vs. V OVER TEMP (+85°C) DD Maximum Baseline I PD 3.0 3.5 4.0 4.5 V (V) DD vs. V OVER TEMP (+125°C) DD Maximum Baseline I PD 3.0 3.5 4.0 4.5 V (V) DD PIC16F630/676 85 5.0 5.5 125 5.0 5.5 DS40039C-page 109 ...

Page 112

... PIC16F630/676 FIGURE 13-7: TYPICAL I PD 130 120 110 100 3.5 FIGURE 13-8: TYPICAL I PD 1.8E-05 1.6E-05 1.4E-05 1.2E-05 1.0E-05 8.0E-06 6.0E-06 4.0E-06 2.0E-06 0.0E+00 2.0 2.5 DS40039C-page 110 WITH BOD ENABLED vs. V OVER TEMP (-40°C TO +125°C) DD Typical BOD 4.5 V (V) DD WITH CMP ENABLED vs ...

Page 113

... Microchip Technology Inc. WITH A/D ENABLED vs. V OVER TEMP (-40°C TO +25°C) DD Typical A 3.5 4 4.5 V (V) DD WITH A/D ENABLED vs. V OVER TEMP (+85°C) DD Typical A 3.5 4 4.5 V (V) DD PIC16F630/676 - 5 5.5 DS40039C-page 111 ...

Page 114

... PIC16F630/676 FIGURE 13-11: TYPICAL I PD 3.5E-06 3.0E-06 2.5E-06 2.0E-06 1.5E-06 1.0E-06 5.0E-07 0.0E+00 2 2.5 FIGURE 13-12: TYPICAL KHZ, C1 AND C2=50 pF) 1.20E-05 1.00E-05 8.00E-06 6.00E-06 4.00E-06 2.00E-06 0.00E+00 2.0 2.5 DS40039C-page 112 WITH A/D ENABLED vs. V OVER TEMP (+125°C) DD Typical A/D I ...

Page 115

... Microchip Technology Inc. WITH CV ENABLED vs. V OVER TEMP (-40°C TO +125°C) REF DD Typical CV I REF PD 3 3.5 4 4.5 V (V) DD WITH WDT ENABLED vs. V OVER TEMP (-40°C TO +125°C) DD Typical WDT 3.5 4 4.5 V (V) DD PIC16F630/676 - 125 5 5.5 - 125 5 5.5 DS40039C-page 113 ...

Page 116

... PIC16F630/676 FIGURE 13-15: MAXIMUM AND MINIMUM INTOSC FREQ vs. TEMPERATURE WITH 0.1µF AND 0.01µF DECOUPLING (V 4.20E+06 4.15E+06 4.10E+06 4.05E+06 4.00E+06 3.95E+06 3.90E+06 3.85E+06 3.80E+06 -40°C FIGURE 13-16: MAXIMUM AND MINIMUM INTOSC FREQ vs. V DECOUPLING (+25°C) 4.20E+06 4.15E+06 4.10E+06 4.05E+06 4.00E+06 3 ...

Page 117

... FIGURE 13-17: TYPICAL WDT PERIOD vs 2.5  2003 Microchip Technology Inc. (-40°C TO +125°C) DD WDT Time-out 3 3.5 4 4.5 V (V) DD PIC16F630/676 - 125 5 5.5 DS40039C-page 115 ...

Page 118

... PIC16F630/676 NOTES: DS40039C-page 116  2003 Microchip Technology Inc. ...

Page 119

... Standard PICmicro device marking consists of Microchip part number, year code, week code, and traceability code. 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.  2003 Microchip Technology Inc. PIC16F630/676 Example 16F630-I 0215/017 Example ...

Page 120

... PIC16F630/676 14.2 Package Details The following sections give the technical details of the packages. 14-Lead Plastic Dual In-line (P) – 300 mil (PDIP β eB Dimension Limits Number of Pins Pitch Top to Seating Plane Molded Package Thickness Base to Seating Plane Shoulder to Shoulder Width Molded Package Width ...

Page 121

... L .016 .033 .050 φ .008 .009 .010 B .014 .017 .020 α β PIC16F630/676 α A2 MILLIMETERS MIN NOM MAX 14 1.27 1.35 1.55 1.75 1.32 1.42 1.55 0.10 0.18 0.25 5.79 5.99 6.20 3.81 3.90 3.99 8.56 8.69 8.81 0.25 ...

Page 122

... PIC16F630/676 14-Lead Plastic Thin Shrink Small Outline (ST) – 4.4 mm (TSSOP β Dimension Limits Number of Pins Pitch Overall Height Molded Package Thickness Standoff § Overall Width Molded Package Width Molded Package Length Foot Length Foot Angle Lead Thickness Lead Width Mold Draft Angle Top ...

Page 123

... PIC16F676 ANSEL register must be initialized to configure pins as digital I/O.  2003 Microchip Technology Inc. PIC16F630/676 APPENDIX B: DEVICE DIFFERENCES The differences between the PIC16F630/676 devices listed in this data sheet are shown in Table B-1. TABLE B-1: DEVICE DIFFERENCES Feature PIC16F630 A/D No ...

Page 124

... PIC16F630/676 APPENDIX C: DEVICE MIGRATIONS This section is intended to describe the functional and electrical specification differences when migrating between functionally similar devices (such as from a PIC16C74A to a PIC16C74B). Not Applicable DS40039C-page 122 APPENDIX D: MIGRATING FROM OTHER PICmicro DEVICES This discusses some of the issues in migrating from other PICmicro devices to the PIC16F6XX family of devices ...

Page 125

... Saving STATUS and W Registers in RAM ................. 66 Write Verify ................................................................. 51 Code Protection .................................................................. 69 Comparator ......................................................................... 37 Associated Registers .................................................. 42 Configuration............................................................... 39 Effects of a RESET ..................................................... 41 I/O Operating Modes................................................... 39 Interrupts..................................................................... 42  2003 Microchip Technology Inc. Operation.................................................................... 38 Operation During SLEEP............................................ 41 Output......................................................................... 40 Reference ................................................................... 41 Response Time .......................................................... 41 Comparator Specifications................................................ 102 Comparator Voltage Reference Specifications................. 102 Configuration Bits ............................................................... 54 Configuring the Voltage Reference ...

Page 126

... CMCON (Comparator Control) ................................... 37 CONFIG (Configuration Word) ................................... 54 EEADR (EEPROM Address) ...................................... 49 EECON1 (EEPROM Control) ..................................... 50 EEDAT (EEPROM Data) ............................................ 49 INTCON (Interrupt Control)......................................... 13 IOCA (Interrupt-on-Change PORTA).......................... 21 Maps PIC16F630 ........................................................... 8 PIC16F676 ........................................................... 8 OPTION_REG (Option) ........................................ 12, 30 OSCCAL (Oscillator Calibration) ................................ 16 PCON (Power Control) ............................................... 16 PIE1 (Peripheral Interrupt Enable 1)........................... 14 PIR1 (Peripheral Interrupt 1)....................................... 15 PORTC ....................................................................... 27 STATUS ...

Page 127

... Time-out Sequence on Power-up (MCLR Tied ).................................................... 62 Timer0 and Timer1 External Clock ........................... 101 Timer1 Incrementing Edge.......................................... 33 Timing Parameter Symbology............................................. 95 TRISIO Registers ................................................................ 19 V Voltage Reference Accuracy/Error ..................................... 41 W Watchdog Timer Summary of Registers ................................................ 67 Watchdog Timer (WDT) ...................................................... 66 WWW, On-Line Support ....................................................... 3  2003 Microchip Technology Inc. DS40039C-page 125 ...

Page 128

... NOTES: DS40039C-page 126  2003 Microchip Technology Inc. ...

Page 129

... Microchip's development systems software products. Plus, this line provides information on how customers ® ® can receive the most current upgrade kits.The Hot Line or Microsoft Numbers are: 1-800-755-2345 for U.S. and most of Canada, and 1-480-792-7302 for the rest of the world. PIC16F630/676 092002 DS40039C-page 127 ...

Page 130

... Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Y Device: PIC16F630/676 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 document easy to follow? If not, why? 4 ...

Page 131

... Register on our web site (www.microchip.com/cn) to receive the most current information on our products.  2003 Microchip Technology Inc. PIC16F630/676 XXX Examples: Pattern a) PIC16F630 – E/P 301 = Extended Temp., PDIP package, 20 MHz, QTP pattern #301 b) PIC16F676 package, 20 MHz – I/SO = Industrial Temp., SOIC DS40039C-page 129 ...

Page 132

... 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 (Barbados) Inc., Taiwan Branch 11F-3, No ...

Related keywords