@PLESSEY PIC1655A ADVANCE INFORMATION Advance information is issued to advise Customers of new additions to the Plessey Semiconductors range which, nevertheless, still have pre-production status. Details given may, therefore, change without notice although we would exrect this performance data to be representative of full production status product in most cases. Please contact your local Plessey Semiconductors Sales Office for PIC1655A 8 BIT MICROCOMPUTER details of current status. FEATURES User Programmable Intelligent Controller for Stand-Alone Applications 32 8-Bit RAM Registers 512 x 12-Bit Program ROM Arithmetic Logic Unit Real Time Clock Counter Self-contained Oscillator Access to RAM Registers !nherent in Instruction Wide Power Supply Operating Range (4.5V to 7.0V) Available in Two Temperature Ranges: 0C to 70C and -40C to 85C 4 Inputs, 8 Outputs, 8 Bidirectional I/O Lines 2 Level Stack The PiC1655A microcomputer is an MOS/LSI device containing RAM, I/O, and acentral processing unit as wel! as customer-defined ROM on a single chip. This combination produces a low cost solution for applications which require sensing individual inputs and controlling individual outputs. Keyboard scanning, display driving, and other system control functions can be done at the same time due to the power of the 8-bit CPU. The internal ROM contains a customer-defined program using the PICs powerful instruction set to met? xpi voo []2 27[} osc vax (Ja 26] CLK OUT _ vss [4 2s[]Rc?7 test {]5 2a[] RCE nao(is 2af]}acs pas[]7 PIC1655A 22[] Aca - pa2[]a aif]nc3 = + Raa[]o 2o[}Rc2 ++ = AB0 (10 soffacr pei wef] aco re2(]e - vfRe7 pas(}3 ref) ABs pa[fe s/s DP28 Fig.1 Pin connections - top view specify the overall functional characteristics of the device. The 8-bit input/output registers provide latched lines for interfacing to a limitless variety of applications. The PIC can be used to scan keyboards, drive displays, control electronic games and provide enhanced capabilities to vending machines, traffic lights, radios, FILE SELECT REGISTER REGISTER [___ 5" FILES W REGISTER (Fa) (F10-F37) Loaic Kr 8 UNIT GENERAL a. So wa 2 LEVEL INSTRUCTION STACK DECODE STATUS REG (F3)|_ | RTCC REG (F1) feb CONTROL PROG CNTA (F2) PRESCALER +4,2, 4, 8, 16 PROG RO! 512 x 12 ATCC MCLR Fig.2 PIC1655A block diagram 281PIC1655A television, consumer appliances, industrial timing and control applications. The 12-bit instruction word format provides a powerful yet easy to use instruction repertoire emphasizing single bit manipulation as well as logical and arithmetic operations using bytes. The PIC1655A is fabricated with N-Channel lon Implant technology resulting in a high performance product with proven reliability and production history. Only a single wide range power supply is required for operation, andan on-chip oscillator provides the operating clock with only an external RC network (or buffered crystal oscillator signal, for greater accuracy) to establish the frequency. Inputs and outputs are TTL-compatible. Extensive hardware and software support is available to aid the user in developing an application program and to verify performance before committing to mask tooling. Programs can be assembled into machine language using PICAL, eliminating the burden of coding with ones and zeros. PICAL is available in a Fortran IV version that can be run on many popular computer systems. Once the application program is developed several options are available to insure proper performance. The PICs operation can be verified in any hardware application by using the PIC1664B. The PIC1664B is a ROM-less PIC microcomputer with additional pins to connect external PROM or RAM and to accept HALT commands. The PFD 1000 Field Demo System is available containing a PIC1664B with sockets for erasable CMOS PROMs. Finally, the PICES (PIC In-Circuit Emulation System) provides the user with emulation and debugging capability in either a stand-alone mode or opertion as a peripheral to a larger computer system. Easy program debugging and changing is facilitated because the user's program is stored in RAM. With these development tools, the user can quickly and confidently order the masking of the PICs ROM and bring his application into the market. A PIC Series Microcomputer Data Manual is available which gives additional detailed data on PIC based system design. PIN FUNCTIONS ARCHITECTURAL DESCRIPTION The firmware architecture of the PIC series microcomputer is based on a register file concept with simple yet powerful commands designed to emphasize bit, byte, and register transfer operations. The instruction set also supports computing functions as well as these control and interface functions. Internally, the PIC is composed of three functional elements connected together by a single bidirectional bus: the Register File composed of 32 addressable 8-bit registers, an Arithmetic Logic Unit, and a user-defined Program ROM composed of 512 words each 12 bits in width. The Register File is divided into two functional groups: operational registers and general registers. The operational registers include, among others, the Real Time Clock Counter Register, the Program Counter (PC), the Status Register, and the I/O Registers. The general purpose registers are used for data and conritrol information under command of the instructions. The Arithmetic Logic Unit contains one temporary working register or accumulator (W Register) and gating to perform Boolean functions between data held in the working register and aniy file register. The Program ROM contains the operational program for the rest of the logic within the controller. Sequencing of microinstructions is controlled via the Program Counter (PC) which automatically increments to execute in-line programs. Program contro! operations can be performed by Bit Test and Skip instructions, Jump instructions, Call instructions, or by loading computed addresses into the PC. In addition, an on-chip two-level stack is employed to provide easy to use subroutine nesting. Activating the MCLR input on power up initializes the ROM program to address 7778 Signal Function OSC (input) RTCC (input) RAO-3 (input) RBO-7 (output) RCO-7 (input/output) 4 input lines 8 output lines MCLR (input) is a Schmitt trigger input. CLK OUT (output) themselves to PIC timing. Oscillator input: This signal can be driven by an external oscillator if a precise frequency of operation is required or an external RC network can be used to set the frequency of operation of the internal clock generator. This is a Schmitt trigger input. Real Time Clock Counter. Used by the microprogram to keep track of elapsed time between events. The Real Time Clock Counter Register increments on falling edges applied to this pin. This register can be loaded and read by the program. This is a Schmitt trigger input. 8 user programmable input/output lines All inputs and outputs are under direct control of the program. Master Clear. Used to initialize the internal ROM program to address 7778 and latch all I/O register high. Should be held tow at least 1ms past the time when the power supply is valid. This A signal derived from the internal oscillator. Used by external devices to synchronize TEST Used for testing purposes only. Must be grounded for normal operation. Voo Primary power supply. Vxx Output Buffer power supply. Used to enhance output current sinking capability. Vss Ground 282PICT655A REGISTER FILE ARRANGEMENT (Gem) Function FO Not a physically implemented register. FO calls tor the contents of the File Select Register (low order 5 bits) to be used to select a file register. FO is thus useful as an indirect address pointer. For example, W+FO-W will add the contents of the file register pointed to by the FSR (F4) to W and place the result in W. 1 Real Time Clock Counter Register. This register can be loaded and read by the micropeea The RTCC register keeps counting up after zero is reached. The counter increments on the falling edge of the input A . F2 Program Counter (PC).The PC is automatically incremented during each instruction cycle, and can be written into under program controt (MOVWF F2).The PC is nine bits wide, but only its low order 8 bits can be read under program control. 3 Status Word Register. F3 can be altered under program control only via bit set, bit clear, or MOVWF F3 instruction. (7) (6) (5) (4) (3) (2) (1) (0) Cr T71Ts Tita Tz [To] | C (Carry): For ADD and SUB instructions, this bit is set if there is a carry out from the most significant bit of the resultant. For ROTATE instructions, this bit is loaded with either the high or low order bit of the source. DC (Digit Carry):For ADD and SUB instructions, this bit is set if there is a carry out from the 4th low order bit of the resultant. Z (Zero): Set if the result of an arithmetic operation is zero. Bits: 3-7 These bits are defined as iogic ones. Fa File Select Register (FSR). Low order 5 bits only are used The FSA is used in generating effective file register addresses under program control. When accessed as a directly addressed file, the upper 3 bits are read as ones. 5 Input Register A (A0-A3) (A4-A7 defined as zeroes). F6 Output Register B (BO-B7) F7 VO Register C (CO0-C7) F10-F37 | General Purpose Registers 283PIC1655A BASIC INSTRUCTION SET SUMMARY Each PIC instruction is a 12-bit word divided into an OP code which specifies the instruction type and one or more operands which further specify the operation of the instruction. The following PIC instruction summary lists byte-oriented, bit-ori- ented, and literal and control operations. for byte-oriented instructions, f represents a file register designator and "d" represents a destination designator. The file register designator specifies which one of the 32 PIC file registers is to be utilized by the instruction. The destination designator specifies where the result of the operation performed by the instruction is to be placed. If "d is zero, the result is placed in the PIC W register. If d" is one, the result is returned to the file register specified in the instruction For bit-oriented instructions. b" represents a bit field designator which selects the number of the bit affected by the operation, while "f represents the number of the file in which the bit is located. For literal and control operations, k represents an eight or nine bit constant or litera! value. For an oscillator frequency of 1MHz the instruction execution time is 4 wsec, unless a conditional test is true or the program counter is changed as a result of an instruction. In these two cases, the instruction execution time is 8 usec. BYTE-ORIENTED . FILE REGISTER (11-6) (5) (4-0) OPERATIONS OP CODE | d 1 (FILE #) ] For d = 0, f-W (PICAL accepts d = 0 or d = W in the mnemonic) d=1,f-f (ifd is omitted, assembler assigns = 1.) Instruction-Binary (Octal) Name Mnemonic, Operands. Operation Status Affected 000 000 000 000 (0000}| No Operation NOP _ _ None 000 000 1ff fff (0040) Move W to f (Note 1} MOVWF f Ww-t None 000 001 000 000 (0100) Clear W CLRW _ 0-W Zz 000 001 iff fff (0140) Clear f CLRF f O-f _ Zz 000 010 dff fff (0200) Subtract W from f SUBWF t,d f- Wed [f+W+t-d] C,0C,2Z 000 011 dff fff (0300) Decrement f DECF f,d f-1-d Zz 000 100 dff fff (0400) Inclusive OR W and t lORWF f,d WVt-d z 000 101 dff fff (0500) AND W and f ANDWF fd Wef-d Zz 000 110 dff fff (0600) Exclusive OR W and f XORWF fd WOtd Zz 000 111 dff fff (0700} Add W and f AODWF id Wtt-d C,0C.Z 001 000 dff fff (1000) Move f MOVF f.d f-d z 001 O01 dff fff (1100} | Complement f COMF f.d f-d Zz 001 010 dff fff (1200) Increment f INCF fd f+1-d Zz 001 Ott dff fff (1300) Decrement f, Skip if Zero DECFSZ fd f- 1-d, skip if Zero None 001 100 att fff (1400} | Rotate Right f RAF f.d f(n)d(n-1), (0)-C, C-d(7) c 001 101 dff fff (1500) Rotate Left f RLF f.d f(njd(n+1), f(7)-C, C-d(0) Cc 001 110 dff fff (1600} Swap halves f SWAPF fd f(0-3)Sf(4-7)-d None OO1 +11 dff fff (1700) Increment f, Skip if Zero INCFSZ f,d f+1d, skip if zero None BIT-ORIENTED (11-8) (7-5) (4-0) FILE REGISTER - OPERATIONS OP CODE b (BIT #) 1 (FILE #) Instruction-Binary (Octal) Name Mnemonic, Operands Operation Status Affected 010 Obb bff fff (2000) | Bit Cleart BCF f,b O-f{b) None 010 1bb bff fff (2400) | Bit Sett BSF fb 1=#(b) None 011 Obb bff fff (3000) | Bit Test f, Skip if Clear BTFSC f,b Bit Test f(b): skip if clear None 011 1bb bff fff (3400) Bit Test f, Skip if Set BTFSS f.b Bit Test f(b}: skip is set None (11-8) (7-0) LITERAL AND CONTROL | ITERAL OPERATIONS OP CODE k (LITE ) Instruction-Binary (Octal) Name | Mnemonic, Operands Operation Status Affected 100 Okk kkk kkk (4000) Return and place Literal in W RETLW k k-W, Stack-PC None 100 tkk kkk kkk (4400) Call subroutine (Note 1) CALL k PC+1 Stack, k - PC None 101 kkk kkk kkk (5000) Go To address. (k is 9 bits) GOTO k k=PC None 110 Okk kkk kkk (6000) Move Literal to W MOVLW k k-W None 110 kk kkk kkk (6400) Inclusive OR Literal and W IORLW k kVW-W Zz 111 OkK kkk kkk (7000) AND Literal and W ANOLW k keW-W z 111 1kk kkk kkk (7400) Exclusive OR Litera! and W XORLW k kOW--W z NOTES: 1. The 9th bit of the program counter in the PIC is zero for a CALL and a MOVWF F2. Therefore, subroutines must be located in program memory locations 0-377. However, subroutines can be called trom anywhere in the program memory since the Stack is 9 bits wide. 2. When an I/O register is modified as a function of itself, the value used will be that value present on the output pins. For example, an output pin which has been latched high but is driven low by an external device, will be relatched in the low state 284SUPPLEMENTAL INSTRUCTION SET SUMMARY The following supplemental instructions summarized below represent specific applications of the basic PIC instructions. For example, the CLEAR CARRY supplemental instruction is equiv- PIC1655A alent to the basic instruction BCF 3.0 (Bit Clear, File 3, Bit 0"). These instruction mnemonics are recognized by the PIC Cross Assembler (PICAL). Mnemonic, Equivalent Status Instruction-Binary (Octal) Name Operands Operation(s) Affected 010 000 000 011 {2003) Clear Carry CLRC BCF 3,0 _ 010 100 000 011 (2403) Set Carry SETC BSF 3, 0 _ 010 000 100 011 (2043) Clear Digit Carry CLRDC BCF 3.1 - 010 100 100 011 (2443) Set Digit Carry SETDG BSF 3,1 - 010 001 000 011 (2103) Clear Zero CLAZ BCF 3, 2 _ 010 101 000 O11 (2503) Set Zero SETZ BSF 3, 2 - 011 100 000 011 (3403) Skip on Carry SKPC BTFSS 3, 0 - 011 000 000 011 (3003) Skip on No Carry SKPNC BTFSC 3.0 _ 011 100 100 011 (3443) Skip on Digit Carry SKPDC BTFSS 3,1 - 011 000 100 011 (3043) Skip on No Digit Carry SKPNDC BTFSC 3, 1 _ 011 101 000 011 (3503) Skip on Zero SKPZ BTFSS 3, 2 - 011 001 000 011 (3103) Skip on No Zero SKPNZ BTFSC 3, 2 - 001 000 1ff fff (1040) Test File TSTF f MOVF f, 1 z 001 000 Off fif (1000) Move File to W MOVEFW f MOVE f, 0 Zz 001 001 1ff fff (1140) Negate File NEGF f.d COMF f, 1 001 010 dff fff (1200) INCF f, d z 011 000 000 011 (3003) Add Carry to File ADOCF f, d BTFSC 3,0 001 010 dff fff (1200) INCF f, d Zz 011 000 000 011 (3003) Subtract Carry from File SUBCF f.d BTFSC 3,0 000 011 aff fff {0300) DECF f.d z 011 000 100 011 (3043) Add Digit Carry to File ADDDCF fd BTFSG 3,1 001 010 dff fff (1200) INCF f,d Zz 011 000 100 011 (3043) Subtract Digit Carry from File SUBDCF fd BTFSC 3,1 000 O11 dff fff (0300) DECF f.id z 101 kkk kkk kkk (5000) Branch Bk GOTO k _ 011 000 000 011 (3003) Branch on Carry BC k BTFSC 3,0 101 kkk kkk kkk (5000) GOTO k _ 011 100 000 011 (3403) Branch on No Carry BNC k BTFSS 3,0 101 kkk kkk kkk (5000) GOTO k - 011 100 100 011 (3043) Branch on Digit Carry BDC k BTFSC 3,1 101 kkk kkk kkk (5000) GOTO k _ 011 001 000 011 (3443) Branch on No Digit Carry BNOC k BTFSS 3,1 101 kkk kkk kkk (5000) GOTO k _ 011 101 000 011 (3103) Branch on Zero BZ k BTFSC 3.2 101 kkk kkk kkk (5000) GOTO k _ 011 101 000 611 = {3603) Branch on No Zero BNZ k BTFSS 3.2 101 kkk kkk kkk (5000) GOTO k _ V/O Interfacing The equivalent circuit for an 1/O port bit is shown below as it would interface with either the input of a TTL device (PIC is outputting) or the output of an open collector TTL device (PIC is inputting). Each I/O port bit can be individually time multiplexed between input and output functions under software control. When outputting through a PIC I/O Port, the data is latched at the port and the pin can be connected directly to a TTL gate input. When inputting data through an \/O Port, the port latch must first be set to a high level under program control. This turns off Qz, allowing the TTL open collector device to drive the pad, pulled up by Q;, which can source a minimum of 100uA. Care, however, should be exercised when using open collector devices due to the potentially high TTL leakage current which can exist in the high logic state. 285PIC1655A On (INTERNAL 5 ATA BUS) WRITE {INTERNAL 4 SIGNAL) oO ie Vx Voo | trLpevice outpur | (OPEN-COLLECTOR) | | | | | | ly. Lf - | | | | J Fig.3 Typical interface - bidirectional 1/O line Bidirectional I/O Ports The bidirectional ports may be used for both input and output operations. For input operations these ports are non- latching. Any input must be present until read by an input instruction. The outputs are latched and remain unchanged until the output latch is rewritten. For use as an input port the output latch must be set in the high state. Thus the external device inputs to the PIC circuit by forcing the latched output line to the low state or keeping the latched output high. This principle is the same whether operating on individual bits or the entire port. Some instructions operate internally as input followed by output operations. The BCF and BSF instructions, for example, read the entire port into the CPU, execute the bit operation, and re-output the result. Caution must be used when using these instructions. As an example a BSF operation on bit 5 of F7 (port RC) will cause all eight bits of F7 to be read into the CPU. Then the BSF operation takes place on bit 5 and F7 is re-output to the output latches. If another bit of F7 is used as an input (say bit 0) then bit 0 must be latched high. If during the BSF instruction on bit 5 an external device is forcing bit 0 to the low state then the input/output nature of the BSF instruction will leave bit O latched low after execution. In this state bit 0 cannot be used as an input until it is again latched high by the programmer. Refer to the examples below. Input Only Port: (Port RA) The input only port of the PIC1655A consists of the four LSBs of F5 (port RA). An internal pull-up device is provided so that external pull-ups on open collector logic are unnecessary. The four MSBs of this port are always read as zeros. Output operatins to F5 are not defined. Note that the BTFSC and BTFSS instructions are input only operations and so can be used with F5. Output Only Port: (Port RB) The output only port of the PIC1655A consists of F6 (port RB). This port contains no input circuitry and is therefore not capable of instructions requiring an input followed by an output operation. The only instructions which can validly use F6 are MOVWF and CLRF. Successive Operations on Bidirectional I/O Ports Care must be exercised if successive instructions operate on the same I/O port. The sequence of instructions should be such to allow the pin voltage to stabilize (load dependent) before the next instruction whic causes that file to be read into the CPU (MOVF, BIT SET, BIT CLEAR, and BIT TEST) is executed. Otherwise, the previous state of that pin may be read into the CPU rather than the new state. This will happen if tea (See I/O Timing Diagram) is greater than Yytcy (min). When in doubt, it is better to separate these instructions with a NOP or other instruction. OUTPUT INPUT What 1s thought to be happening BSF 75 Read into CPU 00001111 Set bit 5. 00101111 Write to F7 00101111 If no tnputs were low during the instruction execution, there would be no probiem OUTPUT INPUT What could happen if an input were low BSF75 Read into CPU 00001110 Set bit S 00101110 Write to F7 00101110 In this case bit 01s now latched low and is no longer useful as an input until set high again Fig.4 Example 1 286 Fig.5 Example 2PIC1655A ELECTRICAL CHARACTERISTICS *Exceeding these ratings could cause perma - * Maximum Ratings 8 . nent damage to the device. This is a stress Temperature Under Bias........--- 0.2 ee cece erent ee eet eten enters 125C rating only and functional operation of this Storage Temperature ..........--- 55C to +150C device at these conditions is not implied operating ranges are specified in Standard Conditions. Exposure to absolute maximum rating conditions for extended periods may eee b rene ene e eee n eter een es affect device reliability. Voltage on any pin with Respect to Vss ... 6.6 ieee eee eee eee 0.3V to +12.0V Power Dissipation ...........0 0002 ce cer een ene een n ne eee Power Dissipated by any one I/O pin (Note 1) Power Dissipated by al! 1/0 pins (Note 1) Standard Conditions (unless otherwise stated): DC CHARACTERISTICS Operating Temperature Ta = 0C to +70C Characteristic sym Min Typ Mex Units Conditions Primary Supply Voltage Voo 45 = 7.0 v Output Buffer Supply Voltage Vax 45 _ 10.0 v {Note 2) Primary Supply Current Too = 30 50 mA All /O pins high Qutput Bulfer Supply Current Ixx 1 5 mA All /O pins high (Note 3) Input Low Voltage Vin 0.2 0.8 v Input High Voltage (except MCLR. RTCC & OSC when driven externally) Vint 2.4 _- Voo v input High Voltage (MCR, ATCC & OSC) Vin Voo71 _ Voo Vv Output High Voltage Vou 2.4 Voo v Ton = ~100%A provided by internal pullups (Note 4) Output Low Voltage (I/O only) Vou = _ 0.45 Vv Tou = 1.6MA, Vix = 4.5V ~ 0.90 Vv To. = 5.0MA, Vax = 4.5V _ _ 0.90 Vv To. = 5.0MA, Vix = 8.0V _ _ 1.20 Vv To. = 10.0MA, Vax = 8.0V _ ~ 2.0 Vv To. = 20.0MA, Vax = 8.0V (Note 5) Output Low Voltage (CLK OUT) Vou2 - - 0.45 v Io = 1.6mA (Note 5) input Leakage Current (MCLR, RTCC) le 10 - +10 uA Vss < Vin S Voo Input Low Current (all I/O ports) . Tie -0.2 0.6 1.6 mA Vic = 0.4V internal pullup Input High Current (all 1/O ports) Tin -0.1 -0.4 _ mA Vin = 2.4V NOTES: 1, Power dissipation for I/O pins is calculated by E (Veo ~Va) ([Iau]} + Z (Vee Vow) ([Tou]) + E (Vor) (lov) The term1/O refers to all interface pins; input, ouput or I/O. 2. Vx supply drives only the I/O ports. 3. The maximum Ixx current wiil be drawn when all1/O ports are outputting a High. 4. Positive current indicates current into pin. Negative current indicates current out of pin . Total Io. for ali output pins (I/O ports plus CLK OUT) must not exceed 225mA. 287PIC1655A Standard Conditions (uniess otherwise stated): AC CHARACTERISTICS Operating Temperature T, = 0C to +70C Characteristic Sym Min Typ Max | Units Conditions instruction Cycie Time tey 4 20 us 0.2MHz 1.0MHz external time base {Note 1) RYCE Input Period lar tey _ _ High Pulse Width tare Yatey _ ~ _ Low Pulse Width tate Yatey _ _ _ (Note 2) I/O Ports Data Input Setup Time ts _ = %tey125) ns Data Input Hold Time th 0 _ _ ns Data Output Propagation Delay tea _ 500 800 ns Capacitive load = 50pF OSC Input External Input Impedance High Roscu _ 120 _ Q Vosc = 5V Applies to external External input Impedance Low Roscu - 10 _ 2 Vose = aut osc driveonly. NOTES: 1. Instruction cycle period (tv) equals four times the input oscillator time base period. 2. Due to the synchronous timing nature between CLK OUT and the sampling circuit used on the RTCC input, CLK OUT may be directly tied to the RTCC input. 288PIC1655A ~~ \ JS\ /\ _) GATE 7 INCREMENT ANSWER WRITE PC Me-EXECUTE - TO ADDRESS ROM INSTRUCTION | !NTERNAL vo FOR NEXT BUS INSTRUCTION Ph it OUTPUT VALID ee | le INPUT |< STABLE X NOTE: | 1 Rise and fall times are load dependent. Fig.6 1/O timing Fig.7 CLK OUT timing tar retate ' ' \ 1 RTcc \ I tq ___- Fig.8 RTCC timing Vo (VOLTS) TYPICAL HYSTERESIS Vo (VOLTS) vbD .- SV TA = 25C 5 O46 Le Vi (VOLTS) Vi (VOLTS) 15 27 MCLA, OSC Fig.9 Schmitt trigger characteristics 289PIC1655A PIC1655A OSCILLATOR OPTIONS (TYPICAL CIRCUITS) Yoo R {ext) TO PIC165SA PIN #27 rT (ext) Rext 18k 14k) 40 60) 68 6100 120 140 160 180 200 220 240 260 INSTRUCTION CYCLE TIME (kHz) Oscillator Frequency With Typical Unit to Unit Variance Unit to Unit Variation at Voo = .0V, Ta = 25C is +25% Variation from Voo = 4.5V 7.0V referenced to SV is 3%, +9% Variation from Ta = 0C 70C referenced to 25C is +3%, 5% Fig.10 RC option operation ___+-4 tot TO OSC PIN #27 c 30% < DUTY CYCLE < 70% Fig.11 Buffered crystal input operation CLOCK FROM EXT. SYSTEM + TO OSC PIN #27 Fig.12 External clock input operation 290PICT655A Yop R A<100k TO PIC1655A MCLR PIN #26 T Master Clear requires > 1.0ms delay before activation after power is applied to the Voo pin. To achieve this, an external RC configuration as shown can be used (assuming Von is applied as a step function). Fig.13 Master clear VoL (VOLTS) lou vs. VoL TYP @ 25C The Output Sink Current is dependent on the Vxx supply and the output load. This chart shows the typicai curves used to express the output drive capability. Fig.14 Output sink current graph Von (VOLTS) | t VDD = VXK = 4.25V TA = 28C TA = 88C > LY, y lop (mA) YY = 40C \\ 200 400 600 300 1000 IOH WA) 40 0 a a 120 TEMPERATURE (C) Fig.15 Vouvs. fon (1/O ports) Fig.16 Power supply current vs. temperature 291PIC1655A PIC1655A EMULATION CAUTIONS When emulating a PIC1655A using a PICES development system certain precautions should be taken. A. Be sure that the PICES Module being used is programmed for the PIC1655A mode. (Refer to PICES Manual). The PIC1664B contained within the module should have the MODE pin #22 set to a high state. 1. This causes the MCLR to force all I/O registers high. 2. The OSC 1 pin #59 becomes a single clock input pin. 3. The interrupt system becomes disabled and the RTCC always counts on the trailing edges. 4. Bits 3 through 7 on file register F3 are all ones. B. Make sure to only use two levels of stack within the program. 292 C. Make sure all I/O cautions contained in this spec sheet are used. D. Be sure to use the 40 pin socket for the module plug. E. Make sure that during an actual application that the MCLR input swings from a low to high level a minimum of 1msec after the supply voltage is applied. F. If an external oscillator drive is used, be sure that it can drive the 120 input impedance of the OSC pin on the PIC1655A. G. The cable length and internal variations may cause some parameter values to differ between the PICES module and a production PIC1655A.