A SERVICE OF

logo

EM78P221/2N
8-Bit Microcontroller with OTP ROM
50
Product Specification (V1.0) 10.19.2007
(This specification is subject to change without further notice)
Bit 1 & Bit 0 (RCM1 & RCM0): RC mode selection bits
RCM 1 RCM 0 Frequency (MHz)
1 1 4 (Default)
1 0 16
0 1 1
0 0 455kHz
6.11.3 Customer ID Register (Word 2)
Word 2
Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
- NRM - - ID8 ID7 ID6 ID5 ID4 ID3 ID2 ID1 ID0
Bit 12: Not used (reserved), fixed to “0” all the time
Bit 11 (NRM):
0 = Noise reject Mode 2. For multi-time circuit use, such as key scan
and LED output.
1 = Noise reject Mode 1. For General input or output use. (Default)
Bits 10~9: Not used (reserved), fixed to “1” all the time
Bits 8 ~ 0: Customer’s ID code
6.12 Instruction Set
Each instruction in the instruction set is a 13-bit word divided into an OP code and one
or more operands. Normally, all instructions are executed within one single instruction
cycle (one instruction consists of 2 oscillator time periods). Note the program counter is
changed by instructions "MOV R2,A," "ADD R2,A," or by instructions of arithmetic or
logic operation on R2 (e.g., "SUB R2,A," "BS(C) R2,6," "CLR R2," etc.). In this case,
these instructions only need one instruction cycles
In addition, the instruction set has the following features:
1. Every bit of any register can be set, cleared, or tested directly.
2. The I/O registers can be regarded as general registers. That is, the same
instruction can operate on I/O registers.
Convention:
R = Register designator that specifies which one of the registers (including operation and general purpose
registers) is to be utilized by the instruction.
b = Bit field designator that selects the value for the bit located in the register R and which affects the
operation.
k = 8 or 10-bit constant or literal value