PTK8607 Data Sheet ========================================== PTK8607 8 Bit Micro-controller Data Sheet DEC 26, 2003 - Ver1.0 ===================================================================================== Page1 PTK8607 Data Sheet ========================================== 1. ROM (Word) RAM (Byte) (Bits) (Byte) (MHz) (V) (nS) I/O (Level) PTK8607 2048 72 16 8 49 20 2.5 6.0 200 11 20 1 1 4 / RC/LP/XT/HS Port1/Port2/Port3 Port1/Port2/Port3 1 PDIP28/SOP28 2. PTK8607 CMOS IC 2048 EPROM 72 RAMPTK8607 3. PTK8607 ... ===================================================================================== Page2 PTK8607 Data Sheet ========================================== 4. RTCC1 VDD NC VSS NC P10 P11 P12 P13 P20 P21 P22 P23 P24 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 MCLRB OSCI OSCO P37 P36 P35 P34 P33 P32 P31 P30 P27 P26 P25 PTK8607 5. PTK8607 I/O P10 P13 I/O Port1 / pin P20 P27 I/O Port2 / pin P30 P37 I/O Port3 / pin RTCC1 I 1 pin MCLRB I pin( 80K ) OSCI I pin OSCO VDD O pin - pin VSS - pin ===================================================================================== Page3 PTK8607 Data Sheet ========================================== 6. a. b. c. d. e. f. g. h. i. 8-bit : DC-20MHz ROM 2048 RAM 24 11 4 (4 Level Stack) I/O I/O P-MOS 1 8-bit(RTCC1) 7. 000h IDFSR 001h RTCC1 002h PCRL 003h STACR 004h FSR 005h Port1 006h Port2 007h Port3 008h F08 009h F09 00Ah F0A 00Bh F0B 00Ch F0C 00Dh F0D 00Eh F0E 00Fh F0F 010h ~ 01Fh R10 ~ R1F OPTIONCFR2CFR3 ===================================================================================== Page4 PTK8607 Data Sheet ========================================== Address Name 00h IDFSR Indirect Address Register xxxxxxxx 01h RTCC1 Timer1 Register 00000000 02h PCRL Program Counter on Low Group Register 00000000 03h STACR 04h FSR 05h Port1 - - - - P13 P12 P11 P10 xxxxuuuu 06h Port2 P27 P26 P25 P24 P23 P22 P21 P20 uuuuuuuu 07h Port3 P37 P36 P35 P34 P33 P32 P31 P30 uuuuuuuu - Option - - T1CSS T1ECES T1PSA T1PS2 T1PS1 T1PS0 11111111 - CFR2 - - - - - P3POFB P2POFB P1POFB 11000111 - CFR3 - - - - - - IOCGS1 IOCGS0 00000000 x AE Bit7 - Bit6 Bit5 PCBK1 PCBK0 Bit4 TMOF Bit3 Bit2 PDBF ZF Bit1 DCF Bit0 CF File Select Register Don't Care. U AE Un-change Default 000qquuu uuuuuuuu q AE Power On Value. 8. 4 Program Counter Instruction = Call / Retl2w Move to Program Counter Value -----------------> Stack Stack Level 1 Stack Level 2 Stack Level 3 Stack Level 4 Program Memory (User Space) Reset Vector ===================================================================================== Page5 PTK8607 Data Sheet ========================================== 9. 9.1 IDFSR - 00h AE FSR FSR 9.2 RTCC1 - 01h 1 AE n. / Y. RTCC1 OPTION PAD FOSC/4 2 To 1 MUX XOR T1/2ECES SYNC Circuit RTCC Register Data Bus T1/2CSS 8/16 Bit Counter T1/2PS0 T1/2PS1 T1/2PS2 2 To 1 MUX WDT 8 To 1 MUX T1/2PSA 2 To 1 MUX 3 To 8 Decoder WDT Time Out T1/2PSA 9.3 PCRL - 02h AE n. MCU MCU Y. CALL PCRL 8 Z. RETLW 8 PCRL ===================================================================================== Page6 PTK8607 Data Sheet ========================================== 9.4 STACR - 03h 00011XXX Bit7 - Bit6 U Bit5 Bit3 Bit2 / ( = 512 Words) GOTO ORG 000H BSF STACR6 PCBK1-0 GOTO L410 L110 NOP ; PCBK1-0<0,0>Page0 (000~1ff) L410 Bit4 TMOF PCDF ZF ORG NOP BCF GOTO 410H ; PCBK1-0<1,0>Page1 (400~5ff) STACR6 L110 X TMOF = 0 Y CLRWDT TMOF = 1 PCDF = 1 SLEEP PCDF = 0 TMOF = 1 0 (5-2) = 3 MOVLW 05H MOVW2F 12H MOVLW 02H SUBWF2W 12H AE ZF = 0 0 MCU 0 1 MCU 0 0 MOVLW MOVW2F MOVLW SUBWF2W AE ZF = 1 (5-5) = 0 05H 12H 05H 12H ===================================================================================== Page7 PTK8607 Data Sheet ========================================== Bit1 DCF Bit0 CF / 0000 0101b + 0000 0010b = 0000 0111b MOVLW 05H MOVW2F 12H MOVLW 02H INCFW2W 12H AE DCF = 0 0000 0101b + 0000 1101b = 0001 0010b MOVLW 05H MOVW2F 12H MOVLW 0DH INCFW2W 12H AE DCF = 1 0 MCU 4(xxxX xxxxb)(/) 1 MCU 4(xxxX xxxxb)(/) / 35H + 22H = 057H MOVLW 35H MOVW2F 12H MOVLW 22H INCFW2W 12H AE CF = 0 0 MCU / 1 MCU / 35H MOVLW MOVW2F MOVLW INCFW2W AE CF = 1 + CDH = 102H 35H 12H CDH 12H 9.5 FSR - 04h AE n. IDFSR Y. bit0 bit5Bit6 bit7 1 ===================================================================================== Page8 PTK8607 Data Sheet ========================================== 9.6 PORT1 - 05h AE PORT1 n. 8 I/O o. P10 P13 / 9.8 PORT2 - 06h AE PORT2 n 8 I/O o P20 P27 / 9.10 PORT3 - 07h PORT3 n. 8 I/O o. P30 P37 / VDD TRIS IOCGS0 IOCGS1 D Q EN QB Pull-High Setting Register P1/2/3POFB P-MOS Control Bit From Data Bus D Q Write CK QB TRIS D Q EN QB IOCGS0 IOCGS1 PAD I/O Setting Register To Data Bus Read Signal From I/O State Latch Bit D Q EN QB D Q To I/O Interrupt Flag TRIS IOCGS0 IOCGS1 EN Interrupt Setting Register TRIS IOCGS0 IOCGS1 D Q EN Pull-Low Setting Register ===================================================================================== Page9 PTK8607 Data Sheet ========================================== 9.11 OPTION - 11111111 () Bit7 - ! 0 Bit6 - ! 0 Bit5 Bit4 Bit3 T1CSS T1ECES T1PSA Group-L Group-H 3 Timer1 Timer1 RTCC1 pin 0 1 P30 Timer1 Timer1 0 1 Timer1 Timer1 Timer1 WDT 0 Timer1 1 Watch Dog Timer(WDT) Timer1 1 : X X RTCC1 WDT Bit2 U Bit0 T1PS2-0 Timer1 WDT 000 1 : 2 1 : 1 001 1 : 4 1 : 2 010 1 : 8 1 : 4 011 1 : 16 1 : 8 100 1 : 32 1 : 16 101 1 : 64 1 : 32 110 1 : 128 1 : 64 111 1 : 256 1 : 128 ===================================================================================== Page10 PTK8607 Data Sheet ========================================== 9.12 CFR2 - 11000111 () Bit7 - ! 0 Bit6 - ! 0 Bit5 - ! 1 Bit4 - ! 1 Bit3 - ! 1 Bit2 Bit1 Bit0 P3POFB P2POFB P1POFB Port-3 P-MOS Port P-MOS N-MOS Port3 P-MOS OFF MOVLW xxxxx0xxb MVW2CR2 Port3 C-MOS MOVLW xxxxx1xxb MVW2CR2 0 1 Port-2 P-MOS Port P-MOS N-MOS Port2 P-MOS OFF MOVLW xxxxxx0xb MVW2CR2 Port2 C-MOS MOVLW xxxxxx1xb MVW2CR2 0 1 Port-1 P-MOS Port P-MOS N-MOS Port1 P-MOS OFF MOVLW xxxxxxx0b MVW2CR2 Port1 C-MOS MOVLW xxxxxxx1b MVW2CR2 0 1 ===================================================================================== Page11 PTK8607 Data Sheet ========================================== 9.13 CFR3 - 00000000 () Bit7 U Bit2 Bit1 U Bit0 - IOCGS1 and IOCGS0 ! 1 I/O (Bit0 Bit1) I/O X.I/O (00) Exp. Port21 Port26 Port27 MOVLW xxxxxx00b MVW2CR4 MOVLW 01111111b TRIS 06H Y. I/O (10) Exp. Port24Port25Port26 MOVLW xxxxxx10b MVW2CR4 MOVLW 01110000b TRIS 06H Z. I/O (11) Exp. Port20Port21Port27 MOVLW xxxxxx11b MVW2CR4 MOVLW 01111100b TRIS 06H I/O 11111111 00 Bit = 1 ( pin ) Bit = 0 ( pin ) I/O 11111111 10 Bit = 1 ( Pull Down Resister Function) Bit = 0 ( Pull Down Resister Function) I/O 00000000 11 Bit = 1 ( Pull Up Resister Function) Bit = 0 ( Pull Up Resister Function) ===================================================================================== Page12 PTK8607 Data Sheet ========================================== 10. Operands Function ADDF2F A ADD W to A ADDF2W A ADD W to A ANDF2F A AND W with A ANDF2W A AND W with A CLRF A Clear A and clear CLRW Clear W register COMF2F A Complement A COMF2W A Complement A DECF2F A Decrement A DECF2W A Decrement A INCF2F A Increment A INCF2W A Increment A IORF2F A Inclusive OR W with A IORF2W A Inclusive OR W with A MOVF2F A Move A MOVF2W A Move A MOVW2F A Move W to A TRIS A Load W to A Register RLF2F A Rotate left A through carry RLF2W A Rotate left A through carry RRF2F A Rotate right A through carry RRF2W A Rotate right A through carry SUBF2F A Subtract W from A SUBF2W A Subtract W from A SWAPF2F A Swap A SWAPF2W A Swap A XORF2F A Exclusive OR W with A XORF2W A Exclusive OR W with A INCFSZ2F A Increment A, skip if 0 INCFSZ2W A Increment A, skip if 0 DECFSZ2F A Decrement f, skip if 0 DECFSZ2W A Decrement f, skip if 0 BCF Ab Bit clear A BSF Ab Bit set A BTFS0 Ab Bit test, skip if clear BTFS1 Ab Bit test, skip if set ANDLW K AND literal and W Operation W+A AE A W+A AE W WAEA AE A WAEA AE W 0 AE A 0 AE W /A AE A /A AE W A - 1 AE A A - 1 AE W A+1 AE A A+1 AE W WAEA AE A WAEA AE W A AE A A AE W W AE A W AE TRIS_A A(n)AEA(n+1)CAEA(0) R(7)AEC A(n)AEA(n+1)CAEA(0) R(7)AEC R(n)AER(n-1)CAER(7) R(0)AEC R(n)AER(n-1)CAER(7) R(0)AEC W-1 AE A W-1 AE W A(0~3) A(4~7) AE A A(0~3) A(4~7) AE W WA AE A WA AE W A+1AEA A+1AEW A-1 AE A A-1 AE W Set A(b) = 0 Set A(b) = 1 Skip if A(b) = 0 Skip if A(b) = 1 BW AE B Status CDCZ CDCZ CDCZ CDCZ Z Z Z Z Z Z Z Z Z Z Z Z None None C C C C CDCZ CDCZ None None Z Z None None None None None None None None Z ===================================================================================== Page13 PTK8607 Data Sheet ========================================== Operands IORLW K XORLW K MOVLW K GOTO A CALL K RETL2W K NOP SLEEP CLRWDT OPTION MVW2CR2 MVW2CR3 Function Operation Inclusive OR literal with W BW AE B Exclusive or literal with W BW AE B Move literal to W B AE W Unconditional Branch Jump A Subroutine call Jump subroutine Return literal to W Load W return No operation None Sleep mode 0 AE WDT, stop OSC Clear watchdog timer 0 AE WDT Load W to option register W AE option Load W to option register W AE CFR2 Load W to option register W AE CFR3 Status Z Z None None None None None TOPD TOPD None None None ( 25 C) 11. Parameter Symbol Minimum Maximum Unit Supply Voltage VDD - 0.3 + 6.0 Volt. Input Voltage VIN VSS - 0.3 VDD + 0.3 Volt. Storage Temperature TSTG - 35 + 125 C Operating Temperature TOP - 25 + 80 C ===================================================================================== Page14 PTK8607 Data Sheet ========================================== 12. Symbol VDD IDD IPD ILEAKL ILEAKH VILV VIHV VILVR VIHVR VOL VOH RMRBH RPL RPH TWDT ESD Parameter Test Condition VDD Condition Operating Voltage 5V RCWDT Enable Operating Current 5V RCWDT Disable 5V XTWDT Enable 5V XTWDT Disable 3V RCWDT Enable Power Down Current 3V RCWDT Disable 3V XTWDT Enable 3V XTWDT Disable Input Low Level Leakage 5V VIN = VSS Input High Level Leakage 5V VIN = VDD Low Level Input Voltage 5V High Level Input Voltage 5V Low Level Reset Voltage 5V High Level Reset Voltage 5V I/O Port Low Level Output 5V VO = 5V Current OSCO Low Level Output Current I/O Port High Level Output 5V VO = 0V Current OSCO High Level Output Current MCLRB Pull-high Resistance 5V VO = 0 Port Pull-low Resistance 5V VO = 5V Port Pull-high Resistance 5V VO = 0 Max WDT Time out 5V - MIN. TYP. MAX. Unit 2.5 - 2.00 2.00 2.35 2.45 2.30 2.35 2.05 2.30 65 6.0 1 1 1 1 1 1 - Volt. mA mA mA mA uA uA uA uA uA uA Volt. Volt. Volt. Volt. mA - 11.3 - mA - -26.1 - mA - -6.2 - mA 3000 281 77 81 - 2.38 - K K K Sec V ===================================================================================== Page15 PTK8607 Data Sheet ========================================== 13. 13.1 I/O VDD : a. 25 b. I/O VSS mA 40 35 30 25 20 15 10 5 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) 13.2 I/O VSS : a. 25 b. I/O VDD mA 90 75 60 45 30 15 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) 13.3 I/O VDD - 25 Threshold Volt 3 2.5 2 1.5 1 0.5 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) ===================================================================================== Page16 PTK8607 Data Sheet ========================================== 13.4 I/O VDD - 25 Threshold Volt 3 2.5 2 1.5 1 0.5 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) 13.5 WDT VDD - 25 mS 25 23 21 19 17 15 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) 13.6 pin (VILVR) VDD - 25 Volt 3 2.5 2 1.5 1 0.5 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) ===================================================================================== Page17 PTK8607 Data Sheet ========================================== 13.7 pin (VIHVR) VDD - 25 Volt 3.5 3 2.5 2 1.5 1 0.5 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) 13.8 Sleep WDT (IPD) VDD - 25 uA 100 80 60 40 20 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) 13.9 (IDD) VDD - 25 uA 7000 6000 5000 4000 3000 2000 1000 0 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 VDD (Volt) ===================================================================================== Page18 PTK8607 Data Sheet ========================================== 14. Others Detail Description 14.1 P13P20 P21 P10P11P12P24 P25 P12 VDD P13 RTCC /MCLR VSS P20 P11 P10 VDD Default pull-H VDD VDD OSCI OSCO VDD P27 P21 P26 P22 P25 P23 P24 MOVLW xxxxxx10b MVW2CR3 CFR3_bit1&0 = (10) P10P11P12 MOVLW TRIS xxxx1000b port1 P24P25 MOVLW 11001111b TRIS port2 MOVLW xxxxxx11b MVW2CR3 CFR3_bit1&0 = (11) P13 MOVLW TRIS xxxx1000b port1 P20P21 MOVLW 00000011b TRIS port2 I/O CFR3_bit1&0 = (10) MOVLW xxxxxx00b MVW2CR3 ===================================================================================== Page19 PTK8607 Data Sheet ========================================== 14.1 P-MOS C-MOS P-MOS V DD C o n trol P-M O S Sig nal PA D C o n tro l N -M O S Sig nal C -M O S O utput T ype (D efault) C o ntro l N -M O S Sig n al PA D P-M O S O FF O utput T ype port1 P-MOS CFR2_bit0 MOVLW xxxxx110b MVW2CR2 port2 P-MOS CFR2_bit1 MOVLW xxxxx101b MVW2CR2 port2 port3 P-MOS CFR2_bit1&2 MOVLW xxxxx001b MVW2CR2 port P-MOS / I/O P-MOS / ===================================================================================== Page20 PTK8607 Data Sheet ========================================== 15. PTK 86 xx - xx / x 04 06/16/26 08/18/28 07/17/27 XT RC P : PDIP S : SOP ===================================================================================== Page21 PTK8607 Data Sheet ========================================== 16. 300mil DIP 18 A B C D 895~915 240~260 125~135 125~145 E F 16~20 50~70 300mil SOP 18 A B 394~419 290~300 C 14~20 D E 447~460 92~104 G H I 95~105 295~315 335~375 0~15 F G H I 44~56 4min 32~38 4~12 0~10 ===================================================================================== Page22 PTK8607 Data Sheet ========================================== 17. PTK8607 17.1 RC OSCI PAD R C 2.49K 22pF 1.49MHz(5.96MHz) 5% 4.32K 22pF 0.99MHz(3.96MHz) 5% 4.87K 22pF 903KHz(3.61MHz) 5% 9.76K 22pF 496KHz(1.99MHz) 5% 20.5K 22pF 250KHz(1.00MHz) 5% 46.4K 22pF 114KHz( 458KHz) 5% 681K 22pF 8.05KHz(32.2KHz) 5% R C 2.32K 22pF 1.50MHz(6.00MHz) 5% 3.74K 22pF 1.00MHz(4.00MHz) 5% 4.32K 22pF 889KHz(3.56MHz) 5% 8.25K 22pF 496KHz(1.98MHz) 5% 16.9K 22pF 250KHz(1.00MHz) 5% 38.3K 22pF 113KHz( 453KHz) 5% 549K 22pF 8.05KHz(32.2KHz) 5% OSCO PAD 3V R C OSCI PAD OSCO PAD 5V R C OSCO(OSCI) OSCO(OSCI) a. OSCI b. GND GND GND 17.2 Crystal OSCI PAD 22pF OSCI PAD OSCO PAD 47pF Crystal = XT Type 22pF OSCI PAD OSCO PAD 47pF Crystal = HS Type 22pF OSCO PAD 47pF Crystal = LP Type a. OSCI OSCO b. GND GND GND ===================================================================================== Page23 PTK8607 Data Sheet ========================================== 18. (MCLRB) 1 : BOD 2 : 300K 104pF VDD 1K MCLRB PAD MCLRB PAD 3.9K 3.9K 104pF 104pF 300K VDD MCLRB VDD () MCLRB PAD 19.(VDD) VDD VSS 104pF ( VDD) VDD VDD PAD 104pF ===================================================================================== Page24 PTK8607 Data Sheet ========================================== 20. I/O PIN I/O PIN INPUT I/O PIN () I/O I/O OUTPUT VDD N/C I/O N/C I/O 21. OTP(PTK86X6-RC) SLEEP MODE ===================================================================================== Page25