4.1 Pad List..................................................................................................................................................6
6.6 Arithmetic and Logic Unit (ALU)...........................................................................................................13
6.7 Main Oscillator......................................................................................................................................13
The W742C810 is a high-performance 4-bit microcontroller (µC) that provides an LCD driver. The
device contains a 4-bit ALU, two 8-bit timers, two dividers (for two oscillators) in dual-clock operation,
a 40 × 4 LCD driver, six 4-bit I/O ports (including 1 output port for LED driving), and one channel
DTMF generator. There are also five interrupt sources and 8-level subroutine nesting for interrupt
applications. The W742C810 operates on very low current and has one power reduction mode, that is
the dual-clock slow operation, which helps to minimize power dissipation.
2. FEATURES
• Operating voltage: 2.4V−3.6V
• Dual-clock operation
• Main oscillator
− Connect to 3.58 MHz crystal only
• Sub-oscillator
− Connect to 32768 Hz crystal only
• Memory
− 8192 x 16 bit program ROM (including 32K x 4 bit look-up table)
− 1024 x 4 bit data RAM (including 16 nibbles x 16 pages working registers)
− 40 x 4 LCD data RAM
• 24 input/output pins
− Port for input only: 1 ports/4 pins
− Input/output ports: 3 ports/12 pins
− High sink current output port for LED driving: 1 port /4 pins
− Port for output only: 1 port/ 4 pins
• Power-down mode
− Hold function: no operation (main oscillator and sub-oscillator still operate)
− Stop function: no operation (only main oscillator stops but sub-oscillator still operates)
− Dual-clock slow mode: system is operated by the sub-oscillator (FOSC = Fs and Fm is stopped)
• Five types of interrupts
− Four internal interrupts (Divider0, Divider1, Timer 0, Timer 1)
− One external interrupt (RC Port)
• LCD driver output
− 40 segments x 4 commons
− 1/4 duty 1/3 bias driving mode
− Clock source should be the sub-oscillator clock in the dual-clock operation mode
• MFP output pin
− Output is software selectable as modulating or nonmodulating frequency
− Works as frequency output specified by Timer 1
Publication Release Date: May 1999
- 3 -Revision A1
Page 4
Preliminary W742C810
CNCNCNC
CNCNCNC
• DTMF output pin
− Output is one channel Dual Tone Multi-frequency signal for dialling
• Two built-in 14-bit frequency dividers
− Divider0: the clock source is the output of the main oscillator
− Divider1: the clock source is the output of the sub-oscillator
• Two built-in 8-bit programmable countdown timers
− Timer 0: one of two internal clock frequencies (FOSC/4 or FOSC/1024) can be selected
− Timer 1: with auto-reload function, and one of three internal clock frequencies (FOSC, FOSC/64 or
Fs) can be selected by MR1 register; the specified frequency can be delivered to MFP pin
• Built-in 18/15-bit watchdog timer selectable for system reset; enable the watch dog timer or not is
Organized as a 13-bit binary counter (PC0 to PC12), the program counter generates the addresses of
the 8192 × 16 on-chip ROM containing the program instruction words. Before the jump or subroutine
call instructions are to be executed, the destination ROM page must be determined first. The
confirmation of the ROM page can be done by executing the MOV ROMPR, #I or MOV ROMPR, R
instruction. When the interrupt or initial reset conditions are to be executed, the corresponding
address will be loaded into the program counter directly. The format used is shown below.
Table 1 Vector address and interrupt priority
ITEMADDRESSINTERRUPT PRIORITY
Initial Reset0000HINT 0 (Divider0)0004H1st
INT 1 (Timer 0)0008H2nd
INT 2 (Port RC)000CH3rd
INT 3 (Divider1)0014H4th
INT 4 (Timer 1)0020H5th
JP InstructionXXXXHSubroutine CallXXXXH-
6.2 Stack Register (STACK)
The stack register is organized as 13 bits x 8 levels (first-in, last-out). When either a call subroutine or
an interrupt is executed, the program counter will be pushed onto the stack register automatically. At
the end of a call subroutine or an interrupt service subroutine, the RTN instruction must be executed
to pop the contents of the stack register into the program counter. When the stack register is pushed
over the eighth level, the contents of the first level will be lost. In other words, the stack register is
always eight levels deep.
6.3 Program Memory (ROM)
The read-only memory (ROM) is used to store program codes; the look-up table is arranged as 32768
×4 bits. The program ROM is divided into four pages; the size of each page is 2048 × 16 bits. Total
ROM size is therefore 8192 × 16 bits. Before the jump or subroutine call instructions are to be
executed, the destination ROM page must be determined first. The ROM page can be selected by
executing the MOV ROMPR, #I or MOV ROMPR, R instruction. However, the branch decision
instructions (e.g. JB0, SKB0, JZ, JC, ...) must jump to the same ROM page which the branch decision
instructions are located in. The whole ROM range can store both instruction codes and the look-up
table. Each look-up table element is composed of 4 bits, so the look-up table can be addressed up to
32768 elements. Instruction MOVC R is used to read the look-up table content and transfer table data
to the RAM. But before reading the addressed look-up table content, the content of the look-up table
pointer (TAB) must be determined first. The address of the look-up table element is allocated by the
content of TAB. The MOV TAB0 (TAB1, TAB2, TAB3), R instructions are used to allocate the address
of the wanted look-up table element. The TAB0 register stores the LSB 4 bits of the look-up table
address. The organization of the program memory is shown in Figure 6-1.
Publication Release Date: May 1999
- 9 -Revision A1
Page 10
:
:
:
:
:
:
1st page
:
:
:
:
2nd page
3rd page
4th page
0000H
03FFH
0400H
07FFH
0800H
0BFFH
0C00H
0FFFH
1000H
13FFH
1400H
17FFH
1800H
1BFFH
1C00H
1FFFH
16 bits
Look-up Table address:
0000H
:
0FFFH
Look-up Table address:
2000H
:
2FFFH
Look-up Table address:
3000H
:
3FFFH
Look-up Table address:
4000H
:
4FFFH
Look-up Table address:
5000H
:
5FFFH
Look-up Table address:
6000H
:
6FFFH
Look-up Table address:
7000H
:
7FFFH
8192 * 16 bits
Preliminary W742C810
Each element (4 bits) of the look-up table
Look-up Table address:
1000H
:
1FFFH
Figure 6-1 Program Memory Organization
6.3.1 ROM Page Register (ROMPR)
The ROM page register is organized as a 4-bit binary register. The bit descriptions are as follows:
0123
ROMPR
Note: R/W means read/write available.
R/W
R/W
Bit 3 & Bit 2 is reserved.
Bit 1, Bit 0 ROM page preselect bits:
00 = ROM page 0 (0000H - 07FFH)
01 = ROM page 1 (0800H - 0FFFH)
10 = ROM page 2 (1000H - 17FFH)
11 = ROM page 3 (1800H - 1FFFH)
6.4 Data Memory (RAM)
6.4.1 Architecture
The static data memory (RAM) used to store data is arranged as 1024 × 4 bits. The data RAM is
divided into eight banks; each bank has 128 × 4 bits. Executing the MOV DBKR,WR or MOV
DBKR,#I instruction can determine which data bank is used. The data memory can be addressed
- 10 -
Page 11
Preliminary W742C810
:
:
:
(or Working Registers bank)
(or Working Registers bank)
directly or indirectly. However, the data bank must be confirmed first; the page in the data bank will
be done in the indirect addressing mode, too. In indirect addressing mode, each data bank will be
divided into eight pages. Before the data memory is addressed indirectly, the page which the data
memory is located in must be confirmed. The organization of the data memory is shown in Figure 6-
2.
4 bits
1st data bank
2nd data bank
:
:
:
8th data bank
1024 * 4 bits
Figure 6-2 Data Memory Organization
1st data RAM page
(or 1st WR page)
2nd data RAM page
(or 2nd WR page)
3rd data RAM page
(or 3rd WR page)
:
:
8th data RAM page
(or 8th WR page)
00H
0FH
10H
1FH
20H
2FH
70H
7FH
:
:
:
:
1024
address
000H
07FH
080H
0FFH
380H
3FFH
The 1st and 2nd data bank (00H to 7FH & 80H to FFH) in the data memory can also be used as the
working registers (WR). This is also divided into sixteen pages. Each page contains 16 working
registers. When one page is used as WR, the others can be used as the normal data memory. The
WR page can be switched by executing the MOV WRP,R or MOV WRP,#I instruction. The data
memory cannot operate directly with immediate data, but the WR can do so. The relationship
between data memory locations and the page register (PAGE) in indirect addressing mode is
described in the next sub-section.
6.4.2 Page Register (PAGE)
The page register is organized as a 4-bit binary register. The bit descriptions are as follows:
Note: R/W means read/write available.
Bit 3 is reserved.
Bit 2, Bit 1, Bit 0 Indirect addressing mode preselect bits in one data bank:
The data bank register is organized as a 4-bit binary register. The bit descriptions are as follows:
0123
DBKR
Note: R/W means read/write available.
Bit 3 is reserved.
Bit 2, Bit 1, Bit 0 Data memory bank preselect bits:
000 = Data bank 0 (000H - 07FH)
001 = Data bank 1 (080H - 0FFH)
010 = Data bank 2 (100H - 17FH)
011 = Data bank 3 (180H - 1FFH)
100 = Data bank 4 (200H - 27FH)
101 = Data bank 5 (280H - 2FFH)
110 = Data bank 6 (300H - 37FH)
111 = Data bank 7 (380H - 3FFH)
R/WR/WR/W
- 12 -
Page 13
Preliminary W742C810
6.5 Accumulator (ACC)
The accumulator (ACC) is a 4-bit register used to hold results from the ALU and transfer data
between the memory, I/O ports, and registers.
6.6 Arithmetic and Logic Unit (ALU)
This is a circuit which performs arithmetic and logic operations. The ALU provides the following
functions:
After any of the above instructions are executed, the status of the carry flag (CF) and zero flag (ZF) is
stored in the internal registers. CF can be read out by executing MOV R, CF.
6.7 Main Oscillator
The W742C810 provides a crystal oscillation circuit to generate the system clock through external
connections. The 3.58 MHz crystal must be connected to XIN1 and XOUT1, and a capacitor must be
connected to XIN1 and VSS if an accurate frequency is needed.
XIN1
Crystal
3.58MHz
Figure 6-3 System clock oscillator Configuration
XOUT1
6.8 Sub-Oscillator
The sub-oscillator is used in dual-clock operation mode. In the sub-oscillator application, only the
32768 Hz crystal can be connected to XIN2 and XOUT2, and a capacitor must be connected to XIN2
and VSS if an accurate frequency is needed. The sub-oscillator will be oscillatory continuously in
STOP mode.
6.9 Dividers
Each divider is organized as a 14-bit binary up-counter designed to generate periodic interrupts.
When the main oscillator starts action, the Divider0 is incremented by each clock (FOSC). When an
overflow occurs, the Divider0 event flag is set to 1 (EVF.0 = 1). Then, if the Divider0 interrupt enable
flag has been set (IEF.0 = 1), the interrupt is executed, while if the hold release enable flag has been
set (HEF.0 = 1), the hold state is terminated. The last 4-stage of the Divider0 can be reset by
executing CLR DIVR0 instruction. If the main oscillator is connected to the 32768 Hz crystal, the
EVF.0 will be set to 1 periodically at the period of 500 mS.
If the sub-oscillator starts action, the Divider1 is incremented by each clock (Fs). When an overflow
occurs, the Divider1 event flag is set to 1 (EVF.4 = 1). Then, if the Divider1 interrupt enable flag has
been set (IEF.4 = 1), the interrupt is executed, while if the hold release enable flag has been set
(HEF.4 = 1), the hold state is terminated. The last 4-stage of the Divider1 can be reset by executing
CLR DIVR1 instruction. The same as with EVF.0, the EVF.4 is set to 1 periodically. However, there
Publication Release Date: May 1999
- 13 -Revision A1
Page 14
Preliminary W742C810
are two period times (125 mS & 500 mS) that can be selected by setting the SCR.3 bit. When SCR.3
= 0 (default), the 500 mS period time is selected; SCR.3 = 1, the 125 mS period time is selected.
6.10 Dual-clock operation
In the dual-clock mode, the clock source of the LCD frequency selector should be the sub-oscillator
clock (32768 Hz) only. So when the STOP instruction is executing, the LCD will keep working in the
dual-clock mode.
In this dual-clock mode, the normal operation is performed by generating the system clock from the
main-oscillator clock (Fm). The slow operation can be performed as required by generating the
system clock from the sub-oscillator clock (Fs). The exchange of the normal operation and the slow
operation is performed by resetting or setting the bit 0 of the System clock Control Register (SCR). If
the SCR.0 is reset to 0, the clock source of the system clock generator is main-oscillator clock; if the
SCR.0 is set to 1, the clock source of the system clock generator is sub-oscillator clock. In the dualclock mode, the main-oscillator can stop oscillating when the STOP instruction is executing or the
SCR.1 is set to 1.
When the SCR is set or reset, we must be careful in the following cases:
1. X000B → X011B: we should not exchange the FOSC from Fm into Fs and disable Fm
simultaneously. We can first exchange the FOSC from Fm into Fs, then disable the main-oscillator.
So the order should be X000B→X001B→X011B.
2. X011B → X000B: we should not enable Fm and exchange the FOSC from Fs into Fm
simultaneously. We can first enable the main-oscillator; the 2nd step is calling a delay subroutine
to wait until the main-oscillator is oscillating stably; then the last step is to exchange the FOSC from
Fs into Fm. So the order should be X011B→X001B→delay the Fm oscillating stably time→X000B.
We must remember that the X010B state is inhibitive, because it will induce the system shutdown.
The organization of the dual-clock operation mode is shown in Figure 6-4.
HOLD
XIN1
XOUT1
SCR.1
XIN2
XOUT2
SCR: System clock Control Register ( default = 00H )
Daul clock operation mode:
- SCR.0 = 0, Fosc = Fm; SCR.0 = 1, Fosc = Fs
- Flcd = Fs, In STOP mode LCD work continue.
Main Oscillator
enable/disable
Sub-oscillator
STOP
Bit0Bit1Bit2Bit3
0 : Fosc = Fm
1 : Fosc = Fs
0 : Fm enable
1 : Fm disable
0 : WDT input clock is Fosc/2048
1 : WDT input clock is Fosc/16384
0 : 14 bit
1 : 12 bit
Fm
SCR.0
Fosc
Fs
System Clock
Divider 1
SCR.3(14/12 bit)
Generator
Divider 0
LCD Frequency
Selector
INT4
HCF.4
T1
T2
T3
T4
F
LCD
Figure 6-4 Organization of the dual-clock operation mode
- 14 -
Page 15
Preliminary W742C810
S
RRR
R
6.11 Watchdog Timer (WDT)
The watchdog timer (WDT) is organized as a 4-bit up counter designed to prevent the program from
unknown errors. When the corresponding option code bit of the WDT set to 1, the WDT is enabled,
and if the WDT overflows, the chip will be reset. At initial reset, the input clock of the WDT is
FOSC/2048. The input clock of the WDT can be switched to FOSC/16384 (or FOSC/2048) by setting
SCR.2 to 1 (or clearing SCR.2 to 0). The contents of the WDT can be reset by the instruction CLR
WDT. In normal operation, the application program must reset WDT before it overflows. A WDT
overflow indicates that operation is not under control and the chip will be reset. The WDT overflow
period is 1S when the system clock (FOSC) is 32 KHz and WDT clock input is FOSC/2048. When the
corresponding option code bit of the WDT set to 0, the WDT function is disabled. The organization of
the Divider0 and watchdog timer is shown in Figure 6-5.
Divider0
Fosc
Q1 Q2Q9 Q10 Q11 Q12Q14Q13
...
Fosc/16384
Fosc/2048
SCR.2
Figure 6-5 Organization of Divider0 and watchdog timer
Option code is reset to "0"
Disable
Enable
Option code is set to "1"
Q
R
WDT
Qw1 Qw2
EVF.0
Qw3
HEF.0
IEF.0
1. Reset
2. CLR EVF,#01H
3. CLR DIVR0
Overflow signal
Qw4
1. Reset
Hold mode release (HCF.0)
Divider interrupt (INT0)
System Reset
2. CLR WDT
6.12 Timer/Counter
6.12.1 Timer 0 (TM0)
Timer 0 (TM0) is a programmable 8-bit binary down-counter. The specified value can be loaded into
TM0 by executing the MOV TM0L(TM0H),R instructions. When the MOV TM0L(TMOH),R instructions
are executed, it will stop the TM0 down-counting (if the TM0 is down-counting) and reset the MR0.3 to
0, and the specified value can be loaded into TM0. We can then set MR0.3 to 1; this will cause the
event flag 1 (EVF.1) to be reset, and the TM0 will start to count. When it decrements to FFH, Timer 0
stops operating and generates an underflow (EVF.1 = 1). Then, if the Timer 0 interrupt enable flag
has been set (IEF.1 = 1), the interrupt is executed, while if the hold release enable flag 1 has been set
(HEF.1 = 1), the hold state is terminated. The Timer 0 clock input can be set as FOSC/1024 or FOSC/4
by setting MR0.0 to 1 or resetting MR0.0 to 0. The default timer value is FOSC/4. The organization of
Timer 0 is shown in Figure 6-6.
If the Timer 0 clock input is FOSC/4:
Desired Timer 0 interval = (preset value +1) × 4 × 1/ FOSC
If the Timer 0 clock input is FOSC/1024:
Desired Timer 0 interval = (preset value +1) × 1024 × 1/ FOSC
Preset value: Decimal number of Timer 0 preset value
FOSC: Clock oscillation frequency
Publication Release Date: May 1999
- 15 -Revision A1
Page 16
Preliminary W742C810
1. Reset
2. CLR EVF,#02H
3. Reset MR0.3 to 0
4.MOV TM0L,R or MOV TM0H,R
MR0.0
Fosc/1024
Fosc/4
Disable
Enable
Set MR0.3 to 1
MOV TM0H,R MOV TM0L,R
8-Bit Binary
Down Counter
(Timer 0)
4
4
Figure 6-6 Organization of Timer 0
S
Q
R
EVF.1
HEF.1
IEF.1
Hold mode release (HCF.1)
Timer 0 interrupt (INT1)
1. Reset
2. CLR EVF,#02H
3.Set MR0.3 to 1
6.12.2 Timer 1 (TM1)
Timer 1 (TM1) is also a programmable 8-bit binary down counter, as shown in Figure 6-7. Timer 1 can
be used as to output an arbitrary frequency to the MFP pin. The input clock of Timer 1 can be one of
three sources: FOSC/64, FOSC or FS. The source can be selected by setting bit 0 and bit1 of mode
register 1 (MR1). At initial reset, the Timer 1 clock input is FOSC. When the MOV TM1L, R or MOV
TM1H,R instruction is executed, the specified data are loaded into the auto-reload buffer and the TM1
down-counting will keep going on. If the bit 3 of MR1 is set (MR1.3 = 1), the content of the autoreload buffer will be loaded into the TM1 down counter, Timer 1 starts to down count, and the event
flag 7 is reset (EVF.7 = 0). When the timer decrements to FFH, it will generate an underflow (EVF.7 =
1) and be auto-reloaded with the specified data, after which it will continue to count down. Then, if
interrupt enable flag 7 has been set to 1 (IEF.7 = 1), an interrupt is executed; if hold mode release
enable flag 7 is set to 1 (HEF.7 = 1), the hold state is terminated. The specified frequency of Timer 1
can be delivered to the MFP output pin by programming bit2 of MR1. Bit 3 of MR1 can be used to
make Timer 1 stop or start counting.
In a case where Timer 1 clock input is FT:
Desired Timer 1 interval = (preset value +1) / FT
Desired frequency for MFP output pin = FT ÷ (preset value + 1) ÷ 2 (Hz)
Preset value: Decimal number of Timer 1 preset value
FOSC: Clock oscillation frequency
Fosc/64
Fosc
Fs
MR1.0
Set MR1.3 to 1
F
MR1.1
T
MOV TM1H,R
4
Auto-reload buffer
Enable
8-Bit Binary
Down Counter
Disable
Set MR1.3 to 1
Figure 6-7 Organization of Timer 1
MOV TM1L,R
4
8 bits
(Timer 1)
Reset
- 16 -
S
Q
R
Underflow signal
2
circuit
Reset
MFP signal
EVF.7
1. Reset
2. INT7 accept
3. CLR EVF, #80H
4. Set MR1.3 to 1
MFP
output pin
MR1.2
Page 17
Preliminary W742C810
For example, when FT equals 32768 Hz, depending on the preset value of TM1, the MFP pin will
output a single tone signal in the tone frequency range from 64 Hz to 16384 Hz. The relation between
the tone frequency and the preset value of TM1 is shown in the table below.
Table2 The relation between the tone frequency and the preset value of TM1
3rd octave4th octave5th octave
Tone
frequency
C
130.81
#
C
138.59
D
T
O
N
E
Note: Central tone is A4 (440 Hz).
146.83
#
D
155.56
E
164.81
F
174.61
#
F
185.00
G
196.00
#
G
207.65
A
220.00
#
A
233.08
B
246.94
TM1 preset value
& MFP frequency
7CH
131.07
75H
138.84
6FH
146.28
68H
156.03
62H
165.49
5DH
174.30
58H
184.09
53H
195.04
4EH
207.39
49H
221.40
45H
234.05
41H
248.24
Tone
frequency
261.63
277.18
293.66
311.13
329.63
349.23
369.99
392.00
415.30
440.00
466.16
493.88
TM1 preset value
& MFP frequency
260.06
3EH
277.69
3AH
292.57
37H
309.13
34H
327.68
31H
372.36
2EH
390.09
2BH
420.10
29H
443.81
26H
442.81
24H
22H
468.11
20H
496.48
Tone
frequency
523.25
554.37
587.33
622.25
659.26
698.46
739.99
783.99
830.61
880.00
932.23
987.77
TM1 preset value
& MFP frequency
1EH
528.51
1CH
564.96
1BH
585.14
19H
630.15
18H
655.36
16H
712.34
15H
744.72
14H
780.19
13H
819.20
12H
862.84
11H
910.22
10H
963.76
6.12.3 Mode Register 0 (MR0)
Mode Register 0 is organized as a 4-bit binary register (MR0.0 to MR0.3). MR0 can be used to
control the operation of Timer 0. The bit descriptions are as follows:
0123
Note: W means write only.
MR0
W
W
WW
Bit 0 = 0 The fundamental frequency of Timer 0 is FOSC/4.
= 1 The fundamental frequency of Timer 0 is FOSC/1024.
Bit 1 & Bit 2 are reserved
Bit 3 = 0 Timer 0 stops down-counting.
= 1 Timer 0 starts down-counting.
6.12.4 Mode Register 1 (MR1)
Mode Register 1 is organized as a 4-bit binary register (MR1.0 to MR1.3). MR1 can be used to control
the operation of Timer 1. The bit descriptions are as follows:
0123
MR1
Note: W means write only.
WWWW
Publication Release Date: May 1999
- 17 -Revision A1
Page 18
Preliminary W742C810
Disable
Bit 0 = 0 The internal fundamental frequency of Timer 1 is FOSC.
= 1 The internal fundamental frequency of Timer 1 is FOSC/64.
Bit 1 = 0 The fundamental frequency source of Timer 1 is the internal clock.
= 1 The fundamental frequency source of Timer 1 is the sub-oscillator frequency FS
(32.768 KHz).
Bit 2 = 0 The specified waveform of the MFP generator is delivered at the MFP pin.
= 1 The specified frequency of Timer 1 is delivered at MFP pin.
Bit 3 = 0 Timer 1 stops down-counting.
= 1 Timer 1 starts down-counting.
6.13 Interrupts
The W742C810 provides four internal interrupt sources (Divider 0, Divider 1, Timer 0, Timer 1) and
one external interrupt source (port RC). Vector addresses for each of the interrupts are located in the
range of program memory (ROM) addresses 004H to 020H. The flags IEF, PEF, and EVF are used to
control the interrupts. When EVF is set to "1" by hardware and the corresponding bits of IEF and PEF
have been set by software, an interrupt is generated. When an interrupt occurs, all of the interrupts
are inhibited until the EN INT or MOV IEF,#I instruction is invoked. The interrupts can also be
disabled by executing the DIS INT instruction. When an interrupt is generated in hold mode, the hold
mode will be released momentarily and interrupt subroutine will be executed. After the RTN
instruction is executed in an interrupt subroutine, the µC will enter hold mode again. The operation
flow chart is shown in Figure 6-9. The control diagram is shown below.
Divider 0
overflow signal
Timer 0
underflow signal
Port RC
signal change
Divider 1
overflow signal
Timer 1
underflow signal
SRQ
SRQ
SRQ
SRQ
SRQ
Initial Reset
EN INT
MOV IEF, #I
EVF.0
IEF.0
EVF.1
IEF.1
EVF.2
IEF.2
EVF.4
IEF.4
EVF.7
IEF.7
Initial Reset
CLR EVF, #I instruction
Figure 6-8 Interrupt event control duagram
Interrupt
Process
Circuit
Enable
Interrupt
Vector
Generator
DIS INT instruction
004H
008H
00CH
014H
020H
- 18 -
Page 19
Preliminary W742C810
6.14 Stop Mode Operation
In stop mode, all operations of the µC cease (excluding the operation of the sub-oscillator and Divider
1 and LCD driver), and MFP pin is kept to high state. The µC enters stop mode when the STOP
instruction is executed and exits stop mode when an external trigger is activated (by a falling signal
on the RC). When the designated signal is accepted, the µC awakens and executes the next
instruction. To prevent erroneous execution, the NOP instruction should follow the STOP command.
However, in the dual-clock slow operation mode, the STOP instruction will disable the main-oscillator;
the µC system is still operated by the sub-oscillator.
6.14.1 Stop Mode Wake-up Enable Flag for RC Port (SEF)
The stop mode wake-up flag for port RC is organized as a 4-bit binary register (SEF.0 to SEF.3).
Before port RC may be used to make the device exit the stop mode, the content of the SEF must be
set first. The SEF is controlled by the MOV SEF, #I instruction. The bit descriptions are as follows:
3
Note: W means write only.
SEF.0 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.0
SEF.1 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.1
SEF.2 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.2
SEF.3 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.3
SEFwww
012
w
6.15 Hold Mode Operation
In hold mode, all operations of the µC cease, except for the operation of the oscillator, Timer, Divider,
LCD driver, DTMF generator and MFP generator. The µC enters hold mode when the HOLD
instruction is executed. The hold mode can be released in one of five ways: by the action of timer 0,
timer 1, divider 0, divider 1, or the RC port. Before the device enters the hold mode, the HEF, PEF,
and IEF flags must be set to define the hold mode release conditions. For more details, refer to the
instruction-set table and the following flow chart.
Publication Release Date: May 1999
- 19 -Revision A1
Page 20
Divider 0, Divider 1, Timer
0, Timer 1, Signal Change
at RC Port
Preliminary W742C810
In
HOLD
Mode?
Interrupt
Enable?
Yes
IEF
Flag Set?
Yes
Reset EVF Flag
Execute
Interrupt Service Routine
(Note)
Disable interrupt
HOLD
Note: The bit of EVF corresponding to the interrupt signal will be reset.
No
HEF
Flag Set?
NoYes
Interrupt
Enable?
Yes
IEF
Flag Set?
Yes
Reset EVF Flag
Execute
Interrupt Service Routine
YesNo
Disable interrupt
PC <- (PC+1)
NoNo
No
(Note)
Figure 6-9 Hold Mode and Interrupt Operation Flow Chart
6.15.1 Hold Mode Release Enable Flag (HEF)
The hold mode release enable flag is organized as an 8-bit binary register (HEF.0 to HEF.7). The
HEF is used to control the hold mode release conditions. It is controlled by the MOV HEF, #I
instruction. The bit descriptions are as follows:
012
Note: W means write only.
HEFwwww
34567
w
HEF.0 = 1 Overflow from the Divider 0 causes Hold mode to be released.
HEF.1 = 1 Underflow from Timer 0 causes Hold mode to be released.
HEF.2 = 1 Signal change at port RC causes Hold mode to be released.
- 20 -
Page 21
Preliminary W742C810
HEF.3 is reserved.
HEF.4 = 1 Overflow from the Divider 1 causes Hold mode to be released.
HEF.5 & HEF.6 are reserved.
HEF.7 = 1 Underflow from Timer 1 causes Hold mode to be released.
6.15.2 Interrupt Enable Flag (IEF)
The interrupt enable flag is organized as an 8-bit binary register (IEF.0 to IEF.7). These bits are used
to control the interrupt conditions. It is controlled by the MOV IEF, #I instruction. When one of these
interrupts is accepted, the corresponding bit of the event flag will be reset, but the other bits are
unaffected. In interrupt subroutine, these interrupts will be disabled till the instruction MOV IEF, #I or
EN INT is executed again. Otherwise, these interrupts can be disabled by executing DIS INT
instruction. The bit descriptions are as follows:
4
7
Note: W means write only.
IEF.0 = 1 Interrupt 0 is accepted by overflow from the Divider 0.
IEF.1 = 1 Interrupt 1 is accepted by underflow from the Timer 0.
IEF.2 = 1 Interrupt 2 is accepted by a signal change at port RC.
IEF.3 is reserved.
IEF.4 = 1 Interrupt 0 is accepted by overflow from the Divider 1.
IEF.5 & IEF.6 are reserved.
IEF.7 = 1 Interrupt 7 is accepted by underflow from Timer 1.
6.15.3 Port Enable Flag (PEF)
The port enable flag is organized as a 4-bit binary register (PEF.0 to PEF.3). Before port RC may be
used to release the hold mode or preform interrupt function, the content of the PEF must be set first.
The PEF is controlled by the MOV PEF, #I instruction. The bit descriptions are as follows:
IEF
3
PEFwww
560
w
012
w
ww
123
ww
Note: W means write only.
PEF.0: Enable/disable the signal change at pin RC.0 to release hold mode or perform interrupt.
PEF.1: Enable/disable the signal change at pin RC.1 to release hold mode or perform interrupt.
PEF.2: Enable/disable the signal change at pin RC.2 to release hold mode or perform interrupt.
PEF.3: Enable/disable the signal change at pin RC.3 to release hold mode or perform interrupt.
Publication Release Date: May 1999
- 21 -Revision A1
Page 22
Preliminary W742C810
6.15.4 Hold Mode Release Condition Flag (HCF)
The hold mode release condition flag is organized as an 8-bit binary register (HCF.0 to HCF.7). It
indicates by which interrupt source the hold mode has been released, and is loaded by hardware. The
HCF can be read out by the MOVA R, HCFL and MOVA R, HCFH instructions. When any of the HCF
bits is "1," the hold mode will be released and the HOLD instruction is invalid. The HCF can be reset
by the CLR EVF or MOV HEF,#I (HEF = 0) instructions. When EVF and HEF have been reset, the
corresponding bit of HCF is reset simultaneously. The bit descriptions are as follows:
67
RRHCF
Note: R means read only.
HCF.0 = 1 Hold mode was released by overflow from the divider 0.
HCF.1 = 1 Hold mode was released by underflow from the timer 0.
HCF.2 = 1 Hold mode was released by a signal change at port RC.
HCF.3 is reserved.
HCF.4 = 1 Hold mode was released by overflow from the divider 1.
HCF.5 = 1 Hold mode was released by underflow from the timer 1.
HCF.6 and HCF.7 are reserved.
6.15.5 Event Flag (EVF)
The event flag is organized as an 8-bit binary register (EVF.0 to EVF.7). It is set by hardware and
reset by CLR EVF,#I instruction or the occurrence of an interrupt. The bit descriptions are as follows:
67
EVF
Note: W means write only.
EVF.0 = 1 Overflow from divider 0 occurred.
EVF.1 = 1 Underflow from timer 0 occurred.
EVF.2 = 1 Signal change at port RC occurred.
EVF.3 is reserved.
EVF.4 = 1 Overflow from divider 1 occurred.
EVF.5 & EVF.6 are reserved.
EVF.7 = 1 Underflow from Timer 1 occurred.
W
WW
RRR
W
012345
012345
W
- 22 -
Page 23
Preliminary W742C810
6.16 Reset Function
The W742C810 is reset either by a power-on reset or by using the external RES pin. The initial state
of the W742C810 after the reset function is executed is described below.
Program Counter (PC)000H
TM0, TM1Reset
MR0, MR1, PAGE registersReset
PSR0, SCR registersReset
IEF, HEF, HCF, PEF, EVF, SEF flagsReset
WRP, DBKR registerReset
Timer 0 input clockFOSC/4
Timer 1 input clockFOSC
MFP outputLow
DTMF outputHi-Z
Input/output ports RA,RB, RDInput mode
Output port RE & RFHigh
RA, RB & RD ports output typeCMOS type
RC ports pull-high resistorsDisable
Input clock of the watchdog timerFOSC/2048
LCD displayOFF
Table 3 The initial state after the reset function is executed
6.17 Input/Output Ports RA, RB & RD
Port RA consists of pins RA.0 to RA.3. Port RB consists of pins RB.0 to RB.3. Port RD consists of
pins RD.0 to RD.3. At initial reset, input/output ports RA, RB and RD are all in input mode. When RA,
RB are used as output ports, CMOS or NMOS open drain output type can be selected by the PM0
register. But when RD is used as output port, the output type is just fixed to be CMOS output type.
Each pin of port RA, RB and RD can be specified as input or output mode independently by the PM1,
PM2 and PM5 registers. The MOVA R, RA or MOVA R, RB or MOVA R, RD instructions operate the
input functions and the MOV RA, R or MOV RB, R or MOV RD, R operate the output functions. For
more details, refer to the instruction table and Figure 6-10 and Figure 6-11.
Input/Output Pin of the RA(RB)
PM0.0(PM0.1)
I/O PIN
RA.n(RB.n)
DATA
BUS
Output
Buffer
Enable
MOV RA,R(MOV RB,R)
instruction
PM1.n (PM2.n)
Enable
MOVA R,RA(MOVA R,RB) instruction
Figure 6-10 Architecture of RA (RB) Input/Output Pins
- 23 -Revision A1
Publication Release Date: May 1999
Page 24
Input/Output Pin of the RD
Preliminary W742C810
I/O PIN
RD.n
DATA
BUS
Output
Buffer
Enable
MOV RD,R instruction
Figure 6-11 Architecture of RD Input/Output pins
PM5.n
Enable
MOVA R,RD instruction
6.17.1 Port Mode 0 Register (PM0)
The port mode 0 register is organized as a 4-bit binary register (PM0.0 to PM0.3). PM0 can be used
to determine the structure of the input/output ports; it is controlled by the MOV PM0, #I instruction.
The bit descriptions are as follows:
012
w
Note: W means write only.
3
PM0www
Bit 0 = 0 RA port is CMOS output type. Bit 0 = 1 RA port is NMOS open drain output type.
Bit 1 = 0 RB port is CMOS output type. Bit 1 = 1 RB port is NMOS open drain output type.
Bit 2 = 0 RC port pull-high resistor is disabled. Bit 2 = 1 RC port pull-high resistor is enabled.
Bit 3 is reserved.
6.17.2 Port Mode 1 Register (PM1)
The port mode 1 register is organized as a 4-bit binary register (PM1.0 to PM1.3). PM1 can be used
to control the input/output mode of port RA. PM1 is controlled by the MOV PM1, #I instruction. The bit
descriptions are as follows:
012
w
Note: W means write only.
3
PM1www
Bit 0 = 0 RA.0 works as output pin; Bit 0 = 1 RA.0 works as input pin
Bit 1 = 0 RA.1 works as output pin; Bit 1 = 1 RA.1 works as input pin
Bit 2 = 0 RA.2 works as output pin; Bit 2 = 1 RA.2 works as input pin
Bit 3 = 0 RA.3 works as output pin; Bit 3 = 1 RA.3 works as input pin
At initial reset, port RA is input mode (PM1 = 1111B).
- 24 -
Page 25
Preliminary W742C810
6.17.3 Port Mode 2 Register (PM2)
The port mode 2 register is organized as a 4-bit binary register (PM2.0 to PM2.3). PM2 can be used
to control the input/output mode of port RB. PM2 is controlled by the MOV PM2, #I instruction. The bit
descriptions are as follows:
3
PM2www
Note: W means write only.
Bit 0 = 0 RB.0 works as output pin; Bit 0 = 1 RB.0 works as input pin
Bit 1 = 0 RB.1 works as output pin; Bit 1 = 1 RB.1 works as input pin
Bit 2 = 0 RB.2 works as output pin; Bit 2 = 1 RB.2 works as input pin
Bit 3 = 0 RB.3 works as output pin; Bit 3 = 1 RB.3 works as input pin
At initial reset, the port RB is input mode (PM2 = 1111B).
6.17.4 Port Mode 5 Register (PM5)
The port mode 5 register is organized as a 4-bit binary register (PM5.0 to PM5.3). PM5 can be used
to control the input/output mode of port RD. PM5 is controlled by the MOV PM5, #I instruction. The bit
descriptions are as follows:
3
Note: W means write only.
Bit 0 = 0 RD.0 works as output pin; Bit 0 = 1 RD.0 works as input pin
Bit 1 = 0 RD.1 works as output pin; Bit 1 = 1 RD.1 works as input pin
Bit 2 = 0 RD.2 works as output pin; Bit 2 = 1 RD.2 works as input pin
Bit 3 = 0 RD.3 works as output pin; Bit 3 = 1 RD.3 works as input pin
PM5www
012
w
012
w
At initial reset, the port RD is input mode (PM5 = 1111B).
6.18 Input Ports RC
Port RC consists of pins RC.0 to RC.3. Each pin of port RC can be connected to a pull-up resistor,
which is controlled by the port mode 0 register(PM0). When the PEF, HEF, and IEF corresponding to
the RC port are set, a signal change at the specified pins of port RC will execute the hold mode
release or interrupt subroutine. Port status register 0 (PSR0) records the status of ports RC, i.e., any
signal changes on the pins that make up the ports. PSR0 can be read out and cleared by the MOV R,
PSR0, and CLR PSR0 instructions. In addition, the falling edge signal on the pin of port RC specified
by the instruction MOV SEF, #I will cause the device to exit the stop mode. Refer to Figure 6-12 and
the instruction table for more details.
Publication Release Date: May 1999
- 25 -Revision A1
Page 26
RC.0
PM0.2
DATA BUS
Signal
change
detector
PEF.0
Preliminary W742C810
PSR0.0
D
Q
ck
R
RC.1
RC.2
RC.3
PM0.2
PM0.2
PM0.2
Signal
change
detector
Signal
change
detector
Signal
change
detector
Falling
Edge
detector
Falling
Edge
detector
Falling
Edge
detector
Falling
Edge
detector
PEF.1
PEF.2
PEF.3
SEF.0
SEF.1
SEF.2
SEF.3
EVF.2
D
ck
PSR0.1
Q
R
D
Q
ck
R
HEF.2
HCF.2
IEF.2
INT 2
PSR0.2
D
Q
ck
R
CLR EVF, #I
Reset
D
ck
PSR0.3
Q
R
Reset
MOV PEF, #I
CLR PSR0
To Wake Up Stop Mode
Figure 6-12 Architecture of Input Ports RC
6.18.1 Port Status Register 0 (PSR0)
Port status register 0 is organized as a 4-bit binary register (PSR0.0 to PSR0.3). PSR0 can be read or
cleared by the MOVA R, PSR0, and CLR PSR0 instructions. The bit descriptions are as follows:
0123
PSR0
Note: R means read only.
RRRR
- 26 -
Page 27
Preliminary W742C810
Bit 0 = 1 Signal change at RC.0
Bit 1 = 1 Signal change at RC.1
Bit 2 = 1 Signal change at RC.2
Bit 3 = 1 Signal change at RC.3
6.19 Output Port RE & RF
Output port RE is used as an output of the internal RT port. When the MOV RE, R instruction is
executed, the data in the RAM will be output to port RT through port RE. It provides a high sink
current to drive an LED. RF port is just used as an output port. When the MOV RF, R instruction is
executed, the data in the RAM will be output to RF.
6.20 DTMF Output Pin (DTMF)
This pin should output the dual tone multi-frequency signal from the DTMF generator. There is a
DTMF register that can specify the wanted low/high frequency, and the Dual Tone Control Register
(DTCR) can control whether the dual tone will be output or not. The tones are divided into two groups
(low group and high group); one tone from each group is selected to represent a digit. The relation
between the DTMF signal and the corresponding touch tone keypad is shown in Figure 6-13.
C1
R1
R2
R3
R4
C2C3C4
123A
456B
7
8
0#D
*
Figure 6-13 The relation between the touch tone keypad and the frequency
DTMF register is organized as a 4-bit binary register. By controlling the DTMF register, one tone of
the low/high group can be selected. The MOV DTMF,R instruction can specify the wanted tones. The
bit descriptions are as follows:
0123
DTMF
Note: W means write only.
b3b2b1b0Selected tone
XX001209 Hz
High
group
Low
group
Note: X means this bit do not care.
6.20.2 Dual Tone Control Register (DTCR)
Dual tone control register is organized as a 4-bit binary register. The output of the dual or single tone
will be controlled by this register. The MOV DTCR,#I instruction can specify the wanted status. The bit
descriptions are as follows:
Bit 0 = 1 Low group tone output is enabled.
Bit 1 = 1 High group tone output is enabled.
Bit 2 = 1 DTMF output is enabled. When Bit 2 is reset to 0, the DTMF output pin will be Hi-Z state.
Bit 3 is reserved.
WWW
6.21 MFP Output Pin (MFP)
The MFP output pin can output the Timer 1 clock or the modulation frequency; the output of the pin is
determined by mode register 1 (MR1). The organization of MR1 is shown in Figuer 6-7. When bit 2 of
MR1 is reset to "0," the MFP output can deliver a modulation output in any combination of one signal
from among DC, 4096Hz, 2048Hz, and one or more signals from among 128 Hz, 64 Hz, 8 Hz, 4 Hz, 2
Hz, or 1 Hz (when using a 32.768 KHz crystal). The MOV MFP, #I instruction is used to specify the
modulation output combination. The data specified by the 8-bit operand and the MFP output pin are
shown on the next page.
- 28 -
Page 29
Preliminary W742C810
Table 4 The relation between the MFP output frequncy and the data specified by 8-bit operand
The W742C810 can directly drive an LCD with 40 segment output pins and 4 common output pins for
a total of 40 × 4 dots. The LCD driving mode is 1/3 bias 1/4 duty. The alternating frequency of the
LCD can be set as Fw/64, Fw/128, Fw/256, or Fw/512. The structure of the LCD alternating frequency
(FLCD) is shown in Figure 6-14.
Fw
Sub-oscillator clock
Q1Q2Q3Q4Q5Q6Q7Q8Q9
Fw/64
Fw/128
Fw/256
Fw/512
Selector
Figure 6-14 LCD alternating frequency (FLCD) circuit diagram
F
LCD
Fw = 32.768 KHz, the LCD frequency is as shown in the table below.
Table 5 The relartionship between the FLCD and the duty cycle
Corresponding to the 40 LCD drive output pins, there are 40 LCD data RAM segments. Instructions
such as MOV LPL,R, MOV LPH,R, MOV @LP,R, and MOV R,@LP are used to control the LCD data
RAM. The data in the LCD data RAM are transferred to the segment output pins automatically without
program control. When the bit value of the LCD data RAM is "1," the LCD is turned on. When the bit
value of the LCD data RAM is "0," LCD is turned off. The contents of the LCD data RAM (LCDR) are
sent out through the segment0 to segment39 pins by a direct memory access. The relation between
the LCD data RAM and segment/common pins is shown below.
Table 6 The relation between the LCDR and segment/common pins used as LCD drive output pins
COM3COM2COM1COM0
LCD DATA RAMOUTPUT PINBIT 3BIT 2BIT 1BIT 0
LCDR00SEG00/10/10/10/1
LCDR01SEG10/10/10/10/1
:
:
:
:
:
:
:
:
:
:
:
:
LCDR26SEG380/10/10/10/1
LCDR27SEG390/10/10/10/1
- 30 -
Page 31
Preliminary W742C810
The LCDON instruction turns on the LCD display (even in HOLD mode), and the LCDOFF instruction
turns off the LCD display. At initial reset, all the LCD segments are unlit. When the initial reset state
ends, the LCD display is turned off automatically. To turn on the LCD display, the instruction LCDON
must be executed.
6.22.1 LCD RAM addressing method
There are 40 LCD RAMs (LCDR00 - LCDR27) that should be indirectly addressed. The LCD RAM
pointer (LP) is used to point to the address of the wanted LCD RAM. The LP is organized as 6-bit
binary register. The MOV LPL,R and MOV LPH,R instructions can load the LCD RAM address to the
LP from R. The MOV @LP,R and MOV R,@LP instructions can access the pointed LCD RAM
content.
6.22.2 The output waveforms for the LCD driving mode
1/3 bias 1/4 duty Lighting System (Example)
Normal Operating Mode
COM0
COM1
COM2
COM3
LCD driver
outputs for
only seg. on
COM0 side
being lit
LCD driver
outputs for
only seg. on
COM1 side
being lit
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
Publication Release Date: May 1999
- 31 -Revision A1
Page 32
Continued
VDD = 3.0 V
LCD driver
outputs for
seg. on COM0,
COM1 sides
being lit
Preliminary W742C810
VDD2
VDD1
VSS
LCD driver
outputs for
seg. on COM1,
COM2,3 sides
being lit
LCD driver
outputs for
seg. on COM1
COM2 sides
being lit
LCD driver
outputs for
seg. on COM0
COM2,3 sides
being lit
LCD driver
outputs for
seg. on COM0
COM1,2,3 sides
being lit
The power connections for the 1/3 bias 1/4 duty LCD driving mode are shown below.
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
VDD
VDD2
VDD1
VSS
1/3 Bias at VDD = 3.0 V
DH1
DH2
VSS
C
H
VDD
I
P
VDD1
VDD2
0.1uF
0.1uF
- 32 -
Page 33
Preliminary W742C810
7. ABSOLUTE MAXIMUM RATINGS
PARAMETERRATINGUNIT
Supply Voltage to Ground Potential-0.3 to +7.0V
Applied Input/Output Voltage-0.3 to +7.0V
Power Dissipation120mW
Ambient Operating Temperature0 to +70
Storage Temperature-55 to +150
Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability
ACC:Accumulator
ACC.n:Accumulator bit n
WR:Working Register
WRP:WR Page register
PAGE:Page Register
DBKR:Data Bank Register
ROMPR:ROM Page Register
MR0:Mode Register 0
MR1:Mode Register 1
PM0:Port Mode 0
PM1:Port Mode 1
PM2:Port Mode 2
PM5:Port Mode 5
PSR0:Port Status Register 0
R:Memory (RAM) of address R
LP:LCD data RAM pointer
LPL:Low nibble of the LCD data RAM pointer
LPH:High nibble of the LCD data RAM pointer
R.n:Memory bit n of address R
I:Constant parameter
L:Branch or jump address
CF:Carry Flag
ZF:Zero Flag
PC:Program Counter
TM0L:Low nibble of the Timer 0 counter
TM0H:High nibble of the Timer 0 counter
TM1L:Low nibble of the Timer 1 counter
TM1H:High nibble of the Timer 1 counter
TAB0:Look-up table address buffer 0
TAB1:Look-up table address buffer 1
TAB2:Look-up table address buffer 2
TAB3:Look-up table address buffer 3
IEF.n:Interrupt Enable Flag n
Preliminary W742C810
Publication Release Date: May 1999
- 35 -Revision A1
Page 36
Preliminary W742C810
Instruction Set Table, continued
HCF.n:HOLD mode release Condition Flag n
HEF.n:HOLD mode release Enable Flag n
SEF.n:STOP mode wake-up Enable Flag n
PEF.n:Port Enable Flag n
EVF.n:Event Flag n
DTMF:DTMF Register
DTCR:DTMF Control Register
! =:Not equal
&:AND
^:OR
EX:Exclusive OR
←:
[PAGE*10H+()]:Contents of address PAGE(bit2, bit1, bit0)*10H+()
[P()]:Contents of port P
ACC←(R) & (ACC)
ACC←(WRn) & I
ACC, R←(R) & (ACC)
ACC, WRn←(WRn) & I
ACC←(R) ∧ (ACC)
ACC←(WRn) ∧ I
ACC, R←(R) ∧ (ACC)
ACC, WRn←(WRn) ∧ I
ACC←(R) EX (ACC)
ACC←(WRn) EX I
ACC, R←(R) EX (ACC)
ACC, WRn←(WRn) EX I
PC12~PC0←(ROMPR)×800H+L10~L0
PC10~PC0←L10~L0; if ACC.0 = "1"
PC10~PC0←L10~L0; if ACC.1 = "1"
PC10~PC0←L10~L0; if ACC.2 = "1"
PC10~PC0←L10~L0; if ACC.3 = "1"
PC10~PC0←L10~L0; if ACC = 0
PC10~PC0←L10~L0; if ACC ! = 0
PC10~PC0←L10~L0; if CF = "1"
PC10~PC0←L10~L0; if CF != "1"
ACC, R←(R) - 1; PC ← (PC) + 2 if ACC = 0
ACC, R←(R) - 1; PC ← (PC) + 2 if ACC != 0
PC ← (PC) + 2 if R.0 = "1"
PC ← (PC) + 2 if R.1 = "1"
PC ← (PC) + 2 if R.2 = "1"
PC ← (PC) + 2 if R.3 = "1"
0101 0100 0000 iiiiMOVSCR, #I
0100 1111 0xxx xxxxMOVAR, PSR0
0100 0010 0000 0000CLRPSR0Clear Port Status Register 01/1
0101 0000 0100 0000SETCFSet Carry FlagCF1/1
0101 0000 0000 0000CLRCFClear Carry FlagCF1/1
0001 0111 0000 0000CLRDIVR0Clear the last 4-bit of the Divider 01/1
0101 0101 1000 0000CLRDIVR1Clear the last 4-bit of the Divider 11/1
0001 0111 1000 0000CLRWDTClear WatchDog Timer1/1
Shift & Rotate
0100 1101 0xxx xxxxSHRCR
WRn←DBKR
DBKR←WRn
DBKR←I
ROMPR←I
ROMPR←(R)
R←(ROMPR)
MR0←I
MR1←I
ACC.0, R.0←CF
CF←(R.0)
ACC, R←HCF.0~HCF.3
ACC, R←HCF.4~HCF.7
Port Mode 0← I
Port Mode 1← I
Port Mode 2← I
Port Mode 5← I