表1 PIC和EMC單片機硬件資源對照表 Devicc | EM78P152 EM78P153 | PIC12C508 PIC12C509 | EM78P156 | PIC16C54 PIC16C56 | EM78P447A EM78P447B | PIC16C57 | Pins | 8/14 | 8 | 18 | 18 | 28/32 | 28 | Process | CMOS | CMOS | CMOS | CMOS | CMOS | CMOS | Architecture | RISC | RISC | RISC | RISC | RISC | RISC | Mask Version | Yes | N/A | Yes | N/A | Yes | N/A | Working Voltage | 2.5~5.5 | 2.5~5.5 | 2.5~5.5 | 2.5~6.25 | 2.3~5.5 | 2.5~6.25 | Program Memory | 512x13 | 512/1Kx12 | 1Kx13 | 512/1Kx12 | 4Kx13 | 2Kx12 | User Memory RAM | 32x8 | 25/41x8 | 48x8 | 25x8 | 148x8 | 72x8 | I/O pins | 6/12 | 5 | 12 | 12 | 20/24 | 20 | Instruction Clock | 2 | 4 | 2 | 4 | 2 | 4 | Oscillation Mode | 5 | 4 | 4,(5) | 4 | 4 | 4 | Instruction Set | 57 | 33 | 57 | 33 | 57 | 33 | Max.Operating | XT | 16(4 clks) | 8(4 clks) | 18(2 clks)36(4clks) | 20(4 clks) | 36(4 clks) | 20(4 clks) | RC | 4(4 clks) | 4(4 clks) | 4(4 clks) | 4(4 clks) | 4(4 clks) | 8(4 clks) | Page Size | 1K | 512 | 1K | 512 | 1K | 512 | Available for CALL | 1K | 256 | 1K | 256 | 1K | 256 | Option Code | 13 | N/A | 6 | N/A | 7(13) | N/A | Iterrupt(In/Ex) | 3(1/2) | N/A | 3(1/2) | N/A | 3(1/2) | N/A | Pull-High Pins | 6/8 | N/A | 8 | N/A | 10 | N/A | Pull-Low Pins | 3/7 | N/A | 7 | N/A | 0 | N/A | Wake-Up Pins | 6/8 | N/A | 8 | N/A | 10 | N/A | Open-Drain Pins | 6/8 | N/A | 8 | N/A | 2 | N/A | R-Option Pins | 0 | N/A | 2 | N/A | 2 | N/A | Stack | 5 | 2 | 5 | 2 | 5 | 2 | POVD | Yes | N/A | Yes | N/A | Yes | N/A | Timer Modules | 8-bitx1 | 8-bitx1 | 8-bitx1 | 8-bitx1 | 8-bitx1 | 8-bitx1 | WDT | Yes | Yes | Yes | Yes | Yes | Yes |
表2 PIC和EMC指令對照表 PIC | EMC | 字 節(jié) 操 作 指 令 | NOP | | NOP | | NOVWF | f | MOV | R,A | CLRW | | CLRA | | CLRF | f | CLR | R | SUBWF | f,0 | SUB | A,R | SUBWF | f,1 | SUB | R,A | DECF | f,0 | DECA | R | DECF | f,1 | DEC | R | IORWF | f,0 | OR | A,R | IORWF | f,1 | OR | R,A | ANDWF | f,0 | AND | A,R | ANDWF | f,1 | AND | R,A | XORWF | f,0 | XOR | A,R | XORWF | f,1 | XOR | R,A | ADDWF | f,0 | ADD | A,R | ADDWF | f,1 | ADD | R,A | MOVF | f,0 | MOV | A,R | MOVF | f,1 | MOV | R,R | COMF | f,0 | COMA | R | COMF | f,1 | COM | R | INCF | f,0 | INCA | R | INCF | f,1 | INC | R | DECFSZ | f,0 | DJZA | R | DECFSZ | f,1 | DJZ | R | RRF | f,0 | RRCA | R | RRF | f,1 | RRC | R | RLF | f,0 | RLCA | R | RLF | f,1 | RLC | R | SWAPF | f,0 | SWAPA | R | SWAPF | f,1 | SWAP | R | INCFSZ | f,0 | JZA | R | INCFSZ | f,1 | JA | R | 位 操 作 指 令 | BCF | f,b | BC | R,b | BSF | f,b | BS | R,b | BTFSC | f,b | JBC | R,b | BTFSS | f,b | JBS | R,B | 控 制 指 令 | OPTION | | CONTW | | SLEED | | SLEP | | CLRWDF | | WDTC | | TRIS | f | IOW | R | RETLW | k | RETL | K | CALL | k | CALL | K | GOTO | k | JMP | K | MOVLW | k | MOV | A,K | IORLW | k | OR | A,K | ANDLW | k | AND | A,K | XORLW | k | XOR | A,K | 其它 | | DAA | | | ENI | | | DISI | | | RET | | | RETI | | | CONTR | | | IOR | R | | SUB | A,K | | INT | | | ADD | A,K |
|
評論