The W78E354 is a stand-alone high-performance microcontroller ASIC specially designed for use in
monitor control applications. Using the Winbond 0.8µ DPDM process, the W78E354 integrates an
embedded 8031 microcontroller core, 16K bytes of Flash cell, 512 bytes of RAM and a number of
dedicated hardware functions. These hardware functions include a 6-bit A/D converter, two/fourteen
12/8-bit PWM static DACs, one/three 12/8-bit PWM dynamic DACs, a sync processor, one DDC port,
a watchdog timer and other custom glue logic. Additional special function registers are incorporated to
control the on-chip peripheral hardware.
The chip is used to control the interface signals of other devices in the monitor and to process the
video sync signals. Because of high integration and the incorporation of Flash cell for program
memory, the device offers the user the competitive advantages of low cost and reduced development
time.
FEATURES
• 80C31 MCU core included
• 16K bytes Flash OTP memory for program storage
• Total 512 bytes of on-chip data RAM:
256 bytes accessed as in the 80C32, 256 bytes accessed as external data memory via "MOVX
@Ri".
• One SPI/RS232 port (a serial port of 8051 standard)
• One external interrupt input
• Two timers/counters
• PWM DACs:
− Two 12-bit PWM/BRM Static DACs
− Fourteen 8-bit PWM Static DACs
− One 12-bit PWM/BRM Dynamic DAC
− Three 8-bit PWM Dynamic DACs
• One 6-bit ADC with 4 multiplexed analog inputs
• Sync Processor:
− Horizontal & Vertical Polarity Detector
− Sync Separator for composite sync
− Horizontal & Vertical Frequency Counter
− Programmable dummy frequency generator
− Programmable H-clamp pulse output
− SOA output (hardware H frequency change detection)
• One DDC port (master/slave mode I
• One 8-bit Auto-reload timer for software time base
2
C with two slave address reg., support DC1/DDC2B/DDC2B+)
Publication Release Date: April 1997
- 1 -Revision A1
Page 2
• Watchdog Timer
132149876
5
3
0
5
1
6
5
6
7
8
9
7
D
4
3
2
4
3
1
• Two 15 mA output pins for driving LEDs
• Power down reset
• Clock: DC to 20 MHz
• Packaged in 68-pin PLCC, 48-pin DIP and 40-pin DIP
8-bit PWM static DAC output.
Sink/Source current 4 mA/-4 mA.
With slew rate control and output delay:
1. Delay about 5 nS:
SDAC2, 5, 8, 11.
2. Delay about 10 nS:
SDAC0, 3, 6, 9, 12.
3. Without delay: the others.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
SDAC0−7: A0−A7 inputs.
* In the functional test mode
(CPU executes out of ext. program memory):
SDAC0−7: A0−A7 outputs.
12-bit PWM/BRM static DAC output.
Sink/Source current 8 mA/-8 mA.
With slew rate control and output delay:
1. Delay about 5ns: BSDAC1
2. Without delay: BSDAC0.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
BSDAC0: A8 input.
* In the functional test mode
(CPU executes out of ext. program memory):
BSDAC0: A8 output.
8-bit PWM dynamic DAC output.
Sink/Source current 8 mA/-8 mA.
With slew rate control and output delay:
1. Delay about 5 nS: DDAC1.
2. Delay about 10 nS: DDAC2.
3. Without delay: DDAC0.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
DDAC0: A9 input.
* In the functional test mode
(CPU executes out of ext. program memory):
DDAC0: A9 output.
Sink/Source current 8mA/-8mA.
With slew rate control.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
BDDAC: A10 input.
* In the functional test mode
(CPU executes out of ext. program memory):
BDDAC: A10 output.
General purpose I/O.
Open-drain, Sink current 2mA.
Schmitt trigger I/P.
No PMOS ESD cell.
VIH = 3.0V (min), VIL = 1.5V (max)
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
P1.0 and P1.1: A13 and A14 inputs.
* In the functional test mode
(CPU executes out of ext. program memory):
P1.0 and P1.1: do not output A13 and A14, but function in
their normal operational state.
General purpose I/O.
Open-drain, Sink current 6mA.
Schmitt trigger I/P.
No PMOS ESD cell.
VIH = 3.0V (min), VIL = 1.5V (max)
Alternate function:
P1.2: DDC port serial clock DSCL.
P1.3: DDC port serial data DSDA.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
P1.2: A13CTRL input.
P1.3: A14CTRL input.
While outputing special function, P1.4's Sink/Source
current is 4 mA/-4 mA.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
P1.4: A9CTRL input.
Sink/Source current 4 mA/-4 mA.
Alternate function:
P1.5: SOA (Safe Operation Area) outpout.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
P1.5: A11 input.
* In the functional test mode
(CPU executes out of ext. program memory):
P1.5: doesn't output A11, but functions as
its normal operation.
General purpose I/O.
Sink/Source current 15mA/-100µA.
With slew rate control .
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
P2.0−P2.1: D0−D1 data inputs/outputs.
* In the functional test mode
(CPU executes out of ext. program memory):
P2.0−P2.1: D0−D1 program inputs.
- 6 -
Page 7
Pin Description, continued
W78E354
PIN NO.
68P 64P 48P 40P
21
19
13
20
22
8
9
12
13
31
32
42
61
23
24
43
67
10
11
29
30
40
58
21
22
41
63
14
6
4
7
5
6
7
22
23
29
43
15
16
30
-
13
14
4
5
6
7
20
21
25
-
-
-
-
-
PIN
NAME
P2.2
P2.3
(STP)
P2.4
(SDAC10)
P2.5
(SDAC11)
P2.6
(SDAC12)
P2.7
(SDAC13)
P3.0
(RXD)
P3.1
(TXD)
P3.2
(INT0)
P3.3
P3.4 (T0)
P3.5 (T1)
P3.6
P3.7
I/O
TYPE
I/OD2
I/O-
TEST
NAME
D3
D4
D5
D6
D7
-
A12
(PSEN)
-
-
-
-
-
FUNCTIONAL DESCRIPTION
General purpose I/O.
Sink/Source current 4 mA/-100 µA.
Alternate function:
P2.3: STP (Self-Test Pattern) output.
P2.4−P2.7: SDAC10−13 outputs.
While outputing special function, P2.3−P2.7's
Sink/Source current is 4mA/-4mA.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
P2.2−P2.7: D2−D7 data inputs/outputs.
* In the functional test mode
(CPU executes out of ext. program memory):
P2.2−P2.7: D2−D7 program inputs.
General purpose I/O.
Sink/Source current 2 mA/-100 µA.
Alternate function:
P3.0: 8051 serial input port.
P3.1: 8051 serial output port.
P3.2: External interrupt input.
P3.4 and P3.5: Timer/counter 0 and 1 external inputs.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
P3.2: A12 input.
* In the functional test mode
(CPU executes out of ext. program memory):
P3.2: PSENoutput (the read strobe to
external program memory) instead of A12.
Publication Release Date: April 1997
- 7 -Revision A1
Page 8
Pin Description, continued
W78E354
PIN NO.
68P 64P 48P 40P
44
42
-
45
43
-
53
51
-
55
-
-
64
-
-
1
-
-
2
-
-
25262324171815
16
27282526192017
18
33312422
41392824TestCLKI/P
PIN
NAME
-
P4.0
-
P4.1
-
P4.2
-
P4.3
-
P4.4
-
P4.5
-
P4.6
HIN
VIN
HOUT
VOUT
RESET
I/O
TYPE
O/P-
I/P
I/OOECTRL
I/P-Reset the controller (active low).
TEST
NAME
-
-
-
-
-
-
OE
CE
PROG
EA
FUNCTIONAL DESCRIPTION
Output port (Latch output).
Sink/Source current 2 mA/-2 mA.
HIN: Hsync/Composite sync input.
VIN: Vsync input.
Schmitt trigger I/P.
With Internal high value pull-down (about 200 KΩ).
No PMOS ESD diode.
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
--------------------------------------------------------* In the Flash/RAM-test mode
(when the chip is in reset state):
HOUT: OECTRL input.
VOUT: PROG input.
Schmitt trigger I/P.
With internal pull-up (about 30 KΩ).
Clock input while in internal (glue logic's) function test.
With internal pull-up (about 30 KΩ).
--------------------------------------------------------* If the EA (TestCLK) pin is pulled low when the chip is
being reset, and remains low for at least 24 clock periods
after the reset, the CPU will execute from the external
program memory regardless of the PC value. i.e., the CPU is
forced to enter the functional test mode.
- 8 -
Page 9
Pin Description, continued
W78E354
PIN NO.
68P 64P 48P 40P
141512138989OSCOUT
54523732VPP-VPPIn the Test/Flash mode, this pin is the power supply input for
68644840VDD--Positive digital power supply, +5V.
16141010VSS--Digital ground.
5250--VDD--Positive digital power supply, +5V.
3432--VSS--Digital ground.
383627-VAA--Positive analog power supply, +5V.
353325-VSSA--Analog ground.
PIN
NAME
OSCIN
I/O
TYPE
O/P
I/P
TEST
NAME
-
-
FUNCTIONAL DESCRIPTION
Output from the inverting oscillator amplifier.
Input to the inverting oscillator amplifier.
Freq.: 16 MHz to 24 MHz.
the Flash cell.
Internally connected to the other power source.
Internally connected to the other power source.
Publication Release Date: April 1997
- 9 -Revision A1
Page 10
BLOCK DIAGRAM
W78E354
W78E354
DD
V
RESET
OSCIN
OSCOUT
HIN, VIN
HOUT, VOUT
HCLAMP (P1.4)
SOA (P1.5)
RXD (P3.0)
TXD (P3.1)
T0 (P3.4)
T1 (P3.5)
SS
V
Power
Source
Supervisor
Reset
Circuit
WDT
OSC/Timing
Generator
Sync
Processor
Srial Port
Timer 0
Timer1
Autoload
Timer
8031 MCU core
with 256B
Scratchpad RAM
16KB
Flash ROM
256B
Data Memory
Interrupt
Processor
SDAC
DDAC
ADC
DDC
I/O Port
Vpp
INT0 (P3.2)
SDAC0~13
BSDAC0~1
DDAC0~2
BDDAC
ADC0~3
AA, VSSA
V
DSCL (P1.2)
DSDA (P1.3)
Port 1, 2, 3
(except P1.5)
P1.5, Port 4
- 10 -
Page 11
W78E354
FUNCTIONAL DESCRIPTION
A. 80C31 Core
The W78E354's 80C31 (CMOS MCU) core architecture consists of a CPU surrounded by various
Special Function Registers or SFRs. Some of these SFRs are standard 80C31 registers while others
are new additions, cf. Table 1. The device includes three general purpose I/O ports (P1, P2 and P3),
one output-only port (P4), 256 bytes of scratchpad RAM, two timer/counters (Timer0 and Timer1) and
one 8051 standard serial port. The processor supports 109 different instructions (without "MOVX
A,@DPTR" and "MOVX @DPTR,A") all of which are compatible with those of the MCS-51 family.
One distinguishing feature of the device architecture is the SFR address space into which all the
registers, peripherals and scratchpad RAM are mapped. Many of the instructions operate on an SFR
address rather than a specific register, greatly increasing the power of the instruction set.
The core controller has been designed around a state machine rather than utilizing a microcode
approach, a design methodology which offers several advantages. The first of these is that faster
circuits can be produced due to the fact that flip-flops are inherently faster than ROMs. Secondly, a
ROM-free approach allows the design to be directly utilized in ASIC gate array implementations, an
important factor for cost reductions. Finally, an entire digital logic approach provides better supply
noise immunity in most applications.
Table 1. W78E354's Special Function Registers (SFRs)
1. The SFRs with a "+" are both byte- and bit-addressable.
2. The registers in the shaded region are new additions to the 80C31 SFRs.
A.1 Address Space (cf. Figure 1)
The W78E354 CPU operates out of three separate address spaces:
- 11 -Revision A1
Publication Release Date: April 1997
Page 12
W78E354
1. The first of these is the internal program space (internal Flash memory) with 16K byte size
(0000H−3FFFH). The program space can be accessed by both opcode fetches and the
"MOVC" instructions.
2. The second is referred to as the data memory space and has a size of 256 bytes (0000H−00FFH).
The data memory is integrated within the chip rather than being outside as in the case of the
standard 8031. The "inside" data memory space is accessed by the "MOVX @Ri" instruction.
3. The third address space has 256 locations while it is used by 384 bytes (256 bytes of RAM and 128
bytes of SFRs).
• The lower 128 locations of this address space (00H−7FH) are for the lower 128 bytes of scratchpad
RAM. Any of these 128 bytes may be used by a programmer but some of them have special uses.
The lowest 32 bytes are organized to four 8-byte register banks. The bank select bits (RS0 and RS1
in the PSW register) selects one of these four banks which is to be used currently as an operand in
the instruction set. Registers 0 to 7 in the bank are referenced by the register direct opcodes.
Registers 0 and 1 may also contain an address that is referenced by the register indirect opcodes.
• The higher 128 locations of this address space (80H−FFH) are shared by the higher 128 bytes of
scratchpad RAM and the Special Function Registers (SFRs). The SFRs are accessed only by "direct"
addressing while the higher 128 bytes of scrachpad RAM are accessed only by "indirect" addressing.
The higher 128 bytes of scratchpad data RAM are also available for stack space.
Address spaces 20H to 2FH are bit-addressable and can be used by the Boolean Variable
Manipulation instructions. For example, bit 0 of address 20H has a Boolean address 00H, and bit 7 of
address 2FH has a Boolean address 7FH. The higher Boolean addresses (80H−FFH) are mapped
into the SFR address space. To determine a Boolean address in some bit-addressable SFR, the
higher 5 bits of the SFR's address can be combined with the 3 lower bits that specify the desired bit in
the SFR.
3FFFH
0000H
On-Chip
Program
Memory
On-Chip
Data
Memory
FFH
(MOVX @Ri)
00H
Figure1. Addres Space
- 12 -
FFH
(Direct Addressing)
80H
7FH
00H
SFR
Scratchpad
RAM
(Direct/Indirect
Addressing)
Scratchpad
RAM
(Indirect Addressing)
Page 13
A.2 The Modified 80C31 SFRs
1. Timer/Counter Control Register: TCON
BITNAMEFUNCTION
TCON.7TF1Timer 1 overflow flag.
Set by hardware on timer/counter overflow. Cleared by hardware when the
processor vectors to the interrupt routine.
TCON.6TR1Timer 1 run control bit.
Set/cleared by software to turn the timer/counter on or off.
TCON.5TF0Timer 0 overflow flag.
Set by hardware on timer/counter overflow. Cleared by hardware when the
processor vectors to the interrupt routine.
TCON.4TR0Timer 0 run control bit.
Set/cleared by software to turn the timer/counter on or off.
TCON.3-(Reserved, not used by users.)
TCON.2-(Reserved)
W78E354
TCON.1IE0Interrupt 0 edge flag.
Set by hardware when an external interrupt edge is detected. Cleared when
the interrupt is processed.
TCON.0IT0Interrupt 0 type control bit.
Set/cleared by software to specify falling edge/low level triggered external
interrupt.
2. Power Control Register: PCON
BITNAMEFUNCTION
7SMODDouble baud rate bit.
6-(Reserved)
5-(Reserved, not used by users.)
4-(Reserved for testing, not used by users.
Normally 0. If set, P2.4−P2.7 will output SDAC8-11 after reset (not power-
on reset).)
3GF1General-purpose flag bit.
2GF0General-purpose flag bit.
1PDPower-down mode bit.
0IDLIdle mode bit.
Publication Release Date: April 1997
- 13 -Revision A1
Page 14
3. Interrupt Enable Register: IE
BITNAMEFUNCTION
IE.7EA
If EA = 0, no interrupt will be acknowledged (disable all interrupts).
If EA = 1, each interrupt source is individually enabled or disabled by setting or
clearing its enable bit.
IE.6IE.5*1
IE.4ES
IE.3ET1
IE.2*1
IE.1ET0
IE.0EX0
Notes:
*1: No name for ASSEMBLER, must be used via "IE.x".
*2 = (DSCLINT + ADCINT + TIMEOUT + SOAINT + VEVENT + PARAINT + DDC1INT).
(Reserved)
Set/clear to enable/disable the DDC port's I2C interrupt.
Set/clear to enable/disable the serial port 0 interrupt.
Set/clear to enable/disable the Timer 1 overflow interrupt.
Set/clear to enable/disable the *2 interrupt.
Set/clear to enable/disable the Timer 0 overflow interrupt.
Set/clear to enable/disable the external interrupt 0.
W78E354
4. Interrupt Priority Register: IP
BITNAMEFUNCTION
IP.7-(Reserved)
IP.6-(Reserved)
IP.5*1Define the DDC port's I2C interrupt priority level.
If IP.5 = 1, the priority level is higher.
IP.4PSDefine the serial port interrupt priority level.
If PS = 1, the priority level is higher.
IP.3PT1Define the Timer 1 interrupt priority level.
If PT1 = 1, the priority level is higher.
IP.2*1Define the *2 priority level.
If IP.2 = 1, the priority level is higher.
IP.1PT0Define the Timer 0 interrupt priority level.
If PT0 = 1, the priority level is higher.
IP.0PX0Define the external interrupt 0 priority level.
If PX0 = 1, the priority level is higher.
Notes:
*1: No name for ASSEMBLER, must be used via "IP.x".
3OSCSELOSC or OSC/2 SELectSee below.
4EINTESExternal INT Edge Select
See below.
0: High-level/rising-edge triggered
1: Low-level/falling-edge triggered
5ENM0ENable SDAC0 Moire cancel function
0: Disable, 1:Enable
6ENM1ENable SDAC1 Moire cancel function
0: Disable, 1:Enable
7VDISHCVsync DISable H-Clamp pulse
0: Enable, 1:Disable
OSCSEL
See Section E.12. 'Sync Processor
Block Diagram'.
OSCOUT
OSCIN
INT0
(P3.2)
EINTES
To CPU core
0
Divided by 2
1
0
1
IT0
1
To Sync processor
IE0
Publication Release Date: April 1997
- 17 -Revision A1
Page 18
*CONTREG3: Control register3.
BITNAMEFUNCTIONNOTE
0P4SFPort 4 Special Function
1TSTMOD1Function test mode1
2TSTMOD2Function test mode2
3TSTMOD3Function test mode3
4TVSEPTest VSEP signal
5-(Reserved for internal use.)
6-(Reserved for internal use.)
W78E354
7
-(Reserved for internal use.)
*CONTREG4: Control register4, bit-addressable.
BITNAMEFUNCTIONNOTE
0P24SFPort 2.4 Special Function* (SDAC10)See below.
1P25SFPort 2.5 Special Function* (SDAC11)See below.
2P26SFPort 2.6 Special Function* (SDAC12)See below.
3P27SFPort 2.7 Special Function* (SDAC13)See below.
4P14SFPort 1.4 Special Function*See below.
5P15SFPort 1.5 Special Function*See below.
6P23SFPort 2.3 Special Function*See below.
7INVSTPInvert Self-Test Pattern
*Note:In addition to setting PxySF, the port latch Pxy must have been cleared previously to enable the Pxy output special
0HPHsync polarity. 0: Positive, 1: Negative.
1VPVsync polarity. 0: Positive, 1: Negative.
2NOHSet by hardware if no Hsync.
3NOVSet by hardware if no Vsync.
Publication Release Date: April 1997
- 19 -Revision A1
Page 20
W78E354
* INTMSK: Interrupt mask register.
BITNAMEFUNCTION
0DSCLINTmskSet/clear to enable/disable DSCLINT interrupt.
1ADCINTmskSet/clear to enable/disable ADCINT interrupt.
2TIMEOUTmskSet/clear to enable/disable TIMEOUT interrupt.
3SOAINTmskSet/clear to enable/disable SOAINT interrupt.
4VEVENTmskSet/clear to enable/disable VEVENT interrupt.
5PARAINTmskSet/clear to enable/disable PARAINT interrupt.
6DDC1INTmskSet/clear to enable/disable DDC1INT interrupt.
7
Note: A '1' in any bit of the INTMSK register enables the corresponding interrupt flag in INTVECT to be set by hardware when
the interrupt source generates an interrupt.
* INTVECT: Interrupt vector register.
BITNAMEFUNCTIONNOTE
0DSCLINT Set by hardware when DSCL is toggled from High to
See Section E.6.
Low and kept Low for at least 12/Fosc sec.
1ADCINTSet by hardware when ADC conversion is completed.
2TIMEOUT Set by hardware when Autoload timer timeout.
3SOAINTSet by hardware when SOA is High.
4VEVENTSet by hardware when Vsync or Vertical frequency
counter timeout.
5PARAINT For parabola interrupt generator (set by hardware).
6DDC1INT For DDC1 of DDC port (set by hardware).
See Section E.10.
See Section E.8.
See Section E.12.g.
VSEP
NOV
See Section E.9.
See Section E.6.
7
Note: To clear the interrupt flag, write a '1' (not '0') to the corresponding bit in INTVECT register.
* PARAL: Parabola interrupt generator register, low byte.
* PARAH: Parabola interrupt generator register, high byte.
* AUTOLOAD: 8-bit Auto-reload timer register. (See Section H.)
* DHREG: Dummy Hsync frequency generator register. (See Section L.e.)
* DVREG: Dummy Vsync frequency generator register. (See Section L.e.)
* DDC1: DDC port's DDC1 data buffer.
* DDAC0−DDAC2: 8-bit PWM dynamic DAC register. (See Section K.)
* BDDAC (8 bits)+DBRM (4 bits): 12-bit PWM/BRM dynamic DAC register. (See Section K.)
* BSDAC1 (8 bits)+SBRM1 (4 bits): 12-bit PWM/BRM static DAC register. (See Section K.)
* WDTCLR: Watchdog-timer-clear register, no specific hardware but an address. Writing any value to
WDTCLR will clear the watchdog timer.
* ADC: Result of the A-to-D conversion.
* HFCOUNTL: Horizontal frequency counter register, low byte. (See Section L.d.)
* HFCOUNTH: Horizontal frequency counter register, high byte. (See Section L.d.)
* VFCOUNTL: Vertical frequency counter register, low byte. (See Section L.d.)
* VFCOUNTH: Vertical frequency counter register, high byte. (See Section L.d.)
* PORT4: Latch outputs (output only).
* SOAREG: Safe-Operation-Area register. (See Section L.g.)
* SOACLR: Safe-Operation-Area Clear register, no specific hardware but an address. Writing
anyvalue to SOACLR will clear the SOA output (P1.5).
* S1CON: Serial Port 1 Control Register.
* S1STA: Serial Port 1 Status Register.
* S1DAT: Serial Port 1 Data Register.
* S1ADR: Serial Port 1 Address Register.
B. 16K Bytes Flash Memory
Programming the Flash memory will be described in section F.
C. 256 Bytes of On-Chip Data Memory
This data memory is mapped to external locations 00H to FFH and can only be accessed by the
"MOVX @Ri" instruction. Since no external data can be accessed by this chip, there is no need for
the external memory read/write control signals (RD, WR) as the "MOVX @Ri" instruction can only
be executed internally.
D. SPI (Synchronous Peripheral Interface) and RS232 Port: Serial Port 0
P3.0(RXD) and P3.1(TXD) can be used as a SPI port (serial port mode 0 of standard 80C51) or a
RS232 port (mode 1, 2 or 3).
• The SPI port can be used to communicate to OSD chip, DAC ...
• An RS232 port can be used to talk to auto-alignment system, by using an 18.432 MHz crystal,
aximun baud rate is 19200 bpS.
E. DDC Port (support DDC1/2B/2B+, with two slave address registers)
• One DDC1 port to support DDC1
• One I2C port support DDC2B/2B+: Serial Port 1
An Interrupt is generated when DSCL has a transition from high to low and then remains low for 12
clock periods.
Publication Release Date: April 1997
- 21 -Revision A1
Page 22
16 MHz18.432 MHz20 MHz24 MHz
INT1
INT1
W78E354
DSCL Low
750 nS651 nS600 nS499 nS
F. I2C Port: Serial Port 2
(S/W emulation).
G. Interrupts
The W78E354 has 6 interrupt sources. Five of them, with the exception of
0013H) are identical to those of the 8051 series. The remaining one (at vector address 002BH) is a
new addition. All the interrupt sources and the corresponding interrupt vector addresses for the
W78E354 are given in the following table:
SOURCEVECTOR
DDRESS
1IE00003HSame as the 8051.Highest
2TF0000BHSame as the 8051.
3*10013H
4TF1001BHSame as the 8051.
5RI+TI0023HSame as the 8051.
6*2002BHNew addition.
Notes:
*1 = DSCLINT + ADCINT + TIMEOUT + SOAINT + VEVENT + PARAINT + DDC1INT.
*2 is the interrupt generated by the I2C in the DDC port.
Replaces
(like TF2 + EXF2 in the 8052)
DESCRIPTIONPRIORITY WITHIN A LEVEL
of the 8051.
Lowest
(at vector address
The interrupt at vector address 0013H is driven by another seven different sources. These are 1) a
High-to-low transition of the DSCL-pin, 2) the A/D converter, 3) the Auto-reload Timer, 4) the SOA
output, 5) Vsync, 6) the Parabola interrupt generator, and 7) DDC1 in the DDC port. The programmer
must read the INTVECT register to identify the interrupt request source. These seven sources can be
masked individually by setting the corresponding bit within the INTMSK register (Bit0..6). The newly
added interrupt at vector address 002BH is driven by the I2C circuit in the DDC port.
The interrupt enable control bits for the two interrupts at 0013H and 002BH are the bits IE.2 and IE.5
in the IE register, respectively. They can be disabled by clearing IE.7 (disable all interrupts). The
interrupt priority control bits are IP.2 and IP.5 in the IP register, respectively.
The following diagram illustrates the above description.
- 22 -
Page 23
W78E354
DSCLINT source
ADCINT source
TIMEOUT source
SOAINT source
VEVENT source
PARAINT source
DDC1INT source
2
I C in DDC port
INTMSK
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
INTVECT
DSCLINT
ADCINT
TIMEOUT
SOAINT
VEVENT
PARAINT
DDC1INT
Vector Address
IE0
TF0
OR
TF1
RI+TI
0003H
000BH
0013H
001BH
0023H
002BH
H. 8-bit Auto-reload Timer for Software Time Base
This is an 8-bit auto-reload timer, which generates a periodic interrupt to the CPU.
The time interval is programmable:
The minimun interval (unit) = 1/ (Fclock ÷ 1024),
the programmable interval = the minimun interval × (AUTOLOAD Reg. value +1),
IE
IE.0
IE.1
IE.2
IE.3
IE.4
IE.5
IE.7
IP
IP.0
IP.1
IP.2
IP.3
IP.4
IP.5
High Priority
Low Priority
Interrupt Polling
Sequence
the maximum interval = the minimun interval × 255.
16 MHz18.432 MHz20 MHz24 MHz
Minimum Interval
64 µS55 µS51.2 µS42.6 µS
Maximum Interval16.3 mS14.2 mS13.1 mS10.9 mS
I. Parabola interrupt generator
This is an 16-bit auto-reload timer, which generates a periodic interrupt to the CPU. The interrupt
period is programmable: the time base = 1/Fclock, the programmable interrupt period = the time base
× ([PARAH, PARAL] 16-bit Reg. value+1), the maximum period = the time base × 65535.
Set bits ADCS1 and ADCS2 in CONTREG1 to select one of the four analog input channels. The ADC
conversion is started by setting bit ADCSTRT in CONTREG1 using software. When the conversion is
comple, the ADCSTRT bit is cleared by hardware to stop the ADC operation. The ADCINT bit in
INTVECT is set by hardware at the same time.
K. PWM DACs
There are two/fourteen 12/8-bit PWM SDACs and one/three 12/8-bit PWM DDACs in this chip. All
the DAC output buffers have slew rate control to prevent the slew rate from being too large.
Additionally, their outputs are delay-controlled and divided into three groups with different delay times
as follows:
1. Delay about 5ns: BSDAC1, SDAC2, 5, 8, 11, DDAC1.
2. Delay about 10ns: SDAC0, 3, 6, 9, 12, DDAC2.
3. No delay: for the others.
Functional Descriptions:
a. 14 channels of 8-bit Static DAC
The Static DACs are used to generate DC voltages (0−5V). There are 14 registers each
corresponding to one 8-bit PWM 14 channel outputs. Unused PWM channels can be used as a
standard output pin, as these pins can supply 0V or 5V.
• The duty cycle of the PWM output = Register value ÷ 255
• The DC voltage after the low pass filter = VCC× duty cycle
REG. VALUEDUTY CYCLEDC VOLTAGE
00/2550V
11/255
nn/255
255255/255+5V
• The PWM frequency FPWM = Fclock ÷ 255
16 MHz18.432 MHz20 MHz24 MHz
FPWM62.745 KHz72.282 KHz78.431 KHz94.117 KHz
TPWM
15.94 µS13.83 µS12.75 µS10.62 µS
1/255 × 5V
n/255 × 5V
- 24 -
Page 25
W78E354
SDAC application circuit:
D1616
low pass filter
8/12bit resolution
SDAC
R
C
T = RC
Voutput = VCC× n/255, if T >> TPWM
b. 2 channels of 12-bit Static DAC
The two channel, 12-bit PWM outputs are composed of an 8-bit PWM and a 4-bit BRM (Bit Rate
Multiplier). The 4-bit BRM Reg. value decides which one is to be added one clock preiod in every 16
PWM outputs.
Output
BRM Reg. 4-bit data One clock period is incremented in the n-th output in every 16 PWM outputs.
0000 None
0001 n = 8
0010 n = 4, 12
0100 n = 2, 6, 10, 14
1000 n = 1, 3, 5, 7, 9, 11, 13, 15
Note: See the positions marked with an "*" in the following figure.
The PCC amplitude can be compensated against V size adjustment automatically.
The Trapezoid can be compensated against V center adjustment automatically.
DDAC1 is used to compensate H center distortion:
1. Pin balance (Bow)
2. Key balance (Tilt)
Note: The unused dynamic DACs can be used as static DACs.
- 26 -
Page 27
L. Sync Processor
VSPS
HSPS
DUMMYEN
ENVS
V
IN
IN
H
Digital
Filter
Polarity
Detect &
Restoration
Sync Processor Block Diagram
0
VREST
HREST
Vsync
Separator
VSEP
1
W78E354
0
1
0
1
OUT
V
VDUMMY
HDUMMY
0
1
0
1
OUT
H
H-Clamp
SOA
AD[7:0]
VDISHC
H/V
Frequency
Counter
H/V Dummy
Sync
Generator
H-Clamp
Generator
SOA
Generator
a. H/V Sync Digital Filter
Both Hsync and Vsync inputs have an internal digital filter to improve noise immunity. Any pulse that
is shorter than an internal clock period will be regarded as a glitch and will be ignored.
Ex: Tclock = 62 nS @16 MHz, any sync with pulse width less than 62 nS will be regarded as a glitch.
b. Polarity Detector
The H/V polarity is detected automatically and can be read from the STATUS register, the H/V input
signals are then polarity restored (become HREST/VREST) for internal processing and output to
HOUT/VOUT to drive the deflection circuit.
The maximun sync width to HIN pin is: (1/Fclock ) × 16384
The maximun sync width to VIN pin is: (1/Fclock ) × 16384
The Vsync is separated from the composite sync automatically, without any software effort.
The limitation for the Vsync signal is:
the VIN pulse width must be larger than Wvmin = (1/Fclock) × 128.5, +/- 1/Fclock ÷ 2
VOUT is also delayed from the VIN signal by Tdelay = (1/Fclock) × 128.5, +/- 1/Fclock ÷ 2
(if ENVS bit is set to 1)
d. Horizontal & Vertical Frequency Counter
There are two 16-bit counters which can count H and V frequency automatically. When a VEVENT (V
frequency counter timeout) interrupt occurs, the MCU may read the count value (Hcount and Vcount)
from the counter registers (HFCOUNTH, HFCOUNTL, VFCOUNTH and VFCOUNTL) to calculate the
H and V frequency by the formulas listed below.
- 28 -
Page 29
W78E354
V frequency:
The resolution of V frequency counter: Vresol = (1/Fclock ) × 16.
The V frequency: Vfreq = 1/(Vcount × Vresol ).
The lowest V frequency can be detected: Fclock ÷ 1048576.
H frequency:
The resolution of H frequency counter: Hresol = (1/Fclock ) ÷ 8.
The H frequency: Hfreq = 1/(Hcount × Hresol ).
The lowest H frequency can be detected: Fclock ÷ 8192.
16 MHz18.432 MHz20 MHz24 MHz
Vresol
The Lowest Vfreq15 Hz17.6 Hz19 Hz23 Hz
Hresol7.8 nS6.8 nS6.3 nS5.2 nS
The Lowest Hfreq1.9 KHz2.3 KHz2.4 KHz2.9 KHz
e. Dummy Frequency Generator
The Dummy H and V frequencies are generated for 1) factory burn-in and 2) displaying warning
messages if there is no input frequency.
There are two registers in the dummy sync generator:
DHREG: 4-bit register, determines the Dummy Hsync output frequency
DVREG: 8-bit register, determines the Dummy Vsync output frequency
1 µs
868 nS800 nS666 nS
Dummy Hsync frequency FdH = Fclock ÷ 32 ÷ (DHREG+1)
Dummy Vsync frequency FdV = FdH÷ 8 ÷ (DVREG+1)
g. SOA output
If P15SF = 0, P1.5 is a general purpose I/O port.
If P15SF = 1, P1.5 is the SOA output.
- 30 -
Page 31
W78E354
Purpose:
To protect the HOT (Horizontal Oscillating Transistor) and other critical circuitry by making a quick
response when the Hsync frequency drops below the preset boundary frequency.
Operation:
When the Hsync frequency is lower than the boundary frequency for three consecutive cycles or
stopped for a certain period, the SOA pin (P1.5) will change to a "high" state (for the extenal
protection circuit to function). Writing any value to the SOACLR register will release the SOA pin.
To set the boundary frequency, one can write some formula:value to the SOAREG register according
to the SOAREG value = 2M ÷ boundary frequency
Ex: If 50 KHz is considered the boundary frequency, then SOAREG = 2M ÷ 50K = 40.
No Hsync response time = 2048 × (1/Fclock ).
16 MHz18.432 MHz20 MHz24 MHz
No H response time
128 µS110 µS102 µS85 µS
M. Power Supervisor, Watchdog Timer and Reset Circuitry
The reset signals come from the following three sources:
1. External reset input (active low)
2. Power low detect
3. Hardware Watchdog Timer
The power-low detection circuit generates a reset signal once the VCC voltage falls below 3.8V. This
reset signal is released a short time after VCC has increased above 4.3V. This function can be
enabled or disabled by a code option.
The purpose of a watchdog timer is to reset the CPU if it enters erroneous processor states (possibly
caused by electrical noise or RFI) within a reasonable period of time. The watchdog timer clock
source comes from the internal system clock and can be enabled or disabled by a code option. When
enabled, the watchdog circuitry will generate a system reset if the user program fails to reload the
watchdog timer (by writing any value to the WDTCLR register) within a specified length of time known
as the "watchdog interval". The watchdog interval has four code options: 219/fosc, 221/fosc, 223/fosc
and 224/fosc sec.
The block diagram of the reset circuitry is shown as follows:
External Reset
EnWDT_Bit
Watchdog
Timer
EN
CPU
POR
XRESET
Reset the other
function blocks
EnSVS_Bit
Power-low
Detect Circuit
EN
Reset all DACs
Publication Release Date: April 1997
- 31 -Revision A1
Page 32
W78E354
FLASH CELL DESCRIPTION
A. Flash ROM Interface
The following diagram shows the Flash cell block control interface. A<0:14> are the address bus
inputs and Dout<0:7> are the data bus outputs of the Flash ROM.
VPP VDDVSS
OSCEN
(normally "0")
/CE
(PAD)
/OE
(PAD)
PC
A<0:14>
(PAD)
A9CTRL
(PAD)
A13CTRL
(PAD)
0
1
s
/CE
Flash ROM (16KB)
0
8
15
/OE
Din<0:7>
A<0:14>
A9HV
Dout<0:7>
OPTION<0:7>
ROM-MAP<0:7>
8
8
MUX
8
8
8
D<0:7>
(PAD)
1
s
0
8
1
s
15
0
15
1
s
0
1
s
0
1
A13HV
s
0
A14CTRL
(PAD)
1
A14HV
s
0
OECTRL
(PAD)
* A14 = 0 at normal operation all the time.
1
OECTRL
s
Select signal will be decided by
/RESET, /PROG, A9CTRL, A13CTRL, A14CTRL and OECTRL.
Flash ROM Block Diagram
- 32 -
Page 33
W78E354
VPP is the high voltage input while in Flash Mode. A<0:14> is the address bus of the Flash cell while
in Flash Mode. Dout<0:7> is the data bus output of the Flash cell and Din<0:7> is the data bus input
while the chip is in Flash mode. The A9CTRL, A13CTRL,A14CTRL and OECTRL signals are used
to select the Flash Mode. The OE and CE signals are the control strobe signals for Flash Mode
operation. These signals are operational only in Flash Mode and appear as inputs/outputs via the
external pins with a "Test Name" as listed in the Pin Description in Sec. D.
During normal operation, the critical timing parameter is the Flash data access time. When operating
at 24 MHz, the Flash cell requires 150 nS after an address out until the data is valid, as shown below.
Timing for Flash ROM Data Access
ROM
Address
A<0:14>
000000010002
ROM
Data
Dout<0:7>
Sample
Clock
Max. 150 nS for 24 MHz
#AAH
B. Option Setting Bits
The Option setting bits are used to set user-selectable options. These bits are programmed in the
same way as the 16K byte Flash ROM except for the address A<14:0> which is 7FFFH.
MSBLSB
B4B3B2B1
Note: Default value is 1 for each bit.
• B1: EnWDT_Bit. (1: Disable, 0:Enable)
This bit is used to enable/disable the Watchdog Timer operation.
• (B3, B2): WatchDog Timer period set.
These two bits are used to set the time period of the Watchdog timer.
(0, 0): 219/fosc sec.
(0, 1): 221/fosc sec.
(1, 0): 223/fosc sec.
(1, 1): 224/fosc sec.
Where fosc is the crystal frequency.
• B4: EnSVS_Bit. (1: Disable, 0:Enable)
This bit is used to enable/disable the Power-low-detection function.
- 33 -Revision A1
Publication Release Date: April 1997
Page 34
W78E354
C. ROM-MAP Bits
In order to increase the functionality of the 16K byte Flash ROM, the Flash ROM is divided into 4
blocks. If some blocks contain bad Flash cells but the other blocks are good, the 16KB Flash can be
treated as either 8KB or 4KB, and the W78E354 downgraded to either the W78E352 or the
W78E351.
Four ROM-MAP bits are used to indicate the availability of the 16K bytes of Flash ROM after testing.
MSBLSB
ROM-MAPB3B2B1B0
16K bytes Flash ROM
Set B0 = 1 if block 0 is available.Block 0, 4K bytes
Set B1 = 1 if block 1 is available.Block 1, 4K bytes
Set B2 = 1 if block 2 is available.Block 2, 4K bytes
Set B3 = 1 if block 3 is available.Block 3, 4K bytes
Note: Only one/two/four of the four bits can be set to indicate whether 4K/8K/16K are usable.
FLASH/TEST MODE
A. Flash Modes
1. Read
This mode is supported for customer code verification. The data will be invalid if the Lock bit is set
low.
2. Output Disable
When the OE is set high, no data outputs appear on D7..D0.
3. Standby
This condition disables the DC path from the Flash cell to reduce power consumption.
4. Program
This mode is used to program the Flash cell and option bits. It is the only way to change data from "1"
to "0".
5. Program Verify
All the programming data must be checked after program or mass program operations. This operation
should be performed after each byte is programmed to ensure a substantial program margin.
6. Erase
An erase operation is the only way to change data from "0" to "1".
7. Erase Verify
After an erase operation, all of the bytes in the chip must be verified to check whether they have been
successfully erased to 1 or not. The erase verify operation automatically ensures a substantial erase
margin. This operation will be implemented after the erase operation if VPP = VEP (14.5V), CE is high
and OE is low.
- 34 -
Page 35
W78E354
PSEN
8. Proram/Erase Inhibit
This operation allows parallel erasing or programming of multiple chips with different data.
9. Mass Program
In order to increase the throughput of testing, this operation programs 256 bytes with the same data
simultaneously. Note that 256 program verify operations must follow each mass program operation.
All the timings for this operation are the same as those of the byte program operation except that the
/CE program pulse width is 125µS. In addition, this operation is also used for cell reliability analysis
by stressing the source line.
10. Read Company ID and Device ID
These two modes are especially useful in EPROM WRITERs, which can read the silicon identification
to set the appropriate erase or program algorithm to match the device being erased or programmed.
11. VT
This operation is used for cell performance analysis. By connecting 2V to the D7..D0 pins, the cell
currents can be measured for each location within the chip by specifying its appropriate address.
12. Read ROM-map Bits
This operation is used to verify the ROM-MAP bits which were programmed previously. Its action is
the same as an EEPROM read operation.
13. Fuse ROM-map Bits
The ROM-MAP bits can be fused by this operation only. Its action is the same as an EEPROM
program operation.
14. Erase ROM-map Bits
The ROM-MAP bits can be erased by this operation only. Its action is the same as an EEPROM erase
operation.
15. CKBD & /CKBD Mass Program
These two operations are used to mass program the Flash cells in such a way that the state of any bit
is different from those of its neighboring bits.
16. Read Disturb
B. Test Mode
*RAM-test Mode
This mode is used to verify the function of the internal 512 bytes of RAM by a write-in and then readout operation.
*Functional Test Mode
If the EA (TestCLK) pin is pulled low when the chip is being reset and remains low for at least 24
clock periods after the reset, the CPU will execute from the external program memory (maximum
program size is 2K bytes). This feature may be used to test the chip's functions via an external
program. It should be noted that this mode is like the normal operation except that the CPU executes
from external program memory and that some different pins are used in place of A10−A0, D7−D0 and
instead of their original functions.
Publication Release Date: April 1997
- 35 -Revision A1
Page 36
W78E354
Flash/RAM-test Mode Configuration Table.
CONFIGURATION
Flash ModesA9CTRL A13CTRL A14CTRL OECTRL /CE /OEVPPA14..A0D7..D0
Read0000001AddressData Out
Output Disable0000011XHigh-Z
Standby00001X1XHigh-Z
Program000001VCPAddressData In
Program Verify000010VCPAddressData Out
[*3]
Erase
Erase Verify100010VEPAddressData Out
Program/Erase
Inhibit
Mass Program001001VCPXData In
Read Company ID
Read Device ID
VT0001011AddressCell Current
Read ROM-MAP01000017FFFhData Out
Fuse ROM-MAP010001VCP7FFFhData In
Erase ROM-MAP110001VEPXData In (FFh)
CKBD & /CKBD
MOVX-read
Notes:
1: RESET and PROG must be kept low for all the above modes.
2: "X" means "Don't care" but not floating. VCP = 12.5V, VEP = 14.5V, "1" stands for VDD and "0" for VSS.
*3: The Erase operation erases all the 16K bytes of Flash cell but not the ROM-MAP cell.
*4: A0/A6 decides whether the bit-line/word-line is even or odd.
011X01XX0AddressData In
011X10XX0AddressData Out
011X01XX1AddressData In
011X10XX1AddressData Out
- 36 -
Page 37
W78E354
For CKBD, (A6, A0) = (0, 0) and then (1, 1); for /CKBD, (A6, A0) = (1, 0) and then (0, 1).
G.3 Flash Mode Timing Waveforms
*Read Operation
(including EEPROM, Company ID, Device ID, Option bits and ROM-MAP bits Read)
PARAMETERSYMBOLMIN.TYP.MAX.UNIT
Address Access TimeTACC--150nS
Chip Enable Access TimeTCE--150nS
Output Enable Access TimeTOE--150nS
Output Data Hold TimeTODH0--nS
Output Data Float TimeTODF--100nS
Read Waveform
V
(A14..A0)
OE
CE
D7..D0
Note: Please pay attention to the relation between /CE's and /OE's waveforms.
IH
V
IL
V
IH
V
IL
V
IH
V
IL
V
IH
V
IL
Valid Address
T
OE
T
CE
T
ACC
Data
T
ODH/ODF
Publication Release Date: April 1997
- 37 -Revision A1
Page 38
*Erase Operation
(including EEPROM&Option bits and ROM-MAP bits Erase)
PARAMETERSYMBOLMIN.TYP.MAX.UNIT
W78E354
Vpp Setup TimeTVPS2.0-Address Setup TimeTAS2.0-Address Hold TimeTAH12.0-Erase Pulse WidthTEPW-15mS
Output Data Valid after OE Low
TODV--150nS
Address Hold TimeTAH20-Output Data Hold TimeTODH0--nS
Output Data Float TimeTODF--100nS
Erase Waveform
Erase
Verify
Address Stable
T
AS
T
AH2
ODH/ODF
T
A14..A0
CE
OE
V
V
V
V
V
VIL
Erase
IH
A0 = 0
IL
T
IH
IL
AS
T
IH
EPW
T
AH1
µS
µS
µS
µS
D7..D0
VPP
V
IH
V
IL
Vep
V
IH
T
ODV
D
OUT
T
VPS
- 38 -
Page 39
*Program & Mass Program Operation
(including EEPROM, Option bits and ROM-MAP bits Program, and Mass Program)
PARAMETERSYMBOLMIN.TYP.MAX.UNIT
W78E354
Vpp Setup TimeTVPS2.0-Address Setup TimeTAS2.0-Input Data Setup TimeTIDS2.0-Input Data Hold TimeTIDH2.0-Program Pulse WidthTPPW-100200
Mass Program Pulse WidthTMPPW-5001000mS
Output Data Valid after OE Low
TODV--150nS
Address Hold TimeTAH0-Output Data Hold TimeTODH0--nS
Output Data Float TimeTODF--100nS
Program Waveform
Program
Verify
A14..A0
Program
V
IH
V
IL
V
IH
Address Stable
T
AS
CE
V
OE
D7..D0
VPP
V
V
V
V
Vcp
V
IL
IH
IL
IH
IL
IH
T
PPW
T
IDH
T
IDS
T
ODV
Data In
T
VPS
T
T
Data Out
AH
ODH/ODF
µS
µS
µS
µS
µS
µS
Publication Release Date: April 1997
- 39 -Revision A1
Page 40
D.1 Smart Erase Algorithm
W78E354
Start
Vpp = 14.5V
Enter ERASE Mode
N = 0
Increment N
Erase one 1 mS pulse
Erase Verify
(Verify all bytes,
must be FFh)
PASS
Vpp = 5.0V
Enter READ Mode
Read Verify
(Blank check)
PASS
Erase Pass !
NO
FAIL
N = 10 ?
YES
FAIL
Erase Fail !
- 40 -
Page 41
D.2 Smart Program Algorithm
W78E354
Start
Vpp = 12.5V
Enter PROGRAM Mode
Address = First Location
N = 0
Increment N
Increment Address
Program One 100 uS Pulse
Program Verify
(Verify one byte)
PASS
NO
Last Address ?
YES
Vpp = 5.0V
Enter Rdad Mode
Read Verify
(Verify all bytes)
PASS
Program Pass !
NO
FAIL
N = 10 ?
YES
FAIL
Program Fail !
Publication Release Date: April 1997
- 41 -Revision A1
Page 42
ABSOLUTE MAXIMUM RATINGS
RESET
PARAMETERSYMBOLMIN.MAX.UNIT
DC Power SupplyVDD-0.3+7.0V
Input VoltageVINVSS -0.3VDD +0.3V
Input CurrentII-100+100mA
Operating Voltage
Operating Current
Idle CurrentIIDLE
Power-down CurrentIPD
Logic 0 Input Current
P1, P2, P3 (except P1.0−P1.3,
P1.5)
Input Current
, TestCLK
(*1)
Input Current
HIN, VIN
(*2)
Input Leakage Current
P1.0−P1.3, ADC0−ADC3
Logical 1-to-0 Transition
Current
P1, P2, P3
(*3)
VDD4.555.5V
IDD--65mANo load, VDD = 5.5V
--30mANo load, VDD = 5.5V
--10
No load, VDD = 5.5V
µA
Inputs
IIN1
-75--10
µA
VDD = 5.5V
VIN = 0V
IIN2
-250--
µA
VDD = 5.5V
VIN = 0V
IIN3
--+30
µA
VDD = 5.5V
VIN = VDD
ILK
-10-+10
µA
VDD = 5.5V
0V < VIN < VDD
ITL
-650--
µA
VDD = 5.5V
VIN = 2.0V
(except P1.0−P1.3, P1.5)
- 42 -
Page 43
Normal Operation D.C. Characteristics, continued
RESET
RESET
PARAMETERSYM. SPECIFICATIONUNITTEST CONDITIONS
Input Low Voltage
(*4)
P1, P2, P3 (except P1.0−P1.3,
P1.5)
Input Low Voltage
(*4)
HIN, VIN
Input Low Voltage
(*4)
P1.0−P1.3
Input High Voltage
P1, P2, P3 (except P1.0−P1.3,
P1.5)
Input High Voltage
(*4)
, OSCIN
Input High Voltage
(*4)
HIN, VIN
Input High Voltage
(*4)
P1.0−P1.3
Output Low Voltage
P1.0, P1.1
Output Low Voltage
P1.2, P1.3
Output Low Voltage
P1.4, P1.5, P2.2−P2.7
VIL1
VIL2
VIL3
VIH1
VIH2
VIH3
VIH4
VOL1
VOL2
VOL3
Min.Typ.Max.
0-0.8VVDD = 4.5V
0-0.8VVDD = 4.5V
0-1.5VVDD = 4.5V
2.4-VDD
VVDD = 5.5V
+0.2
3.5-VDD
VVDD = 5.5V
+0.2
2.4-VDD
VVDD = 5.5V
+0.2
3.0-VDD
VVDD = 5.5V
+0.2
Outputs
--0.4VVDD = 4.5V
IOL = +2 mA
--0.4VVDD = 4.5V
IOL = +6 mA
--0.45VVDD = 4.5V
IOL = +4 mA
W78E354
SDAC0−13, HOUT, VOUT
Output Low Voltage
P2.0, P2.1
Output Low Voltage
P3, P4
Output Low Voltage
BSDAC0−1, DDAC0−2, BDDAC
VOL4
VOL5
VOL6
--0.5VVDD = 4.5V
IOL = +15 mA
--0.45VVDD = 4.5V
IOL = +2 mA
--0.45VVDD = 4.5V
IOL = +8 mA
Publication Release Date: April 1997
- 43 -Revision A1
Page 44
Normal Operation D.C. Characteristics, continued
OE, CE
CE
CE
OE, CE
PARAMETERSYM. SPECIFICATIONUNITTEST CONDITIONS
Min.Typ.Max.
Output High Voltage
VOH1
P1.4, P2, P3
Output High Voltage
VOH2
P4
Output High Voltage
VOH3
P1.5, SDAC0−13, HOUT, VOUT
S.F. of P1.4 and P2.3−P2.7
Output High Voltage
(*5)
VOH4
BSDAC0−1, DDAC0−2, BDDAC
Notes:
*1. RESET and TestCLK have an internal pull-up resistor of about 30 KΩ.
*2. HIN and VIN have an internal pull-down resistor of about 200 KΩ.
*3. P1, P2 and P3 (except P1.0−P1.3 and P1.5) can source a transition current when they are being externally
driven from 1 to 0. The transition current reaches its maximum value when VIN is approximately 2V.
*4. P1.0−P1.3, RESET , HIN and VIN are Schmitt trigger inputs, and OSCIN is a CMOS input.
*5. While outputing a special function, the source current of P1.4 and P2.3−P2.7 is -4 mA.