
W53322/W53342
- 6 -
FUNCTIONAL DESCRIPTION
Four main units are included in the W533X2. They are 4bit uc, power speech, dual tone melody and 32 com * 32/48/64
seg LCD driver. The 4bit uc is modified from winbond W741C260 that many features are enhanced such as ROM
space, RAM space and addressing capability, more and more instruction sets , 7 interrupt sources, controlling speech
and melody playing to drive speaker directly and so on. We separate three parts PART A , PARTB and PART C to
explain function more detailly.
PART A: UC FUNCTION
Program Counter (PC)
Organized as an 14-bit binary counter (PC0 to PC13), the program counter generates the addresses of the 16K x20 on-
chip ROM containing the program instructions. When the jump , subroutine call instructions , the interrupt , initial reset
conditions are executed, the address corresponding to the instruction will be loaded into the program counter. The format
used is shown Table 1:
ITEM
Initial Reset
INT 0 (DIV)
INT 1 (TM 0)
INT 2 (RC)
INT 3 (RD)
INT 4 (Reserved)
INT 5 (SPEECH)
INT 6 (MELODY)
INT 7 (TM 1)
JP Instruction
Subroutine Call
Table 1: Interrup Address Assignment & Priority
Stack Register (STACK
)
The stack register is organized as 14bits
×
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 maximun with 8 subroutine nesting.
ADDRESS
0000H
0004H
0008H
000CH
0010H
-
0018H
001CH
0020H
XXXXH
XXXXH
INTERRUPT PRIORITY
-
1st
2nd
3rd
4th
-
5th
6th
7th
-
-
Program Memory (ROM)
1. Architecture
The read-only memory 16K x20 bit is used to store program codes addressed PC from 0000h~3FFFH. Location from
000H to 0020H are reserved for interrupt service as shown Figure 1. All instruction sets are one word, one cycle. Look-
up table function is provided to access ROM code in all 16k ROM spaces. The organization of the program memory is
shown in Figure 1.