PIC16C620/JW Microchip Technology, PIC16C620/JW Datasheet
![IC MCU EPROM 512X14 COMP 18CDIP](/photos/12/13/121351/150-18-cdip_sml.jpg)
PIC16C620/JW
Specifications of PIC16C620/JW
Available stocks
Related parts for PIC16C620/JW
PIC16C620/JW Summary of contents
Page 1
... Microchip Technology Inc. PIC16C62X Data Sheet EPROM-Based 8-Bit CMOS Microcontrollers DS30235J ...
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
... REF (V ) module - Programmable input multiplexing from device inputs and internal voltage reference - Comparator outputs can be output signals • Timer0: 8-bit timer/counter with 8-bit programmable prescaler 2003 Microchip Technology Inc. PIC16C62X Pin Diagrams PDIP, SOIC, Windowed CERDIP REF RA2/AN2/V RA3/AN3 RA4/T0CKI ...
Page 4
... See Note 1 2.5 - 6.0 See Note 1 2.5 - 6.0 See Note 1 2.7 - 5.5 See Note 1 2.5 - 5.5 See Note 1 2.7 - 5.5 See Note 1 2.7 - 5.5 See Note 1 Process Technology (Microns) 0.9 0.9 0.9 0.7 0.7 0.7 0.7 2003 Microchip Technology Inc. ...
Page 5
... When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include literature 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. PIC16C62X DS30235J-page 3 ...
Page 6
... PIC16C62X NOTES: DS30235J-page 4 2003 Microchip Technology Inc. ...
Page 7
... The EPROM technology 2003 Microchip Technology Inc. customization of application programs (detection levels, pulse generation, timers, etc.) extremely fast and convenient. The small footprint packages make ® this microcontroller series perfect for all applications with space limitations ...
Page 8
... SSOP (3) (1)(4) (3) PIC16C621A PIC16C622 PIC16C622A 128 128 TMR0 TMR0 TMR0 Yes Yes Yes 2.7-5.5 2.5-6.0 2.7-5.5 Yes Yes Yes 18-pin DIP, 18-pin DIP, 18-pin DIP, SOIC; SOIC; SOIC; 20-pin SSOP 20-pin SSOP 20-pin SSOP 2003 Microchip Technology Inc. (1)(4) ...
Page 9
... The devices are identical to the OTP devices, but with all EPROM locations and configura- tion options already programmed by the factory. Certain code and prototype verification procedures apply before production shipments are available. Please contact your Microchip Technology sales office for more details. erased and 2.4 Serialized Quick-Turnaround- ...
Page 10
... PIC16C62X NOTES: DS30235J-page 8 2003 Microchip Technology Inc. ...
Page 11
... PIC16C62X simple yet efficient. In addition, the learning curve is reduced significantly. 2003 Microchip Technology Inc. The PIC16C62X devices contain an 8-bit ALU and working register. The ALU is a general purpose arithmetic unit. It performs arithmetic and Boolean functions between data in the working register and any register file ...
Page 12
... Data Bus RAM File Registers (1) RAM Addr 9 Addr MUX Indirect 7 8 Addr FSR reg STATUS reg 3 MUX ALU W reg Voltage Reference Comparator RA0/AN0 RA1/AN1 - + RA2/AN2/V REF RA3/AN3 - + TMR0 RA4/T0CKI I/O Ports PORTB 2003 Microchip Technology Inc. ...
Page 13
... Not used TTL = TTL input Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt. 2: This buffer is a Schmitt Trigger input when used in Serial Programming mode. 2003 Microchip Technology Inc. Buffer I/O/P Type Type ST/CMOS Oscillator crystal input/external clock source input. ...
Page 14
... Q2, Q3 and Q4 cycles. Data memory is read during Q2 (operand read) and written during Q4 (destination write PC+1 Fetch INST (PC+1) Execute INST (PC) Execute 1 Fetch 2 Execute 2 Fetch 3 Execute 3 Fetch Internal phase clock PC+2 Fetch INST (PC+2) Execute INST (PC+1) Flush Fetch SUB_1 Execute SUB_1 2003 Microchip Technology Inc. ...
Page 15
... PIC16CR620A PC<12:0> CALL, RETURN 13 RETFIE, RETLW Stack Level 1 Stack Level 2 Stack Level 8 RESET Vector Interrupt Vector On-Chip Program Memory 2003 Microchip Technology Inc. FIGURE 4-2: CALL, RETURN RETFIE, RETLW are physically FIGURE 4-3: 000h CALL, RETURN RETFIE, RETLW 0004 0005 ...
Page 16
... PIC16C620A/621A/622A/CR620A. DS30235J-page 14 4.2.1 GENERAL PURPOSE REGISTER FILE The register file is organized the PIC16C620/621 the PIC16C620A/621A/ CR620A and 128 the PIC16C622(A). Each is accessed either directly or indirectly through the File Select Register FSR (Section 4.4). on the 2003 Microchip Technology Inc. ...
Page 17
... CMCON VRCON 20h General Purpose Register 6Fh 70h 7Fh Bank 0 Bank 1 Unimplemented data memory locations, read as '0'. Note 1: Not a physical register. 2003 Microchip Technology Inc. FIGURE 4-5: File File Address Address (1) 80h 00h 81h 01h 82h 02h 83h 03h ...
Page 18
... CMCON VRCON 9Fh A0h General General Purpose Purpose Register Register BFh C0h F0h General Accesses Purpose 70h-7Fh Register FFh Bank 0 Bank 1 2003 Microchip Technology Inc. ...
Page 19
... Note 1: Other (non Power-up) Resets include MCLR Reset, Brown-out Reset and Watchdog Timer Reset during normal operation. 2: IRP & RP1 bits are reserved; always maintain these bits clear. 2003 Microchip Technology Inc. The Special Function Registers can be classified into two sets (core and peripheral). The Special Function Registers associated with the “ ...
Page 20
... Digit Borrow out bit, respectively, in subtraction. See the SUBLW and SUBWF instructions for examples. R/W-0 R-1 R-1 RP1 RP0 Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared R/W-x R/W-x R/W bit Bit is unknown 2003 Microchip Technology Inc. ...
Page 21
... Bit Value 000 001 010 011 100 101 110 111 Legend Readable bit - n = Value at POR 2003 Microchip Technology Inc. Note: To achieve a 1:1 prescaler assignment for TMR0, assign the prescaler to the WDT (PSA = 1). R/W-1 R/W-1 R/W-1 T0CS T0SE PSA TMR0 Rate ...
Page 22
... GIE (INTCON<7>). for a R/W-0 R/W-0 R/W-0 R/W-0 T0IE INTE RBIE T0IF W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared R/W-0 R/W-x INTF RBIF bit Bit is unknown 2003 Microchip Technology Inc. ...
Page 23
... Unimplemented: Read as '0' bit 6 CMIF: Comparator Interrupt Flag bit 1 = Comparator input has changed 0 = Comparator input has not changed bit 5-0 Unimplemented: Read as '0' Legend Readable bit - n = Value at POR 2003 Microchip Technology Inc. PIC16C62X U-0 U-0 U-0 U-0 — — — — ...
Page 24
... DS30235J-page 22 has bit in the U-0 U-0 U-0 U-0 — — — — Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared U-0 R/W-0 R/W-0 — POR BOR bit Bit is unknown 2003 Microchip Technology Inc. ...
Page 25
... PCL memory boundary (each 256 byte block). Refer to the application note, “Implementing a Table Read" (AN556). 2003 Microchip Technology Inc. 4.3.2 STACK The PIC16C62X family has an 8-level deep x 13-bit wide hardware stack (Figure 4-2 and Figure 4-3). The stack space is not part of either program or data space and the stack pointer is not readable or writable ...
Page 26
... Bank 1 Bank 2 Bank 3 INDIRECT ADDRESSING 0x20 ;initialize pointer FSR ;to RAM INDF ;clear INDF register FSR ;inc pointer FSR,7 ;all done? NEXT ;no clear next ;yes continue Indirect Addressing (1) 7 FSR register 0 location select 1FFh 2003 Microchip Technology Inc. ...
Page 27
... Input Buffer RD TRISA PORTA To Comparator 2003 Microchip Technology Inc. Note: On RESET, the TRISA register is set to all inputs. The digital inputs are disabled and the comparator inputs are forced to ground to reduce excess current consumption. TRISA controls the direction of the RA pins, even when they are being used as comparator inputs ...
Page 28
... Comparator Output WR PORTA CK Q Data Latch TRISA CK Q TRIS Latch RD TRISA RD PORTA TMR0 Clock Input DS30235J-page 26 Comparator Mode = 110 Input Mode Schmitt Trigger Comparator Mode = 110 RA3 Pin Analog Input Buffer RA4 Pin Schmitt Trigger Input Buffer 2003 Microchip Technology Inc. ...
Page 29
... VRCON VREN VROE VRR Legend: — = Unimplemented locations, read as ‘0’ unchanged unknown Note: Shaded bits are not used by PORTA. 2003 Microchip Technology Inc. Function Input/output or comparator input Input/output or comparator input Input/output or comparator input or V Input/output or comparator input/output Input/output or external clock input for TMR0 or comparator output. ...
Page 30
... CC WR PORTB I/O pin WR TRISB Buffer RB0/INT Note 1: TRISB = 1 enables weak pull-up if RBPU = '0' (OPTION<7>). RD PORTB BLOCK DIAGRAM OF RB<3:0> PINS V DD weak P pull- Data Latch D Q I/O pin TTL Input CK Q Buffer RD TRISB PORTB ST RD PORTB Buffer 2003 Microchip Technology Inc. ...
Page 31
... OPTION RBPU INTEDG Legend unchanged unknown Note 1: Shaded bits are not used by PORTB. 2003 Microchip Technology Inc. Function Input/output or external interrupt input. Internal software programmable weak pull-up. Input/output pin. Internal software programmable weak pull-up. Input/output pin. Internal software programmable weak pull-up. ...
Page 32
... This example shows write to PORTB followed by a read from PORTB. Note that data setup time = (0. where instruction cycle and TPD = propagation delay of Q1 cycle to output valid. Therefore, at higher clock frequen- cies, a write followed by a read may be problematic. 2003 Microchip Technology Inc. ...
Page 33
... T0 T0+1 TMR0 Instruction Executed 2003 Microchip Technology Inc. The prescaler is shared between the Timer0 module and the Watchdog Timer. The prescaler assignment is controlled in software by the control bit PSA (OPTION<3>). Clearing the PSA bit will assign the prescaler to Timer0. The prescaler is not readable or writable ...
Page 34
... Interrupt Latency Time( Inst (PC+1) Dummy cycle Inst (PC where instruction cycle time. PC+4 PC+5 PC+6 NT0+1 Read TMR0 Read TMR0 reads NT0 reads NT0 + 01h 02h 0004h 0005h Inst (0004h) Inst (0005h) Dummy cycle Inst (0004h) 2003 Microchip Technology Inc. ...
Page 35
... Therefore, the error in measuring the interval between two edges on Timer0 input = ±4Tosc max. 2: External clock if no prescaler selected, Prescaler output otherwise. 3: The arrows indicate the points in time where sampling occurs. 2003 Microchip Technology Inc. When a prescaler is used, the external clock input is divided by the asynchronous ripple-counter type prescaler, so that the prescaler output is symmetrical ...
Page 36
... When assigned to WDT, a CLRWDT instruction will clear the prescaler along with the Watchdog Timer. The prescaler is not readable or writable SYNC Cycles PSA 8-bit Prescaler 8 8-to-1MUX PS<2:0> PSA WDT Time-out TMR0 register (e.g., CLRF 1, Data Bus 8 TMR0 reg Set flag bit T0IF on Overflow 2003 Microchip Technology Inc. ...
Page 37
... Legend: — = Unimplemented locations, read as ‘0’ unchanged unknown Note: Shaded bits are not used by TMR0 module. 2003 Microchip Technology Inc. To change prescaler from the WDT to the TMR0 module, use the sequence shown in Example 6-2. This precaution must be taken even if the WDT is disabled. ...
Page 38
... PIC16C62X NOTES: DS30235J-page 36 2003 Microchip Technology Inc. ...
Page 39
... connects to RA1 bit 2-0 CM<2:0>: Comparator mode. Legend Readable bit - n = Value at POR 2003 Microchip Technology Inc. The CMCON register, shown in Register 7-1, controls the comparator input and output multiplexers. A block two analog diagram of the comparator is shown in Figure 7-1. R-0 U-0 ...
Page 40
... CM<2:0> = 101 Three Inputs Multiplexed to Two Comparators Off (Read as '0 Off (Read as '0') + CM<2:0> = 111 CIS CIS=1 C1OUT CIS CIS=1 C2OUT From V REF Module CM<2:0> = 010 C1OUT C2OUT CM<2:0> = 110 CIS CIS=1 C1OUT C2OUT CM<2:0> = 001 2003 Microchip Technology Inc. ...
Page 41
... The shaded areas of the output of the comparator in Figure 7-2 represent the uncertainty due to input offsets and response time. 2003 Microchip Technology Inc. 7.3 Comparator Reference An external or internal reference signal may be used depending on the comparator Operating mode. The ...
Page 42
... Schmitt Trigger input specification. 2: Analog levels on any pin that is defined as a digital input may cause the input buffer to consume more current than is specified CMCON ROM F EN THER O OMPARATOR CMCON NRESET P ORT P INS MULTIPLEX + - 2003 Microchip Technology Inc. ...
Page 43
... 2003 Microchip Technology Inc. wake up the device from SLEEP mode when enabled. While the comparator is powered-up, higher SLEEP currents than shown in the power-down current specification will occur. Each comparator that is operational will consume additional current as shown in the comparator specifications. To minimize power consumption while in SLEEP mode, turn off the comparators, CM< ...
Page 44
... TRISA4 TRISA3 TRISA2 TRISA1 TRISA0 ---1 1111 ---1 1111 Value on Value on Bit 0 All Other POR RESETS CM0 00-- 0000 00-- 0000 VR0 000- 0000 000- 0000 RBIF 0000 000x 0000 000u — -0-- ---- -0-- ---- — -0-- ---- -0-- ---- 2003 Microchip Technology Inc. ...
Page 45
... VOLTAGE REFERENCE BLOCK DIAGRAM REN V 8R REF V Note defined in Table 12-2. 2003 Microchip Technology Inc. 8.1 Configuring the Voltage Reference The Voltage Reference can output 16 distinct voltage levels for each range. The equations used to calculate the output of the Voltage Reference are as follows ...
Page 46
... REF (VRCON<5>). The V ROE bit, VRCON<6>, is REF enabled will also increase current shows an example buffering • V REF Output Value On Value On Bit 0 All Other POR RESETS VR0 000- 0000 000- 0000 CM0 00-- 0000 00-- 0000 TRISA0 ---1 1111 ---1 1111 2003 Microchip Technology Inc. ...
Page 47
... Code protection 7. ID Locations 8. In-Circuit Serial Programming™ 2003 Microchip Technology Inc. PIC16C62X The PIC16C62X devices have a Watchdog Timer which 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 48
... In fact, it belongs to the special test/configuration (2000h – 3FFFh), which can be accessed only during programming. BODEN (2) CP1 CP0 CP0 (2) (1) ( Unimplemented bit, read as ‘0’ bit is cleared memory space PWRTE (2) WDTE F0SC1 F0SC0 bit bit is unknown 2003 Microchip Technology Inc. ...
Page 49
... FIGURE 9-2: EXTERNAL CLOCK INPUT OPERATION (HS OSC CONFIGURATION) clock from OSC1 ext. system PIC16C62X OSC2 Open 2003 Microchip Technology Inc. TABLE 9-1: Ranges Characterized: Mode XT 455 kHz 2.0 MHz 4.0 MHz HS 8.0 MHz 16.0 MHz Higher capacitance increases the stability of the oscil- lator but also increases the start-up time ...
Page 50
... Furthermore, the EXT values. The user also needs to EXT between 3 kΩ and 100 kΩ pF), we recommend using values EXT EXT /C values, as well as DD values. RC OSCILLATOR MODE PIC16C62X OSC1 Internal Clock OSC2/CLKOUT F /4 OSC 2003 Microchip Technology Inc. ...
Page 51
... On-chip 10-bit Ripple-counter RC OSC Note 1: This is a separate oscillator from the RC oscillator of the CLKIN pin. 2003 Microchip Technology Inc. PIC16C62X MCLR Reset, WDT Reset and MCLR Reset during SLEEP. They are not affected by a WDT wake-up, since this is viewed as the resumption of normal operation ...
Page 52
... Brown-out Reset is enabled. Figure 9-7 shows typical Brown-out situations < temperature and process variation. DD falls below 4.0V refer BOR ) for greater than ) in Table 12-5. The brown-out situa- DD BOR ). DD rises above DD while the Power-up Timer the Power-Up Timer will execute 2003 Microchip Technology Inc. ...
Page 53
... Legend unchanged unknown unimplemented bit, reads as ‘0’ value depends on condition. Note 1: Other (non Power-up) Resets include MCLR Reset, Brown-out Reset and Watchdog Timer Reset during normal operation. 2003 Microchip Technology Inc. 9.4.6 POWER CONTROL (PCON)/ STATUS REGISTER The power control/STATUS register, PCON (address 8Eh), has two bits ...
Page 54
... Wake-up from SLEEP through interrupt • Wake-up from SLEEP through WDT time-out (1) uuuu uuuu — uuuu uuuu ( (4) uuuq quuu uuuu uuuu ---u uuuu uuuu uuuu uu-- uuuu ---u uuuu (2) uuuu uqqq (2,5) -q-- ---- uuuu uuuu ---u uuuu uuuu uuuu -u-- ---- ---- --uu uuu- uuuu 2003 Microchip Technology Inc. ...
Page 55
... V DD MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET FIGURE 9-10: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET 2003 Microchip Technology Inc. PIC16C62X PWRT T OST T T PWRT OST T DD PWRT T OST T ): CASE 1 ...
Page 56
... RESET pins. There are 7 different trip point selections to accommodate 5V and 3V systems. EXTERNAL BROWN-OUT PROTECTION CIRCUIT MCLR 40k PIC16C62X DD is below 0. EXTERNAL BROWN-OUT PROTECTION CIRCUIT bypass capacitor V DD MCLR PIC16C62X protection circuit employs 2003 Microchip Technology Inc. ...
Page 57
... RBIE CMIF CMIE PEIE GIE 2003 Microchip Technology Inc. Once in the interrupt service routine, the source(s) of the interrupt can be determined by polling the interrupt flag bits. The interrupt flag bit(s) must be cleared in software before re-enabling interrupts to avoid RB0/ INT recursive interrupts. ...
Page 58
... See Section 7.6 for complete description of comparator interrupts Interrupt Latency 2 PC+1 PC+1 Inst (PC+1) — Inst (PC) Dummy Cycle Dummy Cycle Synchronous latency = setting/clearing T0IE 0004h 0005h Inst (0004h) Inst (0005h) Inst (0004h where T = instruction cycle time. 2003 Microchip Technology Inc. ...
Page 59
... STATUS_TEMP register W ;into W, sets bank to origi- nal ;state MOVWF STATUS ;move W into STATUS register SWAPF W_TEMP,F ;swap W_TEMP SWAPF W_TEMP,W ;swap W_TEMP into W 2003 Microchip Technology Inc. Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 INTE RBIE T0IF INTF — — — — ...
Page 60
... FOSC1 T0CS T0SE PSA PS2 PS1 SLEEP instructions clear the WDT = Min., Temperature = Max., max. 8 PS<2:0> To TMR0 (Figure 6-6) 1 PSA Value on all Value on Bit 0 other POR Reset RESETS FOSC0 — — PS0 1111 1111 1111 1111 2003 Microchip Technology Inc. ...
Page 61
... GIE = '1' assumed. In this case, after wake-up, the processor jumps to the interrupt routine. If GIE = '0', execution will continue in-line. 4: CLKOUT is not available in these Osc modes, but shown here for timing reference. 2003 Microchip Technology Inc. The first event will cause a device RESET. The two latter events are considered a continuation of program execution ...
Page 62
... A typical In-Circuit Serial Programming connection is shown in Figure 9-19. FIGURE 9-19: External Connector Signals + CLK Data I/O IL IHH to V (see programming Programming Specification TYPICAL IN-CIRCUIT SERIAL PROGRAMMING CONNECTION To Normal Connections PIC16C62X MCLR/V RB6 RB7 Normal Connections 2003 Microchip Technology Inc. ...
Page 63
... Register bit field ∈ In the set of italics User defined term (font is courier) 2003 Microchip Technology Inc. The instruction set is highly orthogonal and is grouped into three basic categories: • Byte-oriented operations • Bit-oriented operations • Literal and control operations All instructions are executed within one single operations ...
Page 64
... TO 00 0000 0110 0011 , 1 C,DC,Z 11 110x kkkk kkkk 1010 kkkk kkkk 2003 Microchip Technology Inc. Notes 1,2 1,2 2 1,2 1,2 1,2,3 1,2 1,2,3 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1 ...
Page 65
... Words: 1 Cycles: 1 Example 0 ADDWF FSR, Before Instruction W = 0x17 FSR = 0xC2 After Instruction W = 0xD9 FSR = 0xC2 2003 Microchip Technology Inc. ANDLW Syntax: k Operands: Operation: Status Affected: Encoding: kkkk kkkk Description: Words: Cycles: Example ANDWF Syntax: f,d Operands: Operation: Status Affected: Encoding: ...
Page 66
... NOP is executed instead, making this a two-cycle instruction. 1 1(2) FLAG,1 HERE BTFSC FALSE GOTO PROCESS_CO TRUE • DE • • Before Instruction PC = address HERE After Instruction if FLAG<1> address TRUE if FLAG<1>= address FALSE 2003 Microchip Technology Inc. ...
Page 67
... Example HERE BTFSS FALSE GOTO TRUE • • • Before Instruction PC = address HERE After Instruction if FLAG<1> FLAG<1> 2003 Microchip Technology Inc. CALL Syntax: Operands: Operation: Status Affected: bfff ffff Encoding: Description: Words: Cycles: FLAG,1 PROCESS_CO Example DE address FALSE address TRUE ...
Page 68
... DECF f,d 0 ≤ f ≤ 127 d ∈ [0,1] ( → (dest 0011 dfff ffff Decrement register 'f the result is stored in the W register the result is stored back in register 'f DECF CNT, Before Instruction CNT = 0x01 After Instruction CNT = 0x00 2003 Microchip Technology Inc. ...
Page 69
... PC bits <10:0>. The upper bits of PC are loaded from PCLATH<4:3>. GOTO is a two- cycle instruction. Words: 1 Cycles: 2 Example GOTO THERE After Instruction PC = Address THERE 2003 Microchip Technology Inc. INCF Syntax: Operands: Operation: Status Affected: Encoding: dfff ffff Description: Words: Cycles: Example ...
Page 70
... W = 0x93 Move Literal label ] MOVLW k 0 ≤ k ≤ 255 k → (W) None 11 00xx kkkk kkkk The eight bit literal 'k' is loaded into W register. The don’t cares will assemble as 0’ MOVLW 0x5A After Instruction W = 0x5A 2003 Microchip Technology Inc. ...
Page 71
... Move data from W register to reg- ister 'f'. Words: 1 Cycles: 1 Example MOVWF OPTION Before Instruction OPTION = W = After Instruction OPTION = W = 2003 Microchip Technology Inc. NOP Syntax: Operands: Operation: Status Affected: Encoding: dfff ffff Description: Words: Cycles: Example OPTION Syntax: Operands: Operation: Status Affected: ...
Page 72
... Return from Subroutine [ label ] RETURN None TOS → PC None 00 0000 0000 1000 Return from subroutine. The stack is POPed and the top of the stack (TOS) is loaded into the program counter. This is a two-cycle instruction RETURN After Interrupt PC = TOS 2003 Microchip Technology Inc. ...
Page 73
... C Register f Words: 1 Cycles: 1 Example RLF REG1,0 Before Instruction REG1 C After Instruction REG1 W C 2003 Microchip Technology Inc. RRF Syntax: Operands: Operation: Status Affected: Encoding: dfff ffff Description: Words: Cycles: Example = 1110 0110 = 0 = 1110 0110 ...
Page 74
... W register the result is stored back in register 'f SUBWF REG1,1 Before Instruction REG1 After Instruction REG1 result is positive Before Instruction REG1 After Instruction REG1 result is zero Before Instruction REG1 After Instruction REG1= 0xFF result is negative 2003 Microchip Technology Inc. ...
Page 75
... Words: 1 Cycles: 1 Example To maintain upward compatibil- ity with future PICmicro ucts, do not use this instruction. 2003 Microchip Technology Inc. XORLW Syntax: Operands: Operation: Status Affected: Encoding: dfff ffff Description: Words: Cycles: ...
Page 76
... PIC16C62X NOTES: DS30235J-page 74 2003 Microchip Technology Inc. ...
Page 77
... L - PICDEM MSC ® - microID - CAN ® - PowerSmart - Analog 2003 Microchip Technology Inc. PIC16C62X 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 78
... MPLAB C30 C Compiler and MPLAB ASM30 assembler. The simulator runs in either a Command Line mode for automated tasks, or from MPLAB IDE. This high speed simulator is designed to debug, analyze and optimize time intensive DSP routines. 2003 Microchip Technology Inc. software ...
Page 79
... The PC platform and Microsoft Windows 32-bit operating system were chosen to best make these features available in a simple, unified application. 2003 Microchip Technology Inc. PIC16C62X 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 80
... The PICDEM 17 demonstration board supports program download and execution from external on-board FLASH memory. A generous prototype area is available for user hardware expansion. PIC17C762 and PIC17C766. A 2003 Microchip Technology Inc. ...
Page 81
... 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. 11.23 PICDEM USB PIC16C7X5 Demonstration Board The PICDEM USB Demonstration Board shows off the capabilities of the PIC16C745 and PIC16C765 USB microcontrollers ...
Page 82
... PIC16C62X NOTES: DS30235J-page 80 2003 Microchip Technology Inc. ...
Page 83
... This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. 2003 Microchip Technology Inc. DD (except V and MCLR) ...
Page 84
... The maximum rated speed of the part limits the permissible combinations of voltage and frequency. Please reference the Product Identification System section for the maximum rated speed of the parts. DS30235J-page Frequency (MHz Frequency (MHz) ≤ +125° ≤ +125° 2003 Microchip Technology Inc. ...
Page 85
... Note 1: The shaded region indicates the permissible combinations of voltage and frequency. 2: The maximum rated speed of the part limits the permissible combinations of voltage and frequency. Please reference the Product Identification System section for the maximum rated speed of the parts. 2003 Microchip Technology Inc ...
Page 86
... Note 1: The shaded region indicates the permissible combinations of voltage and frequency. 2: The maximum rated speed of the part limits the permissible combinations of voltage and frequency. Please reference the Product Identification System section for the maximum rated speed of the parts. DS30235J-page Frequency (MHz Frequency (MHz 2003 Microchip Technology Inc. ...
Page 87
... Note 1: The shaded region indicates the permissible combinations of voltage and frequency. 2: The maximum rated speed of the part limits the permissible combinations of voltage and frequency. Please reference the Product Identification System section for the maximum rated speed of the parts. 2003 Microchip Technology Inc ...
Page 88
... Note 1: The shaded region indicates the permissible combinations of voltage and frequency. 2: The maximum rated speed of the part limits the permissible combinations of voltage and frequency. Please reference the Product Identification System section for the maximum rated speed of the parts. DS30235J-page Frequency (MHz) ≤ +125° 2003 Microchip Technology Inc. ...
Page 89
... Operation between MHz requires the following: DD • V between 4.5V. and 5.5V • OSC1 externally driven • OSC2 not connected • HS mode • Commercial temperatures Devices qualified for 40 MHz operation have -40 designation (ex: PIC16C620A-40/P). 2003 Microchip Technology Inc Frequency (MHz) PIC16C62X 40 25 DS30235J-page 87 ...
Page 90
... A ≤ +85°C for industrial and A ≤ +70°C for commercial and A ≤ +125°C for extended A Conditions DD = 5.5V, WDT disabled 4.0V, WDT disabled 5.5V, WDT disabled 3.0V, WDT disabled 3.0V, WDT disabled 2003 Microchip Technology Inc. ...
Page 91
... The ∆ current is the additional current consumed when this peripheral is enabled. This current should be added to the base measurement. 2003 Microchip Technology Inc. Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C ≤ T -40°C ≤ T Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C ≤ T -40° ...
Page 92
... The current through the resistor can be estimated by the EXT in kΩ. ≤ +85°C for industrial and A ≤ +70°C for commercial and A ≤ +125°C for extended A ≤ +85°C for industrial and A ≤ +70°C for commercial and A ≤ +125°C for extended A Conditions , SS . 2003 Microchip Technology Inc. ...
Page 93
... The ∆ current is the additional current consumed when this peripheral is enabled. This current should be added to the DD PD base measurement. 6: Commercial temperature range only. 2003 Microchip Technology Inc. Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C ≤ T 0°C ≤ T -40°C ≤ T Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C ≤ T 0° ...
Page 94
... T ≤ +125°C for extended A Conditions 4.0V (125°C) BOD enabled =4.0V (125°C) BOD enabled 5. 4. 4.0V All temperatures All temperatures All temperatures All temperatures All temperatures All temperatures All temperatures All temperatures 2003 Microchip Technology Inc. ...
Page 95
... I DD Supply Current (2) DD D010 I Supply Current 2003 Microchip Technology Inc. PIC16CR62XA-20 (Commercial, Industrial, Extended) PIC16LCR62XA-04 (Commercial, Industrial, Extended) Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C ≤ T ≤ +85°C for industrial and A 0°C ≤ T ≤ +70°C for commercial and A -40° ...
Page 96
... T ≤ +70°C for commercial and A ≤ T ≤ +125°C for extended A -40°C Min Typ† Max Units DD DD EXT is not included. The current through the resistor can be estimated by the EXT in kΩ. Conditions , 2003 Microchip Technology Inc. ...
Page 97
... The ∆ current is the additional current consumed when this peripheral is enabled. This current should be added to the DD PD base measurement. 6: Commercial temperature range only. 2003 Microchip Technology Inc. PIC16CR62XA-20 (Commercial, Industrial, Extended) PIC16LCR62XA-04 (Commercial, Industrial, Extended) (CONT.) Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C ≤ T 0°C ≤ T -40° ...
Page 98
... Vss — — 0. 4.5V to 5.5V 0. otherwise — 0 (Note 1) Vss — 0 Vss — 0.3 V Vss — 0 1 2.0V — 4.5V to 5.5V 0. otherwise + 0.8V DD 0.8 V — 0.8 V — 0 — (Note 2003 Microchip Technology Inc. ≤ +125°C for extended Conditions ...
Page 99
... The leakage current on the MCLR pin is strongly dependent on applied voltage level. The specified levels represent normal operating conditions. Higher leakage current may be measured at different input voltages 3: Negative current is defined as coming out of the pin. 2003 Microchip Technology Inc. Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C ≤ T ≤ +85°C for industrial and A 0° ...
Page 100
... DD = 4.5V, -40° to +85° 4.5V, +125° 4.5V, -40° to +85° 4.5V, +125° 4.5V, -40° to +85° 4.5V, +125° 4.5V, -40° to +85° 4.5V, +125° 4.5V, -40° to +85° 4.5V, +125°C 2003 Microchip Technology Inc. ...
Page 101
... Commercial temperature range only. 7: See Section 12.1 and Section 12.3 for 16C62X and 16CR62X devices for operation between 20 MHz and 40 MHz for valid modified characteristics. 2003 Microchip Technology Inc. PIC16C620A/C621A/C622A-40 (7) PIC16CR620A-40 (Commercial) Standard Operating Conditions (unless otherwise stated) Operating temperature Min Typ† ...
Page 102
... V = 4.5V, -40° to +85° 1.2 mA 4.5V, +125° -3.0 mA 4.5V, -40° to +85° -2.5 mA 4.5V, +125° -1.3 mA 4.5V, -40° to +85° -1.0 mA 4.5V, +125°C RA4 pin clock used to drive OSC1 WDT enabled/disabled as specified 2003 Microchip Technology Inc. ...
Page 103
... Note 1: Data in the Typical (“Typ”) column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. 2: For device operation between DC and 20 MHz. See Table 12-1 and Table 12-2. 2003 Microchip Technology Inc. PIC16C620A/C621A/C622A-40 (3) ...
Page 104
... V R <3:0> transitions from 0000 to 1111. Units Comments mV V δβ PIC16C62X(A) ns PIC16LC62X ns µs Units Comments Low Range (V RR =1) LSB RR High Range (V =0) LSB RR Low Range (V =1) LSB RR High Range (V =0) LSB Ω Figure 8-1 µs 2003 Microchip Technology Inc. ...
Page 105
... I/O port mc MCLR Uppercase letters and their meanings Fall H High I Invalid (Hi-impedance) L Low FIGURE 12-11: LOAD CONDITIONS Load condition 1 Pin 464Ω 2003 Microchip Technology Inc. T Time osc OSC1 t0 T0CKI P Period R Rise V Valid Z Hi-Impedance Load condition Pin SS V for all pins except OSC2 ...
Page 106
... XT Osc mode ns HS Osc mode µs LP Osc mode µs T CYS =F OSC /4 OSC ns XT oscillator, T L/H duty cycle µs OSC LP oscillator, T L/H duty cycle OSC ns HS oscillator, T L/H duty cycle ns XT oscillator ns LP oscillator ns HS oscillator 2003 Microchip Technology Inc. ...
Page 107
... FIGURE 12-13: 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 capacitance loads (Figure 12-11 I/O pins and CLKOUT. 2003 Microchip Technology Inc 20, 21 PIC16C62X new value DS30235J-page 105 ...
Page 108
... PIC16C62X(A) — ns PIC16LC62X(A) PIC16CR62XA PIC16LCR62XA — ns 150 ns PIC16C62X(A) 300 ns PIC16LC62X(A) PIC16CR62XA PIC16LCR62XA — ns PIC16C62X(A) — ns PIC16LC62X(A) PIC16CR62XA PIC16LCR62XA — PIC16C62X( PIC16LC62X(A) PIC16CR62XA PIC16LCR62XA 40 ns PIC16C62X( PIC16LC62X(A) PIC16CR62XA PIC16LCR62XA — ns PIC16C62X(A) — ns PIC16LC62X(A) PIC16CR62XA PIC16LCR62XA — ns 2003 Microchip Technology Inc. ...
Page 109
... T BOR Brown-out Reset Pulse Width * 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. PIC16C62X Min Typ† ...
Page 110
... Data in "Typ" column is at 5.0V, 25°C, unless otherwise stated. These parameters are for design guidance only and are not tested. DS30235J-page 108 Min Typ† Max CY No Prescaler 0 20* — — With Prescaler 10* — — No Prescaler 0 20* — — With Prescaler 10* — — 40* — — N Units Conditions prescale value ( ..., 256) 2003 Microchip Technology Inc. ...
Page 111
... FIGURE 13-2: PIC16C622A I 0.35 0.30 0.25 0.20 0.15 0.10 0.05 0.00 -0.05 3 2003 Microchip Technology Inc. = 5.5V) DD 1.00 2.00 Frequency (MHz) VS. V (WDT DISABLE (V) PIC16C62X DD range). This is for information only 4. DS30235J-page 109 ...
Page 112
... PIC16C62X FIGURE 13-3: I VS. V (XT OSC 4 MHZ 1.00 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 2.5 FIGURE 13- DS30235J-page 110 3 3 OLTS ) = 3.0V) 1 1.5 2 Vol (V) 5 5.5 MAX -40°C TYP 25°C MIN 85°C 2.5 3 2003 Microchip Technology Inc. ...
Page 113
... FIGURE 13- MIN 85°C -10 TYP 25°C -15 MAX -40°C -20 - FIGURE 13- 100 2003 Microchip Technology Inc. = 3.0V 1 (V) = 5.5V) 1 1.5 2 Vol (V) PIC16C62X 2.5 3 MAX -40°C TYP 25°C MIN 85°C 2.5 3 DS30235J-page 111 ...
Page 114
... PIC16C62X FIGURE 13- -10 -20 MIN 85°C -30 TYP 25°C -40 MAX -40°C -50 3 3.5 DS30235J-page 112 = 5.5V 4 (V) 5.5 2003 Microchip Technology Inc. ...
Page 115
... Overall Length Tip to Seating Plane Lead Thickness Upper Lead Width Lower Lead Width Overall Row Spacing § Window Width Window Length * Controlling Parameter § Significant Characteristic JEDEC Equivalent: MO-036 Drawing No. C04-010 2003 Microchip Technology Inc Units INCHES* MIN NOM MAX ...
Page 116
... L p MILLIMETERS MIN NOM MAX 18 2.54 3.56 3.94 4.32 2.92 3.30 3.68 0.38 7.62 7.94 8.26 6.10 6.35 6.60 22.61 22.80 22.99 3.18 3.30 3.43 0.20 0.29 0.38 1.14 1.46 1.78 0.36 0.46 0.56 7.87 9.40 10. 2003 Microchip Technology Inc. ...
Page 117
... Mold Draft Angle Bottom * Controlling Parameter § Significant Characteristic Notes: Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010” (0.254mm) per side. JEDEC Equivalent: MS-013 Drawing No. C04-051 2003 Microchip Technology Inc φ Units ...
Page 118
... A2 MILLIMETERS MIN NOM MAX 20 0.65 1.73 1.85 1.98 1.63 1.73 1.83 0.05 0.15 0.25 7.59 7.85 8.18 5.11 5.25 5.38 7.06 7.20 7.34 0.56 0.75 0.94 0.10 0.18 0.25 0.00 101.60 203.20 0.25 0.32 0. 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. PIC16C62X Example PIC16C622A ...
Page 120
... PIC16C62X NOTES: DS30235J-page 118 2003 Microchip Technology Inc. ...
Page 121
... PORTA inputs are now Schmitt Trigger inputs. 19. Brown-out Reset reset has been added. 20. Common RAM registers F0h-FFh implemented in bank1. 2003 Microchip Technology Inc. APPENDIX B: COMPATIBILITY To convert code written for PIC16C5X to PIC16CXX, the user should take the following steps: 1. ...
Page 122
... PIC16C62X NOTES: DS30235J-page 120 2003 Microchip Technology Inc. ...
Page 123
... PICDEM.net Internet/Ethernet .................................... 78 Development Support ......................................................... 75 E Errata .................................................................................... 3 Evaluation and Programming Tools .................................... 79 External Crystal Oscillator Circuit ....................................... 48 G General purpose Register File ............................................ 14 GOTO Instruction ................................................................ 67 2003 Microchip Technology Inc. PIC16C62X I I/O Ports ............................................................................. 25 I/O Programming Considerations ....................................... 30 ID Locations........................................................................ 60 INCF Instruction.................................................................. 67 INCFSZ Instruction ............................................................. 68 In-Circuit Serial Programming............................................. 60 Indirect Addressing, INDF and FSR Registers ...
Page 124
... TMR0 with External Clock........................................... 33 Timer1 Switching Prescaler Assignment................................. 35 Timing Diagrams and Specifications................................. 104 TMR0 Interrupt .................................................................... 56 TRIS Instruction .................................................................. 73 TRISA.................................................................................. 25 TRISB.................................................................................. 28 DS30235J-page 122 V Voltage Reference Module ................................................. 43 VRCON Register ................................................................ 43 W Watchdog Timer (WDT)...................................................... 58 WWW, On-Line Support ....................................................... 3 X XORLW Instruction ............................................................. 73 XORWF Instruction............................................................. 73 2003 Microchip Technology Inc. ...
Page 125
... Microchip Products • Conferences for products, Development Systems, technical information and more • Listing of seminars and events 2003 Microchip Technology Inc. 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 126
... What deletions from the document could be made without affecting the overall usefulness there any incorrect or misleading information (what and where)? 7. How would you improve this document? DS30235J-page 124 Total Pages Sent ________ FAX: (______) _________ - _________ N Literature Number: DS30235J 2003 Microchip Technology Inc. ...
Page 127
... The Microchip Worldwide Site (www.microchip.com) Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using. New Customer Notification System Register on our web site (www.microchip.com/cn) to receive the most current information on our products. 2003 Microchip Technology Inc. /XX XXX Examples: ...
Page 128
... 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 ...