datasheetbank_Logo
búsqueda de Hoja de datos y gratuito Fichas de descarga

W742C810 Ver la hoja de datos (PDF) - Winbond

Número de pieza
componentes Descripción
Lista de partido
W742C810
Winbond
Winbond Winbond
W742C810 Datasheet PDF : 42 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
Preliminary W742C810
6. FUNCTIONAL DESCRIPTION
6.1 Program Counter (PC)
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
ITEM
Initial Reset
INT 0 (Divider0)
INT 1 (Timer 0)
INT 2 (Port RC)
INT 3 (Divider1)
INT 4 (Timer 1)
JP Instruction
Subroutine Call
ADDRESS
0000H
0004H
0008H
000CH
0014H
0020H
XXXXH
XXXXH
INTERRUPT PRIORITY
-
1st
2nd
3rd
4th
5th
-
-
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

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]