The W78958B is an 8-bit emulation microcontroller that supports emulation for the Winbond W78C51
family of products, including the W78C31, W78C32, W78C51, W78C52, W78C154*, W78C58,
W78C438, and W78C458. It is designed to support real-time (up to 40 MHz) emulation tools, such as
in-circuit emulators (ICEs).
The W78958B is packaged in a 100-pin PQFP and is available in two different types, standard and
advanced. The standard type supports the functions of the W78C31, W78C32, W78C51, W78C52,
W78C154*, and W78C58. The advanced type supports the functions of the W78C438 and W78C458.
Both types can be operated in two modes, normal and emulation. In normal mode, the W78958B runs
freely, like the W78C51 family of products. In emulation mode, which is entered by driving the
ICESET pin high asynchronously, the W78958B stays in the S2 state of the next instruction. In this
mode, the W78958B allows direct access (read/write) to the special function registers (SFRs), the
program counter (PC), and the internal RAM. Also, it allows ICE makers to access the external
program and data memory easily, thereby eliminating the need for glue logic. Moreover, it provides
several signals to facilitate ICE design, including
switching between "internal" and external ROM, ESEL (Emulation address space Select), for
combining the emulation program and data memory in a 128 KB SRAM, and CLKS1 (internal S1
state clock timing signal), for creating the emulation control signals. Once the ICESET pin goes low,
the W78958B will release its internal clock and return to its normal operating mode.
(Internal Program Memory Enable), for
For detailed specifications concerning the W78C31, W78C32, W78C51, W78C52, W78C154*,
W78C58, W78C438, and W78C458, refer to the Functional Description below or to the Winbond
product specifications.
Notes for all W78C154*:
1. W78958B will emulate W78C154 except port1.6 & port1.7 as output mode:
W78958Bport1.6 & port1.7pull-ups
W78C154port1.6 & port1.7open drain
2. The specification of W78C154 is exclusive, therefore, the DC characteristics is not fully compatible with W78958B, however
the emulation function is still the same as W78958B.
Publication Release Date: September
1997- 1 -Revision A3
W78958B
FEATURES
• 8-bit CMOS emulation microcontroller
• Real-time emulation at up to 40 MHz
• Convenient emulation chip for ICE market
• Two types: standard type and advanced type
• Standard type supports emulation for the W78C31, W78C32, W78C51, W78C52, W78C154*, and
W78C58
• Advanced type supports emulation for the W78C438, and W78C458
• In emulation mode, allows direct access to SFRs/PC and internal RAM
• Allows ICE makers to access external program/data memory easily
• Supports switching signals between "internal" and external ROM
• Supports combined emulation program and data memory in a 128 KB SRAM
• Provides internal S1 state clock timing signal for easy creation of the emulation control signals
• Fully static design
• 256-byte on-chip scratchpad RAM
• 64 KB program memory address space in standard type; 1 MB extended program memory address
space in advanced type
• 64 KB data memory address space in standard type; 1 MB extended data memory address space in
advanced type
• Boolean processor
• Six-source, two-level interrupt capability in standard type; eight-source, two-level interrupt capability
in advanced type
• Three 16-bit timer/counters
• One full duplex serial channel
• Built-in power management
• Four 8-bit bidirectional and bit-addressable I/O ports in standard type; four 8-bit bidirectional and
bit- addressable I/O ports and one 8-bit bidirectional but parallel I/O port in advanced type
P0.4
P0.5
P0.6
P0.7
EA
AP5.0
AP5.1
AP5.2
AP5.3
AP5.4
AP5.5
AP5.6
AP5.7
ENSTD
VSS
ALE
PSEN
P2.7
P2.6
P2.5
P2.4
NC
NC
ESEL
NC
P2.3
A
A
A
A
A
A
A
A
A
P
X
3
T
.
A
7
L
,
2
/
R
D
A
X
N
V
P
P
P
P
P
P
T
C
S
7
7
7
A
S
.
.
.
L
1
2
1
3
,
,
,
/
/
/
C
C
C
S
S
S
2
1
3
,
,
,
/
/
/
I
E
I
P
R
P
M
D
S
E
E
N
P
7
6
6
6
.
.
.
.
0
7
6
5
,
/
C
S
0
,
/
E
W
A
A
P
P
P
P
P
P
6
6
6
6
.
.
.
.
4
3
2
1
P
P
2
2
2
6
.
.
.
.
0
1
2
0
Publication Release Date: September 1997
- 3 -Revision A3
W78958B
PSEN
PIN DESCRIPTION
ENSTD Enable Standard Type, Input, Active Low
TYPEMODEDESCRIPTION
Advanced-Default status is pulled high by internal pull-up resistor.
Standard-A low on this pin enables the standard type.
Note: "-" in "Mode" column means that the function description is valid in both modes, normal and emulation.
EA External Address, Input
TYPEMODEDESCRIPTION
Advanced-Functions same as in W78C438.
Standard-Functions same as in W78C51, W78C52, W78C154* or W78C58.
PSEN
TYPEMODEDESCRIPTION
AdvancedNormalFunctions same as in W78C438.
EmulationIn high impedance state.
StandardNormal
EmulationIn high impedance state.
ROMS1ROMS0FUNCTION of
00Same as in the W78C51 (verify 4K ROM).
01Same as in the W78C52 (verify 8K ROM).
10Same as in the W78C154* (verify 16K ROM).
11Same as in the W78C58 (verify 32K ROM).
Pins ROMS1 and ROMS0 determine the function of
details, see Table D1 below.
PSEN
Table D1.
ALE
TYPEMODEDESCRIPTION
AdvancedNormalFunctions same as in W78C32.
EmulationIn high impedance state.
StandardNormalFunctions same as in W78C52.
. For
, PORT 0, AND PORT 2
EmulationIn high impedance state.
- 4 -
W78958B
ESEL
ESEL
RST, XTAL1, XTAL2
TYPEMODEDESCRIPTION
Advanced-Functions same as in W78C32.
Standard-Functions same as in W78C52.
P0.7−P0.0 Port 0, Bits 7−0
TYPEMODEDESCRIPTION
AdvancedNormalFunctions are the same as those in the W78C32, except that a
multiplexed address/data bus is not provided during accesses to
external memory.
EmulationFrozen in the original state.
StandardNormal
Emulation
Pins ROMS1 (P8.1) and ROMS0 (P8.0) determine functions of P0.7−
P0.0. For details, see Table D1.
When
is held at "H" level, P0.7−P0.0 are floating.
P1.7−P1.0 Port 1, Bits 7−0
TYPEMODEDESCRIPTION
AdvancedNormalFunctions are the same as those in the W78C32.
EmulationFrozen in the original state.
StandardNormalFunctions are the same as those in the W78C52.
EmulationFrozen in the original state.
P2.7−P2.0 Port 2, Bits 7−0
TYPEMODEDESCRIPTION
AdvancedNormalFunctions are the same as those in the W78C32, except that a high-
byte address bus is not provided during accesses to external
memory.
EmulationFrozen in the original state.
StandardNormal
Pins ROMS1 and ROMS0 determine functions of P2.7−P2.0. For
details, see Table D1.
Emulation
When
the MP2 (Mask Port 2) register. At this time, if the bit content of MP2
is 0, the corresponding pin of Port 2 maintains in the original state;
otherwise, the corresponding pin of Port 2 is in high impedance state.
is held at "H" level, the states of P2.7−P2.0 depend on
Publication Release Date: September 1997
- 5 -Revision A3
P3.7−P3.0 Port 3, Bits 7−0
ESEL
ESEL
TYPEMODEDESCRIPTION
AdvancedNormalFunctions are the same as those in the W78C32.
EmulationFrozen in the original state.
StandardNormalFunctions are the same as those in the W78C52.
EmulationFrozen in the original state.
DP4.7−DP4.0 Address/Data Bus, Bits 7−0
TYPEMODEDESCRIPTION
AdvancedNormalDP4 provides a multiplexed low-byte address/data bus during
accesses to external memory.
W78958B
Emulation
StandardNormalPins ROMS1 and ROMS0 determine functions of DP4. For details,
EmulationSame as in the advanced type.
ROMS1ROMS0FUNCTIONS OF DP4
00Provides a multiplexed low-byte address/data bus during accesses to
01Provides a multiplexed low-byte address/data bus during accesses to
10Provides a multiplexed low-byte address/data bus during accesses to
11Provides a multiplexed low-byte address/data bus during accesses to
When
SFR/PC and internal RAM. When
in high impedance state.
see Table D2.
external 4 KB EPROM.
external 8 KB EPROM.
external 16 KB EPROM.
external 32 KB EPROM.
is held at "L" level, DP4 is the data input/output of the
Table D2.
is held at "H" level, DP4 is
- 6 -
W78958B
ESEL
ESEL
ESEL
ESEL
AP5.7−AP5.0 Address Bus, Bits 7−0
TYPEMODEDESCRIPTION
AdvancedNormalAP5<7:0> output the <7:0> address of the external ROM multiplexed
with the <7:0> address of the external data RAM.
Emulation
StandardNormalPins ROMS1 and ROMS0 determine functions of AP5. For details,
EmulationSame as in the advanced type.
ROMS1ROMS0FUNCTIONS of AP5
00AP5 output the <7:0> address of the external 4K EPROM.
01AP5 output the <7:0> address of the external 8K EPROM.
10AP5 output the <7:0> address of the external 16K EPROM.
11AP5 output the <7:0> address of the external 32K EPROM.
When
the SFR/PC and internal RAM. When
is in high impedance state.
see Table D3.
is held at "L" level, AP5 is the low-byte address input for
Table D3.
is held at "H" level, AP5
AP6.7−AP6.0 Address Bus, Bit 15−8
TYPEMODEDESCRIPTION
AdvancedNormalAP6<7:0> output the <15:8> address of the external ROM
multiplexed with the <15:8> address of the external data RAM.
During the execution of "MOVX @Ri," AP6's output comes from the
HB register, which is the page register for the high byte address.
Emulation
StandardNormalPins ROMS1 and ROMS0 determine functions of AP6. For details,
EmulationSame as in the advanced type.
When
accesses to the SFR/PC and internal RAM. At this time, if AP6<0> =
0, the SFR/PC can be accessed; if AP6<0> = 1, the internal RAM
can be accessed. When
impedance state.
see Table D4.
is held at "L" level, AP6<0> is the address input for the
is held at "H" level, AP6 is in high
Publication Release Date: September 1997
- 7 -Revision A3
ROMS1ROMS0FUNCTIONS OF AP6
ESEL
EWR
ERD
ESEL
IPME
IPSEN
00AP6<3:0> output the <11:8> address of the external 4K EPROM.
01AP6<4:0> output the <12:8> address of the external 8K EPROM.
10AP6<5:0> output the <13:8> address of the external 16K EPROM.
11AP6<6:0> output the <14:8> address of the external 32K EPROM.
Table D4.
AP7.3−AP7.0 Address Bus, Bit 3−0, Input/Output, Dual-purpose
TYPEMODEDESCRIPTION
AdvancedNormalBit 7 of EPMA (Extended Program Memory Address) register
determines functions of AP7<3:0>.
When this bit is "0" (default value), AP7 outputs the <19:16> address of
the external ROM from bits <3:0> of EPMA register during the
execution of "MOVC A,@A+DPTR" to read the external ROM data, the
execution of "MOVX A,@DPTR" to read the external RAM data, or the
execution of "MOVX @DPTR,A" to write the external RAM data.
Excluding those times, AP7<3:0> output 0H.
When this bit is "1," AP7<3:0> (CS3−0) are the output pins to support
memory-mapped peripheral chip select, and only one of them is active
low at any time. These pins are decoded by AP6<7:6>. For details, see
Table D5.
Emulation
StandardNormal
When
are the write and read control input signals, respectively, for the
accesses to the SFR/PC and internal RAM. When
state, AP7<3:0> are in high impedance state.
AP7<2> (
outputs "0" to indicate that the access buses are DP4, AP5 and AP6. It
outputs "1" to indicate that the access buses are Port 0 and Port 2.
is held in "L" state, AP7<0> (
) is the "internal" program memory enable signal. It
) and AP7<1> (
W78958B
)
is held in "H"
AP7<3> (
outputs "0" to enable the "internal" program memory onto the DP4
address/data bus during fetch and MOVC operations.
EmulationSame as in the advanced type.
AP6.7AP6.6DESCRIPTION
00AP7.0: low; others: high
01AP7.1: low; others: high
10AP7.2: low; others: high
11AP7.3: low; others: high
) is the "internal" program store output enable signal. It
Table D5.
- 8 -
W78958B
INT 3
INT
3
INT
3
INT 2
INT 2
INT 2
P8.7−P8.0 Port 8, Bits 7−0, Input/Output
TYPEMODEDESCRIPTION
AdvancedNormalFunctions are the same as those of Port 1 in the W78C31, except
that they are mapped by the P8 register and not bit-addressable. The
P8 register is not a standard register in the W78C32. Its address is at
0A6H.
EmulationFrozen in the original state.
StandardNormalP8.1 (ROMS1, standard type ROM size Select 1) and P8.0 (ROMS0)
are the input pins that determine which of four different ROM sizes is
being used: 4K, 8K, 16K, or 32K bytes. For details, see Table D1−
D4.
EmulationFrozen in the original state.
INT2 and INT3 External Interrupt 2 and 3, Input
TYPEMODEDESCRIPTION
AdvancedNormalFunctions are similar to those of external interrupt 0 and 1 in the
W78C31, except that the functions/status of these interrupts are
determined/shown by the bits in the XICON (External Interrupt
Control) register. For details, see Table D6. The XICON register is
bit-addressable but is not a standard register in the W78C32. Its
address is at 0C0H. The interrupt vector addresses and the priority
polling sequence within the same level are shown in Table D7.
EmulationFrozen in the original state.
Standard-Not supported.
BITADDR.NAMEFUNCTION
70C7HPX3
60C6HEX3
50C5HIE3If IT3 is "1," IE3 is set/cleared automatically by hardware when
40C4HIT3
30C3HPX2
20C2HEX2
10C1HIE2If IT2 is "1," IE2 is set/cleared automatically by hardware when
00C0HIT2
High/low priority level for
set/cleared by software.
Enable/disable interrupt from
software.
interrupt is detected/serviced.
is falling-edge/low-level triggered when this bit is set/cleared by
software.
High/low priority level for
set/cleared by software.
Enable/disable interrupt from
software.
interrupt is de0tected/serviced.
is falling-edge/low-level triggered when this bit is set/cleared
by software.
Table D6. Functions of XICON Register.
- 9 -Revision A3
is specified when this bit is
when this bit is set/cleared by
is specified when this bit is
when this bit is set/cleared by
Publication Release Date: September 1997
Loading...
+ 19 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.