PIC16C620 Microchip Technology, PIC16C620 Datasheet

no-image

PIC16C620

Manufacturer Part Number
PIC16C620
Description
EPROM-Based 8-Bit CMOS Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C620-04/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620-04I/P
Quantity:
8
Part Number:
PIC16C620/JW
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C620A-04/P
Quantity:
19
Part Number:
PIC16C620A-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-04/SO
Manufacturer:
MICROCHI
Quantity:
84
Part Number:
PIC16C620A-04/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-041/P
Quantity:
358
Part Number:
PIC16C620A-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-04I/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C620A-40/P
Manufacturer:
Microchip Technology
Quantity:
135
Devices included in this data sheet:
Referred to collectively as PIC16C62X .
• PIC16C620
• PIC16C621
• PIC16C622
• PIC16CR620A
High Performance RISC CPU:
• Only 35 instructions to learn
• All single-cycle instructions (200 ns), except for
• Operating speed:
• Interrupt capability
• 16 special function hardware registers
• 8-level deep hardware stack
• Direct, Indirect and Relative addressing modes
Peripheral Features:
• 13 I/O pins with individual direction control
• High current sink/source for direct LED drive
• Analog comparator module with:
• Timer0: 8-bit timer/counter with 8-bit
Special Microcontroller Features:
• Power-on Reset (POR)
• Power-up Timer (PWRT) and Oscillator Start-up
• Brown-out Reset
• Watchdog Timer (WDT) with its own on-chip RC
Device
PIC16C620
PIC16C620A
PIC16CR620A
PIC16C621
PIC16C621A
PIC16C622
PIC16C622A
1998 Microchip Technology Inc.
program branches which are two-cycle
- DC - 20 MHz clock input
- DC - 200 ns instruction cycle
- Two analog comparators
- Programmable on-chip voltage reference
- Programmable input multiplexing from device
- Comparator outputs can be output signals
programmable prescaler
Timer (OST)
oscillator for reliable operation
(V
inputs and internal voltage reference
REF
) module
EPROM-Based 8-Bit CMOS Microcontroller
• PIC16C620A
• PIC16C621A
• PIC16C622A
Program
Memory
512
512
512
1K
1K
2K
2K
Memory
Data
128
128
80
96
96
80
96
Preliminary
Pin Diagrams
Special Microcontroller Features (cont’d)
• Programmable code protection
• Power saving SLEEP mode
• Selectable oscillator options
• Serial in-circuit programming (via two pins)
• Four user programmable ID locations
CMOS Technology:
• Low-power, high-speed CMOS EPROM technol-
• Fully static design
• Wide operating voltage range
• Commercial, industrial and extended tempera-
• Low power consumption
PDIP, SOIC, Windowed CERDIP
SSOP
RA2/AN2/V
RA2/AN2/V
ogy
- PIC16C62X - 2.5V to 6.0V
- PIC16C62XA - 2.5V to 5.5V
- PIC16CR620A - 2.0V to 5.5V
ture range
- < 2.0 mA @ 5.0V, 4.0 MHz
- 15 A typical @ 3.0V, 32 kHz
- < 1.0 A typical standby current @ 3.0V
RA4/T0CKI
RA4/T0CKI
MCLR/V
MCLR/V
RA3/AN3
RA3/AN3
RB0/INT
PIC16C62X
RB0/INT
RB1
RB2
RB3
RB3
RB1
RB2
RB3
V
V
V
REF
REF
PP
SS
SS
PP
SS
•1
•1
10
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
10
20
19
18
17
16
15
14
13
12
11
11
DS30235G-page 1
RA1/AN1
RA0/AN0
OSC1/CLKIN
OSC2/CLKOUT
V
RB7
RB6
RB5
RB4
RA1/AN1
RA0/AN0
OSC1/CLKIN
OSC2/CLKOUT
V
V
RB7
RB6
RB5
RB4
DD
DD
DD

Related parts for PIC16C620

PIC16C620 Summary of contents

Page 1

... EPROM-Based 8-Bit CMOS Microcontroller Devices included in this data sheet: Referred to collectively as PIC16C62X . • PIC16C620 • PIC16C620A • PIC16C621 • PIC16C621A • PIC16C622 • PIC16C622A • PIC16CR620A High Performance RISC CPU: • Only 35 instructions to learn • All single-cycle instructions (200 ns), except for program branches which are two-cycle • ...

Page 2

... PIC16C62X Device Differences Device PIC16C620 PIC16C621 PIC16C622 PIC16C620A PIC16CR620A PIC16C621A PIC16C622A Note 1: If you change from this device to another device, please verify oscillator characteristics in your application. DS30235G-page 2 Voltage Oscillator Range 2.5 - 6.0 See Note 1 2.5 - 6.0 See Note 1 2.5 - 6.0 See Note 1 2.5 - 5.5 See Note 1 2.0 - 5.5 See Note 1 2.5 - 5.5 See Note 1 2 ...

Page 3

... However, we realize that we may have missed a few things. If you find any information that is missing or appears in error, please: • Fill out and mail in the reader response form in the back of this data sheet. • E-mail us at webmaster@microchip.com. We appreciate your assistance in making this a better document. 1998 Microchip Technology Inc. To Our Valued Customers Preliminary PIC16C62X DS30235G-page 3 ...

Page 4

... PIC16C62X NOTES: DS30235G-page 4 Preliminary 1998 Microchip Technology Inc. ...

Page 5

... PIC16C62X microcontrollers typically achieve a 2:1 code compression and a 4:1 speed improvement over other 8-bit microcontrollers in their class. The PIC16C620A, PIC16C621A and PIC16CR620A have 96 bytes of RAM. The PIC16C622(A) has 128 bytes of RAM. Each device has 13 I/O pins and an 8-bit timer/counter with an 8-bit programmable prescaler. In ...

Page 6

... SOIC; 20-pin SSOP All PICmicro™ Family devices have Power-on Reset, selectable Watchdog Timer, selectable code protect and high I/O current capability. All PIC16C62X Family devices use serial programming with clock pin RB6 and data pin RB7. DS30235G-page 6 PIC16C620A PIC16CR620A PIC16C621 20 20 ...

Page 7

... The devices are identical to the OTP devices but with all EPROM locations and configuration options already programmed by the factory. Certain code and prototype verification production shipments are available. Please contact your Microchip Technology sales office for more details. erased and 2.4 Serialized Quick-Turnaround-Production ...

Page 8

... PIC16C62X NOTES: DS30235G-page 8 Preliminary 1998 Microchip Technology Inc. ...

Page 9

... Consequently, all instructions (35) execute in a sin- gle-cycle (200 MHz) except for program branches. The PIC16C620A and PIC16CR620A address 512 x 14 on-chip program memory. The PIC16C621(A) addresses program PIC16C622(A) addresses program memory. All program memory is internal. ...

Page 10

... PIC16C62X FIGURE 3-1: BLOCK DIAGRAM Data Memory Device Program Memory PIC16C620 512 PIC16C620A 512 PIC16CR620A 512 PIC16C621 PIC16C621A PIC16C622 128 x 8 PIC16C622A 128 Program Counter EPROM Program ...

Page 11

... O = output — = Not used TTL = TTL input Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt. Note 2: This buffer is a Schmitt Trigger input when used in serial programming mode. 1998 Microchip Technology Inc. Buffer Description Type I ST/CMOS Oscillator crystal input/external clock source input. ...

Page 12

... 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 4 Preliminary Internal phase clock PC+2 Fetch INST (PC+2) Execute INST (PC+1) Flush Fetch SUB_1 Execute SUB_1 1998 Microchip Technology Inc. ...

Page 13

... The PIC16C62X has a 13-bit program counter capable of addressing program memory space. Only the first 512 x 14 (0000h - 01FFh) for the PIC16C620(A) and PIC16CR620 (0000h - 03FFh) for the PIC16C621(A) and (0000h - 07FFh) for the PIC16C622(A) are physically imple- mented. Accessing a location above these boundaries will cause a wrap-around within the fi ...

Page 14

... PIC16C620A/CR620A/621A/622A. DS30235G-page 14 4.2.1 GENERAL PURPOSE REGISTER FILE The register file is organized the PIC16C620/621, 96 PIC16C620A/621A/CR620A and 128 the PIC16C622(A). Each is accessed either directly or indi- rectly through the File (Section 4.4). Preliminary 1998 Microchip Technology Inc. ...

Page 15

... FIGURE 4-4: DATA MEMORY MAP FOR THE PIC16C620/621 File Address (1) (1) 00h INDF INDF 01h TMR0 OPTION 02h PCL PCL 03h STATUS STATUS 04h FSR FSR 05h PORTA TRISA 06h PORTB TRISB 07h 08h 09h 0Ah PCLATH PCLATH 0Bh INTCON INTCON 0Ch ...

Page 16

... PIC16C62X FIGURE 4-6: DATA MEMORY MAP FOR THE PIC16C620A/ CR620A/621A File Address (1) 00h INDF INDF 01h TMR0 OPTION 02h PCL PCL 03h STATUS STATUS 04h FSR FSR 05h PORTA TRISA 06h PORTB TRISB 07h 08h 09h 0Ah PCLATH PCLATH 0Bh INTCON INTCON ...

Page 17

... Note 1: Other (non power-up) resets include MCLR reset, Brown-out Reset and Watchdog Timer Reset during normal operation. Note 2: IRP & RPI bits are reserved, always maintain these bits clear. 1998 Microchip Technology Inc. The special registers can be classified into two sets (core and peripheral). The special function registers associated with the “ ...

Page 18

... The C and DC bits operate as a Borrow and Digit Borrow out bit, respectively, in subtraction. See the SUBLW and SUBWF instructions for examples. R-1 R/W-x R/W-x R/W bit0 Preliminary R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ Value at POR reset -x = Unknown at POR reset 1998 Microchip Technology Inc. ...

Page 19

... 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 R/W-1 PSA PS2 PS1 PS0 ...

Page 20

... GIE (INTCON<7>). for a R/W-0 R/W-0 R/W-0 R/W-x RBIE T0IF INTF RBIF bit0 Preliminary R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ Value at POR reset -x = Unknown at POR reset 1998 Microchip Technology Inc. ...

Page 21

... FIGURE 4-12: PIR1 REGISTER (ADDRESS 0CH) U-0 R/W-0 U-0 U-0 — CMIF — — bit7 bit 7: 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' 1998 Microchip Technology Inc. U-0 U-0 U-0 U-0 — — — — bit0 U-0 U-0 U-0 U-0 — — — ...

Page 22

... BOR: Brown-out Reset Status bit Brown-out Reset occurred Brown-out Reset occurred (must be set in software after a Brown-out Reset occurs) DS30235G-page 22 has in the U-0 U-0 R/W-0 R/W-0 — — POR BOR bit0 Preliminary R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ Value at POR reset 1998 Microchip Technology Inc. ...

Page 23

... GOTO method, care should be exercised if the table location crosses a PCL memory boundary (each 256 byte block). Refer to the application note “Implementing a Table Read" (AN556). 1998 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) ...

Page 24

... Bank 1 Bank 2 Bank 3 Preliminary INDIRECT ADDRESSING 0x20 ;initialize pointer FSR ;to RAM INDF ;clear INDF register FSR ;inc pointer FSR,4 ;all done? NEXT ;no clear next ;yes continue Indirect Addressing ( FSR register location select 1998 Microchip Technology Inc. ...

Page 25

... PORTA To Comparator Note: I/O pins have protection diodes to V 1998 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. The user must make sure to keep the pins confi ...

Page 26

... TMR0 Clock Input Note: RA4 has protection diodes to VSS only DS30235G-page 26 Comparator Mode = 110 Input Mode Schmitt Trigger Comparator Mode = 110 Schmitt Trigger Preliminary RA3 Pin Analog Input Buffer RA4 Pin Input Buffer 1998 Microchip Technology Inc. ...

Page 27

... VRCON VREN VROE Legend: — = Unimplemented locations, read as ‘0’ unchanged unknown Note: Note: Shaded bits are not used by PORTA. 1998 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 28

... Note 1: I/O pins have diode protection to V Note 2: TRISB = 1 enables weak pull-up if RBPU = '0' (OPTION<7>). RD Port . SS Preliminary BLOCK DIAGRAM OF RB3:RB0 PINS V DD weak P pull-up Data Latch (1) pin Q D TTL Input CK Q Buffer RD TRISB PortB ST RD Port Buffer and 1998 Microchip Technology Inc. ...

Page 29

... RBPU INTEDG Note: Shaded bits are not used by PORTB unchanged x = unknown 1998 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. Input/output pin. Internal software programmable weak pull-up. ...

Page 30

... This example shows write to PORTB followed by a read from PORTB. Note that: data setup time = (0. where T = instruction cycle and propagation delay of Q1 cycle PD to output valid. Therefore, at higher clock frequencies, a write followed by a read may be problematic. 1998 Microchip Technology Inc. ...

Page 31

... Fetch T0 T0+1 TMR0 Instruction Executed 1998 Microchip Technology Inc. bit (OPTION<4>). Clearing the T0SE bit selects the rising edge. Restrictions on the external clock input are discussed in detail in Section 6.2. 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< ...

Page 32

... PC +1 Inst (PC+1) Dummy cycle Inst (PC) , where T = instruction cycle time. CY Preliminary PC+4 PC+5 PC+6 MOVF TMR0,W NT0+1 Read TMR0 Read TMR0 reads NT0 reads NT0 + 01h 02h 0004h 0005h Inst (0004h) Inst (0005h) Dummy cycle Inst (0004h) 1998 Microchip Technology Inc. ...

Page 33

... 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. 1998 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 34

... SYNC Cycles PSA 8-bit Prescaler 8 8-to-1MUX PS0 - PS2 PSA WDT Time-out Preliminary will clear the prescaler. When Data Bus 8 TMR0 reg Set flag bit T0IF on Overflow 1998 Microchip Technology Inc. ...

Page 35

... Legend: — = Unimplemented locations, read as ‘0’. Note: Shaded bits are not used by TMR0 module unchanged x = unknown 1998 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. EXAMPLE 6-2: ...

Page 36

... PIC16C62X NOTES: DS30235G-page 36 Preliminary 1998 Microchip Technology Inc. ...

Page 37

... RA2 – connects to RA0 – connects to RA1 IN bit 2-0: CM<2:0>: Comparator mode Figure 7-2. 1998 Microchip Technology Inc. The CMCON register, shown in Figure 7-1, controls the comparator input and output multiplexers. A block two analog diagram of the comparator is shown in Figure 7-2. R/W-0 R/W-0 R/W-0 R/W-0 CIS ...

Page 38

... Off (Read as '0 CM<2:0> = 111 CIS CIS=1 C1OUT CIS CIS=1 C2OUT From V Module REF CM<2:0> = 010 C1OUT C2OUT CM<2:0> = 110 CIS CIS=1 C1OUT C2OUT CM<2:0> = 001 1998 Microchip Technology Inc. ...

Page 39

... The shaded areas of the output of the comparator in Figure 7-3 represent the uncertainty due to input offsets and response time. 1998 Microchip Technology Inc. 7.3 Comparator Reference An external or internal reference signal may be used depending on the comparator operating mode. The ...

Page 40

... 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. MULTIPLEX CMCON From Other EN Comparator CL RD CMCON NRESET Preliminary Port Pins + - 1998 Microchip Technology Inc. ...

Page 41

... LEAKAGE 1998 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 specifi ...

Page 42

... TRISA4 TRISA3 TRISA2 TRISA1 TRISA0 ---1 1111 ---1 1111 Preliminary 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-- ---- 1998 Microchip Technology Inc. ...

Page 43

... VOLTAGE REFERENCE BLOCK DIAGRAM V REN 8R V REF Note defined in Table 12-3. 1998 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 44

... TRISA4 TRISA3 TRISA2 TRISA1 Preliminary ROE (VRCON<5>). The V value select REF bit, VRCON<6>, is ROE shows an example buffering V Output REF 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 1998 Microchip Technology Inc. ...

Page 45

... Code protection 7. ID Locations 8. In-circuit serial programming 1998 Microchip Technology Inc. PIC16C62X The PIC16C62X has 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 46

... In fact, it belongs to the special test/configuration (2000h – 3FFFh), which can be accessed only during programming. (1) (1) (2) — BOREN CP1 WDTE F0SC1 CP0 PWRTE (2) (1) (1, 3) Preliminary memory space F0SC0 CONFIG Address REGISTER: 2007h bit0 1998 Microchip Technology Inc. ...

Page 47

... A series resistor may be required for AT strip cut crystals. FIGURE 9-3: EXTERNAL CLOCK INPUT OPERATION (HS OSC CONFIGURATION) Clock from OSC1 ext. system PIC16C62X OSC2 Open 1998 Microchip Technology Inc. TABLE 9-1: Ranges Characterized: Mode Freq XT 455 kHz 2.0 MHz 4.0 MHz HS 8.0 MHz 16.0 MHz Higher capacitance increases the stability of the oscillator but also increases the start-up time ...

Page 48

... OSC2/CLKOUT pin, and can be used for test purposes or to synchronize other logic (Figure 3-2 for waveform). FIGURE 9- Rext Cext PIC16C62X V DD CLK IN Fosc/4 Preliminary variation. Furthermore, the values OSCILLATOR MODE PIC16C62X OSC1 Internal Clock OSC2/CLKOUT 1998 Microchip Technology Inc. ...

Page 49

... On-chip 10-bit Ripple-counter RC OSC Note 1: This is a separate oscillator from the RC oscillator of the CLKIN pin. 1998 Microchip Technology Inc. PIC16C62X state” on Power-on reset, 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 50

... Brown-out situations < Preliminary falls below 4.0V refer DD ) for greater than BOR rises above DD while the Power-up Timer the Power-Up Timer will execute a BV Max Min Max Min Max Min. DD 1998 Microchip Technology Inc. ...

Page 51

... STATUS 8Eh PCON — — Note1: Other (non power-up) resets include MCLR reset, Brown-out Reset and Watchdog Timer Reset during normal operation. 1998 Microchip Technology Inc. 9.4.6 POWER CONTROL (PCON)/ STATUS REGISTER The power control/status register, PCON (address 8Eh) has two bits. ...

Page 52

... Wake up from SLEEP through interrupt • Wake up from SLEEP (1) through WDT time-out uuuu uuuu - uuuu uuuu ( (4) (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-- ---- (1,6) ---- --uu uuu- uuuu 1998 Microchip Technology Inc. ...

Page 53

... FIGURE 9-10: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET FIGURE 9-11: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED MCLR INTERNAL POR PWRT TIME-OUT OST TIME-OUT INTERNAL RESET 1998 Microchip Technology Inc. PIC16C62X T PWRT T OST T PWRT T OST ) DD T PWRT T OST ...

Page 54

... Internal brown-out reset should be dis- abled when using this circuit. 3: Resistors should be adjusted for the characteristics of the transistor. Preliminary PROTECTION CIRCUIT 10k MCLR 40k PIC16C62X DD PROTECTION CIRCUIT MCLR 40k PIC16C62X is below a certain level 0 1998 Microchip Technology Inc. ...

Page 55

... RBIE CMIF CMIE PEIE GIE 1998 Microchip Technology Inc. the interrupt can be determined by polling the interrupt flag bits. The interrupt flag bit(s) must be cleared in soft- ware before re-enabling interrupts to avoid RB0/INT recursive interrupts. For external interrupt events, such as the INT pin or PORTB change interrupt, the interrupt latency will be three or four instruction cycles ...

Page 56

... Preliminary 0004h 0005h Inst (0004h) Inst (0005h) Inst (0004h) Dummy Cycle Value on all Value on POR Bit 0 (1) Reset other resets RBIF 0000 000x 0000 000u — -0-- ---- -0-- ---- — -0-- ---- -0-- ---- 1998 Microchip Technology Inc. ...

Page 57

... W into STATUS register SWAPF W_TEMP,F ;swap W_TEMP SWAPF W_TEMP,W ;swap W_TEMP into W 1998 Microchip Technology Inc. PIC16C62X 9.7 Watchdog Timer (WDT) The watchdog timer is a free running on-chip RC oscil- lator which does not require any external components. This RC oscillator is separate from the RC oscillator of the CLKIN pin ...

Page 58

... U • MUX PSA • MUX WDT Time-out Bit 6 Bit 5 Bit 4 Bit 3 BOREN CP1 CP0 PWRTE INTEDG T0CS T0SE PSA Preliminary 8 PS<2:0> To TMR0 (Figure 6-6) PSA Bit 2 Bit 1 Bit 0 WDTE FOSC1 FOSC0 PS2 PS1 PS0 1998 Microchip Technology Inc. ...

Page 59

... 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. 1998 Microchip Technology Inc. The first event will cause a device reset. The two latter events are considered a continuation of program exe- cution ...

Page 60

... Figure 9-19. FIGURE 9-19: TYPICAL IN-CIRCUIT SERIAL PROGRAMMING CONNECTION External Connector Signals + CLK Data I/O To Normal Connections Preliminary to V (see programming IL IHH please refer to the Programming Specifications To Normal Connections PIC16C62X MCLR/V PP RB6 RB7 V DD 1998 Microchip Technology Inc. ...

Page 61

... Assigned to < > Register bit field In the set of i talics User defined term (font is courier) 1998 Microchip Technology Inc. PIC16C62X The instruction set is highly orthogonal and is grouped into three basic categories: • Byte-oriented operations • Bit-oriented operations • Literal and control operations ...

Page 62

... Preliminary 1998 Microchip Technology Inc. Status Notes Affected LSb C,DC,Z 1,2 ffff Z 1,2 ffff Z 2 ffff Z 0011 Z 1,2 ffff Z 1,2 ffff 1,2,3 ffff Z 1,2 ffff 1,2,3 ffff Z ...

Page 63

... Words: 1 Cycles: 1 Example ADDWF FSR, 0 Before Instruction W = 0x17 FSR = 0xC2 After Instruction W = 0xD9 FSR = 0xC2 1998 Microchip Technology Inc. ANDLW Syntax: k Operands: Operation: Status Affected: Encoding: kkkk kkkk Description: . Words: Cycles: Example ANDWF f,d Syntax: Operands: Operation: Status Affected: ...

Page 64

... Words: 1 Cycles: 1(2) Example Before Instruction After Instruction ffff 7 Preliminary f 127 10bb bfff ffff . HERE BTFSC FLAG,1 FALSE GOTO PROCESS_CODE TRUE • • • address HERE if FLAG<1> address TRUE if FLAG<1>= address FALSE 1998 Microchip Technology Inc. ...

Page 65

... PC are loaded from PCLATH. CALL is a two-cycle instruction. Words: 1 Cycles: 2 Example HERE CALL THERE Before Instruction PC = Address HERE After Instruction PC = Address THERE TOS = Address HERE+1 1998 Microchip Technology Inc. CLRF Syntax: Operands: Operation: Status Affected: Encoding: bfff ffff Description: Words: Cycles: Example CLRW Syntax: ...

Page 66

... A NOP is executed instead making it a two-cycle instruction. 1 1(2) HERE DECFSZ CNT, 1 GOTO LOOP CONTINUE • • • Before Instruction address PC = HERE After Instruction CNT = CNT - 1 if CNT = address CONTINUE if CNT address HERE+1 1998 Microchip Technology Inc. ...

Page 67

... W register the result is placed back in register 'f'. Words: 1 Cycles: 1 Example INCF CNT, 1 Before Instruction CNT = Z = After Instruction CNT = Z = 1998 Microchip Technology Inc. INCFSZ Syntax: Operands: Operation: Status Affected: Encoding: kkkk Description: Words: Cycles: Example IORLW Syntax: Operands: Operation: Status Affected: Encoding: ffff ...

Page 68

... MOVF FSR, 0 After Instruction W = value in FSR register Move label ] MOVWF 127 (W) (f) None 00 0000 1fff ffff Move data from W register to register . ' MOVWF OPTION Before Instruction OPTION = 0xFF W = 0x4F After Instruction OPTION = 0x4F W = 0x4F 1998 Microchip Technology Inc. ...

Page 69

... Since OPTION is a readable/writable register, the user can directly address it. Words: 1 Cycles: 1 Example To maintain upward compatibility with future PICmicro™ products, do not use this instruction. 1998 Microchip Technology Inc. RETFIE Return from Interrupt Syntax: [ label ] Operands: None Operation: TOS 1 Status Affected: ...

Page 70

... The power-down status bit cleared. Time-out status bit set. Watchdog Timer and its prescaler are cleared. The processor is put into SLEEP mode with the oscillator stopped. See Section 9.8 for more details SLEEP 1998 Microchip Technology Inc. ...

Page 71

... result is zero Example 3: Before Instruction After Instruction W = 0xFF result is nega- tive 1998 Microchip Technology Inc. SUBWF Subtract W from f [ label ] Syntax: Operands [0,1] Operation: (f) - (W) Status C, DC, Z Affected: kkkk Encoding: 00 Description: Subtract (2’s complement method) W register from register 'f the result is stored in the W register ...

Page 72

... Exclusive OR the contents of the W register with register 'f the result is stored in the W register the result is stored back in register 'f XORWF REG 1 Before Instruction REG = 0xAF W = 0xB5 After Instruction REG = 0x1A W = 0xB5 1998 Microchip Technology Inc. ...

Page 73

... Both systems will operate across the entire operating speed reange of the PICmicro MCU. 1998 Microchip Technology Inc. 11.3 ICEPIC: Low-Cost PICmicro™ In-Circuit Emulator ICEPIC is a low-cost in-circuit emulator solution for the Microchip PIC12CXXX, PIC16C5X and PIC16CXXX families of 8-bit OTP microcontrollers ...

Page 74

... The PICDEM-3 provides an addi- tional RS-232 interface and Windows 3.1 software for showing the demultiplexed LCD signals on a PC. A sim- ple serial interface allows the user to construct a hard- ware demultiplexer for the LCD signals. Preliminary 1998 Microchip Technology Inc. ...

Page 75

... 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. PIC16C62X 11.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 76

... 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. DS30235G-page 76 Preliminary 1998 Microchip Technology Inc. ...

Page 77

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 78

... PIC16C62X NOTES: DS30235G-page 78 Preliminary 1998 Microchip Technology Inc. ...

Page 79

... Note: Voltage spikes below V SS Thus, a series resistor of 50-100 than pulling this pin directly to V Note: Voltage spikes below V SS Thus, a series resistor of 50-100 than pulling this pin directly to V 1998 Microchip Technology Inc. (except V and MCLR)....................................................... -0. > ...

Page 80

... DD DD @5.5V @5. 1.0 A typ 1.0 A typ @4.5V @4.5V Freq: 20 MHz Freq: 20 MHz max. max 2. 3. max max. DD @32 kHz, @32 kHz, 3.0V 3. 9.0 A Max 9.0 A Max. PD @3.0V @3.0V Freq: 200 kHz Freq: 200 kHz max. max. 1998 Microchip Technology Inc. ...

Page 81

... DD 5: The current is the additional current consumed when this peripheral is enabled. This current should be added to the base measurement 1998 Microchip Technology Inc. PIC16C62X-04 (Commercial, Industrial, Extended) PIC16C62X-20 (Commercial, Industrial, Extended) T +85 C for industrial and +70 C for commercial and A – ...

Page 82

... See section on Power-on Reset for details details BOREN configuration bit is cleared XT and RC osc configuration F = 2.0 MHz 3.0V, WDT dis- OSC DD abled (Note 4) LP osc configuration kHz 3.0V, WDT dis- OSC DD abled V =3.0V, WDT disabled DD V =3.0V DD BOR enabled 1998 Microchip Technology Inc. ...

Page 83

... /2Rext (mA) with Rext The current is the additional current consumed when this peripheral is enabled. This current should be added to the base measurement 1998 Microchip Technology Inc. T +85 C for industrial and +70 C for commercial and A – ...

Page 84

... =1.2 mA, V =4.5V, +125 =-3.0 mA, V =4.5V, - =-2.5 mA, V =4.5V, +125 =-1.3 mA, V =4.5V, - =-1.0 mA, V =4.5V, +125 RA4 pin PIC16C62X, PIC16LC62X RA4 pin PIC16C62XA, PICLC62XA, CR62XA, LCR62XA clock used to drive OSC1. 1998 Microchip Technology Inc. ...

Page 85

... Operating Conditions:Vdd range as described in Table 12-1, -40 C<TA<+125 C. Current consumption is specified in Table 12-1. Characteristics Resolution Absolute Accuracy Unit Resistor Value (R) (1) Settling Time * These parameters are characterized but not tested. Note 1: Settling time measured while V 1998 Microchip Technology Inc. Min Typ Max 5 1.5 DD ...

Page 86

... FIGURE 12-1: LOAD CONDITIONS Load condition 1 V Pin R = 464 for all pins except OSC2 for OSC2 output DS30235G-page 86 T Time osc OSC1 t0 T0CKI P Period R Rise V Valid Z Hi-Impedance Load condition Pin V SS Preliminary 1998 Microchip Technology Inc. ...

Page 87

... All devices are tested to operate at "min." values with an external clock applied to the OSC1 pin. When an external clock input is used, the "Max." cycle time limit is "DC" (no clock) for all devices. 1998 Microchip Technology Inc ...

Page 88

... FIGURE 12-3: CLKOUT AND I/O TIMING Q4 OSC1 CLKOUT I/O Pin (input) I/O Pin old value (output) Note: All tests must be do with specified capacitance loads (Figure 12- I/O pins and CLKOUT DS30235G-page 20, 21 Preliminary new value 1998 Microchip Technology Inc. ...

Page 89

... These parameters are characterized but not tested † Data in "Typ" column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. Note 1: Measurements are taken in RC Mode where CLKOUT output 1998 Microchip Technology Inc. Min Typ† ...

Page 90

... Min Typ† Max Units 2000 — — 33* ms — 1024 T — — OSC 28* 72 132* ms — 2.0 s 100* — — s Preliminary 1998 Microchip Technology Inc. 34 Conditions - 5.0V, - OSC1 period OSC V = 5.0V, - 3.7V V 4.3V DD ...

Page 91

... Data in "Typ" column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. FIGURE 12-7: LOAD CONDITIONS Load condition 1 V Pin R = 464 for all pins except OSC2 for OSC2 output 1998 Microchip Technology Inc Min No Prescaler 0 20* CY With Prescaler 10* No Prescaler 0 20* CY ...

Page 92

... PIC16C62X NOTES: DS30235G-page 92 Preliminary 1998 Microchip Technology Inc. ...

Page 93

... DEVICE CHARACTERIZATION INFORMATION Not Available at this time. 1998 Microchip Technology Inc. PIC16C62X Preliminary DS30235G-page 93 ...

Page 94

... PIC16C62X NOTES: DS30235G-page 94 Preliminary 1998 Microchip Technology Inc. ...

Page 95

... Top to Seating Plane Top of Lead to Seating Plane Base to Seating Plane Tip to Seating Plane Package Length Package Width Radius to Radius Width Overall Row Spacing Window Width Window Length * Controlling Parameter. 1998 Microchip Technology Inc INCHES* MIN NOM MAX 0.300 ...

Page 96

... A1 0.075 0.095 0.115 A2 0.000 0.020 0.020 L 0.125 0.130 0.135 ‡ D 0.890 0.895 0.900 ‡ E 0.245 0.255 0.265 E1 0.230 0.250 0.270 eB 0.310 0.349 0.387 Preliminary MILLIMETERS MIN NOM MAX 7.62 18 2.54 0.33 0.46 0.58 1.40 1.52 1.65 0.00 0.13 0.25 0.13 0.25 0.38 2.79 3.94 3.94 1.91 2.41 2.92 0.00 0.51 0.51 3.18 3.30 3.43 22.61 22.73 22.86 6.22 6.48 6.73 5.84 6.35 6.86 7.87 8.85 9. 1998 Microchip Technology Inc. ...

Page 97

... Dimensions “D” and “E” do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.010” (0.254 mm) per side or 0.020” (0.508 mm) more than dimensions “D” or “E.” 1998 Microchip Technology Inc ...

Page 98

... Preliminary A1 NOM MAX 0.65 20 1.86 1.99 0.91 1.17 0.13 0.21 7.20 7.33 5.29 5.38 7.78 7.90 0.13 0.25 0.13 0.25 0.51 0. 0.13 0.25 0.18 0.22 0.32 0. 1998 Microchip Technology Inc. ...

Page 99

... Standard OTP marking consists of Microchip part number, year code, week code, facility code, mask rev#, and assembly code. 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. PIC16C62X Example ...

Page 100

... PIC16C62X NOTES: DS30235G-page 100 Preliminary 1998 Microchip Technology Inc. ...

Page 101

... PORTA inputs are now Schmitt Trigger inputs. 19. Brown-out Reset reset has been added. 20. Common RAM registers F0h-FFh implemented in bank1. 1998 Microchip Technology Inc. APPENDIX B: COMPATIBILITY To convert code written for PIC16C5X to PIC16CXX, the user should take the following steps: 1. ...

Page 102

... A device specification for JW devices was added to Table 12-1. 6. Max spec for Brown-out Reset current was changed Section 12.1 and Section 12.2. 7. Information added to support the 2.5V "LC" devices. 8. Information added to support the "A" version of the devices. Preliminary 1998 Microchip Technology Inc. ...

Page 103

... GOTO Instruction................................................................ 67 I I/O Ports.............................................................................. 25 I/O Programming Considerations........................................ 30 ICEPIC Low-Cost PIC16CXXX In-Circuit Emulator ............ 73 ID Locations ........................................................................ 60 INCF Instruction .................................................................. 67 INCFSZ Instruction ............................................................. 67 In-Circuit Serial Programming............................................. 60 Indirect Addressing, INDF and FSR Registers ................... 24 Instruction Flow/Pipelining .................................................. 12 1998 Microchip Technology Inc. PIC16C62X Instruction Set ADDLW....................................................................... 63 ADDWF ...................................................................... 63 ANDLW....................................................................... 63 ANDWF ...................................................................... 63 BCF ............................................................................ 64 BSF............................................................................. 64 BTFSC........................................................................ 64 BTFSS ........................................................................ 65 CALL ...

Page 104

... TMR0 with External Clock........................................... 33 Timer1 Switching Prescaler Assignment................................. 35 Timing Diagrams and Specifications................................... 87 TMR0 Interrupt .................................................................... 56 TRIS Instruction .................................................................. 72 TRISA.................................................................................. 25 TRISB.................................................................................. 28 DS30235G-page 104 V Voltage Reference Module ................................................. 43 VRCON Register ................................................................ 43 W Watchdog Timer (WDT)...................................................... 57 WWW, On-Line Support ....................................................... 3 X XORLW Instruction ............................................................. 72 XORWF Instruction............................................................. 72 Preliminary 1998 Microchip Technology Inc. ...

Page 105

... Trademarks: The Microchip name, logo, PIC, PICSTART, PICMASTER and PRO MATE are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. PICmicro, Flex ROM, MPLAB and fuzzy- LAB are trademarks and SQTP is a service mark of Micro- chip in the U ...

Page 106

... Is there any incorrect or misleading information (what and where)? 7. How would you improve this document? 8. How would you improve our software, systems, and silicon products? DS30235G-page 106 Total Pages Sent FAX: (______) _________ - _________ N Literature Number: DS30235G 1998 Microchip Technology Inc. ...

Page 107

... Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using. For latest version information and upgrade kits for Microchip Development Tools, please call 1-800-755-2345 or 1-602-786-7302. 1998 Microchip Technology Inc. PIC16C62X 3-Digit Pattern Code for QTP (blank otherwise) ...

Page 108

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

Related keywords