The W78E378, W78C378 and W78C374B are ASIC which is a stand-alone high-performance
microcontroller specially designed for monitor control applications. The device integrates the
embedded 80C31 microcontroller core, on-chip MTP or Mask ROM, 576 bytes of RAM, and a number
of dedicated hardware monitor functions. Additional special function registers are incorporated to
control the on-chip peripheral hardware. The chip is used to control the interface signal of other
devices in the monitor and to process the video sync signals. Because of the highly integration and
Flash cell for program memory, the device can offer users the competitive advantages of low cost
and reduced development time.
FEATURES
• 80C31 MCU Core Embedded
• 32K Bytes MTP-ROM (W78E378)
• 32K Bytes Mask-ROM (W78C378)
• 16K Bytes Mask-ROM (W78C374B)
• Total 576 Bytes of On-chip Data RAM
− 256 bytes accessed as in the 80C32
−
320 bytes accessed as external data memory via "MOVX @Ri"
• PWM DACs
− Eight 8-bit Static PWM DACs: DAC0−DAC8
− Three 8-bit Dynamic PWM DACs: DAC9−DAC10
• Sync Processor
−
Horizontal & Vertical Polarity Detector
−
Sync Separator for Composite Sync
− 12-bit Horizontal & Vertical Frequency Counter
−
Programmable Dummy Frequency Generator
− Programmable H-clamp Pulse Output
−
SOA Interrupt
−
Hsync/2 Output
• Serial Ports:
− DDC1 Port- support DDC1
−
SIO1 & SIO2 Ports - each can support DDC2B/2B+/2Bi/2AB (each has 2 slave addresses)
• Two 16-bit Timer/Counters (8031's Timer0 & Timer1)
• One External Interrupt Input (8031's
• One Parabola Interrupt Generator
• One ADC with 7 Multiplexed Analog Inputs
• Two 12 mA(min) Output Pins for Driving LEDs
• Watchdog Timer (2
• Power Low Reset
• Frequency: 10 MHz max. (with the same performance as a normal 8051 that uses 20 MHz)
1. The SFRs marked with an asterisk (*) are both bit- and byte-addressable.
2. Port 1 and P3.5−P3.7 outputs low during & after reset.
3. "x" means no reset action.
4. The SFRs in the shaded region are new-defined.
8 FFh FFh R/W
8 F8h F8h R
8 FFh FFh R/W
8 00h 00h R/W
8 F8h F8h R
8 FFh FFh R/W
8 00h 00h R/W
RESET R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
* Modified PCON
BIT NAME FUNCTION
0 ADCS2 ADC channel Select bit 2
1 PD Power Down bit
2 GF0 General purpose flag bit
3 GF1 General purpose flag bit
4 TEST0 Test purpose flag bit
5 TEST1 Test purpose flag bit
6 ADCcal Set 0/1 to select 1.0V/3.0V for ADC calibration
7 CPUhalt Set to let CPU halt when the chip runs internally
* TMREG: Test Mode Register
BIT NAME FUNCTION
0 TM1 Test Mode1
1 TM2 Test Mode2
2 TM3 Test Mode3
- 8 -
Preliminary W78E378/W78C378/W78C374
SFRs accessed using 'MOVX @Ri'
REGISTER ADDRESS BITS POWER
ON RESET
1 CTRL1 80h 8 00h 00h W
2 CTRL2 81h 8 00h 00h W
3 P1SF 82h 8 00h xxh W
4 P2SF 83h 8 00h xxh W
5 P3SF 84h 8 00h 00h W
6 PARAL 85h 8 00h 00h R/W
7 PARAH 86h 5 00h 00h R/W
8 HFCOUNTL 87h 8 x x R
9 HFCOUNTH 88h 8 x x R
10 VFCOUNTL 89h 8 x x R
11 VFCOUNTH 8Ah 8 x x R
12 WDTCLR 8Bh - x x W
13 SOARL 8Ch 8/6 x x R/W
14 SOARH 8Dh 8/6 x x R/W
15 SOACLR 8Eh - x x W
16 INTMSK 8Fh 6 00h 00h R/W
17 INTVECT 90h 6 00h 00h R
18 INTCLR 91h 6 x x W
19 DDC1 92h 8 x x W
20 ADC 93h 8 x x R
21 DAC0 94h 8 00h x R/W
22 DAC1 95h 8 00h x R/W
23 DAC2 96h 8 00h x R/W
24 DAC3 97h 8 00h x R/W
25 DAC4 98h 8 00h x R/W
26 DAC5 99h 8 00h x R/W
27 DAC6 9Ah 8 00h x R/W
28 DAC7 9Bh 8 00h x R/W
29 DAC8 9Ch 8 00h x R/W
30 DAC9 9Dh 8 00h x R/W
31 DAC10 9Eh 8 00h x R/W
32 P4 9Fh 8 FFh FFh W
33 CTRL3 A0h 0 00h 00h W
Note: "x" means no reset action.
RESET R/W
TYPE
Publication Release Date: December 1999
- 9 - Revision A1
Preliminary W78E378/W78C378/W78C374
* CTRL1: Control Register 1 (Write Only)
BIT NAME FUNCTION
0 ADCSTRT A-to-D Conversion START control
Set by S/W to start conversion.
Cleared by H/W while conversion completed (read SOARH.6 to check).
1 ADCS0 ADC channel Select bit 0
2 ADCS1 ADC channel Select bit 1
3 ENDDC1 Enable DDC1
4 HCES H-Clamp Edge Select
0: Select leading edge of restored Hsync
1: Select trailing edge of restored Hsync
5 HCWS H-Clamp Width Select bit
6 DUMMYEN Dummy signal Enable
7
0: Positive, 1: Negative
2 HDUMS0 H Dummy frequency Select 0
3 VDUMS V Dummy frequency Select
4 DDC1B9 Bit 9 in DDC1 mode
5 WDTEN Enable Watch Dog Timer
6 SOAHDIS Disable SOA low to high detection
7 OSCHI OSC freq. Higher than 10 MHz
* CTRL3: Control Register 3 (Write Only)
BIT NAME FUNCTION
0 ENHFO Enable HF input/output for P4.0/P4.7, respectively
0: Disable, 1: Enable
1 HDUMS1 H Dummy frequency Select 1
2 HFO_POL Select HFO polarity
0: the same as HFI, 1: half of the HFI
4 ENBNK1 Select on-chip ext. RAM bank
0: Bank 0, 1: Bank 1
5−7
- -
- 10 -
Preliminary W78E378/W78C378/W78C374
*P1SF: Port1 special function output enable register (Write Only)
BIT NAME FUNCTION
0 P10SF Port 1.0 Special Function enable (DAC0 output)
1 P11SF Port 1.1 Special Function enable (DAC1 output)
2 P12SF Port 1.2 Special Function enable (DAC2 output)
3 P13SF Port 1.3 Special Function enable (DAC3 output)
4 P14SF Port 1.4 Special Function enable (DAC4 output)
5 P15SF Port 1.5 Special Function enable (DAC5 output)
6 P16SF Port 1.6 Special Function enable (DAC6 output)
7 P17SF Port 1.7 Special Function enable (DAC7 output)
*P2SF: Port2 special function output enable register (Write Only)
BIT NAME FUNCTION
0 P20SF Port 2.0 Special Function enable (DAC8 output)
1 P21SF Port 2.1 Special Function enable (DAC9 output)
2 P22SF Port 2.2 Special Function enable (DAC10 output)
3 P23SF Port 2.3 Special Function enable (Hclamp output)
4 P24SF Port 2.4 Special Function enable (ADC0 input)
5 P25SF Port 2.5 Special Function enable (ADC1 input)
6 P26SF Port 2.6 Special Function enable (ADC2 input)
7 P27SF Port 2.7 Special Function enable (ADC3 input)
*P3SF: Port3 special function output enable register (Write Only)
BIT NAME FUNCTION
0−2
3 P33SF Port 3.3 Special Function enable (H
4 P34SF Port 3.4 Special Function enable (V
5−7
*HFCOUNTL: Horizontal frequency counter register, low byte (Read Only)
BIT NAME FUNCTION
0 HF0 H frequency count bit 0
1 HF1 H frequency count bit 1
2 HF2 H frequency count bit 2
3 HF3 H frequency count bit 3
4 HF4 H frequency count bit 4
5 HF5 H frequency count bit 5
6 HF6 H frequency count bit 6
7 HF7 H frequency count bit 7
- -
- -
OUT
)
OUT
)
Publication Release Date: December 1999
- 11 - Revision A1
Preliminary W78E378/W78C378/W78C374
*HFCOUNTH: Horizontal frequency counter register, high byte (Read Only)
BIT NAME FUNCTION
0 HF8 H frequency count bit 8
1 HF9 H frequency count bit 9
2 HF10 H frequency count bit 10
3 HF11 H frequency count bit 11
4−5
6 NOH Set by hardware if no Hin signal
7 HPOL Hin polarity. 0: Positive, 1: Negative
*VFCOUNTL: Vertical frequency counter register, low byte (Read Only)
BIT NAME FUNCTION
0 VF0 V frequency count bit 0
1 VF1 V frequency count bit 1
2 VF2 V frequency count bit 2
3 VF3 V frequency count bit 3
4 VF4 V frequency count bit 4
5 VF5 V frequency count bit 5
6 VF6 V frequency count bit 6
7 VF7 V frequency count bit 7
- -
*VFCOUNTH: Vertical frequency counter register, high byte (Read Only)
BIT NAME FUNCTION
0 VF8 V frequency count bit 8
1 VF9 V frequency count bit 9
2 VF10 V frequency count bit 10
3 VF11 V frequency count bit 11
4−5
6 NOV Set by hardware if no VIN signal
7 VPOL VIN polarity. 0: Positive, 1: Negative
* INTVECT: Interrupt Vector Register (Read Only)
BIT NAME FUNCTION
0 SCLINT SCL pin pulled low detected
1 ADCINT ADC conversion completed
2 DDC1INT DDC1 port buffer empty
3 SOAINT SOA condition happen
4 VEVENT Vsync pulse detected or NOV = 1 (V counter overflow)
5 PARAINT Parabola Interrupt generated
- -
(The VEVENT is designed to be generated only 'one' time
if no Vsync input.)
- 12 -
Loading...
+ 26 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.