W742S824 4BIT MICROCONTROLLER, 8Kx16ROM, 1Kx4RAM DTMF, 192-DOT LCD, 3-OPS Table of Content1. GENERAL DESCRIPTION ......................................................................................................... 2 2. FEATURES ................................................................................................................................. 2 3. PIN CONFIGURATION ............................................................................................................... 4 4. PIN DESCRIPTION..................................................................................................................... 5 5. BLOCK DIAGRAM ...................................................................................................................... 6 6. ABSOLUTE MAXIMUM RATINGS ............................................................................................. 7 7. DC CHARACTERISTICS ............................................................................................................ 7 7.1 DC CHARACTERISTICS: VDD-VSS=3.0V .................................................................... 7 7.2 DC CHARACTERISTICS: VDD-VSS=3.6V .................................................................. 10 8. AC CHARACTERISTICS .......................................................................................................... 10 9. APPLICATIONS INFORMATION.............................................................................................. 11 10. 9.1 Operating Voltage ......................................................................................................... 11 9.2 FSK Signal Detection and FSK Demodulation ............................................................. 11 9.2.1 FSK Signal Detection .................................................................................................11 9.2.2 FSK demodulation......................................................................................................11 REVISION HISTORY ................................................................................................................ 12 -1- Publication Release Date: Nov 7, 2005 Revision A2 W742S824 1. GENERAL DESCRIPTION The W742S824 is a high-performance 4-bit micro-controller (C) that provides an LCD driver and three OpAmps. The device contains a 4-bit ALU, two 8-bit timers, two dividers (for two oscillators) in dual-clock operation, a 24 x 8 LCD driver(including 4 segment can be configured to normal outputs by mask option) , five 4-bit I/O ports (including 1 output port for LED driving), three OpAmps(Operational Amplifiers), and one channel DTMF generator. There are also five interrupt sources and 8-levels subroutine nesting for call subroutine or interrupt applications. The W742S824 operates on very low current and has two power reduction modes, that is the dual-clock slow operation and STOP mode, which help to minimize power dissipation. 2. FEATURES y y y y y y y y y y Operating voltage: 2.2V - 5.5V Dual-clock operation mode (Connect to 32768 Hz crystal only) - Fslow oscillator : 32768Hz OSC - Ffast oscillator : PLL ( Phase Lock Loop ) output enable Memory - 8192 x 16 bits program ROM (including 32K x 4 bit look-up table) - 1024 x 4 bits data RAM (including 16 nibbles x 16 pages working registers) - 24 x 8 LCD data RAM 18 input/output pins - Port for input only: 1 ports/2 pins(RC.2, RC.3) - Input/output ports: 3 ports/12 pins(RA, RB & RD) - High sink current output port for LED driving: 1 port /4 pins(RE) Power-down mode - Hold function: no operation (excluding Fslow and Fosc oscillator) - Stop function: no operation (Fslow and Fosc oscillator are stopped) - Dual-clock slow operation mode: system is operated by 32768Hz (FOSC=Fslow and Ffast stopped) Five types of interrupts - Four internal interrupts (Divider0, Divider1, Timer 0, Timer 1) - One external interrupts (RC Port) LCD driver output - 24 segments x 8 commons; SEG20~SEG23 can be used as DC output pins by mask option - 1/8 duty, 1/4 bias B-type driving mode; bias voltages are generated by the internal resistor - 8 level software LCD contrast adjusting MFP output pin - Output is software selectable as modulating or non-modulating frequency - Works as frequency output specified by Timer 1 DTMF output pin ( PLL should be enable in this function) - Output is one channel Dual Tone Multi-Frequency signal for dialing Three OpAmps(Operational Amplifiers) - Three general purpose OpAmps with positive inputs, negative inputs and outputs. -2- Publication Release Date: Nov 7, 2005 Revision A2 W742S824 y y y y y y y Two built-in 14-bit frequency dividers - Divider0: the clock source is the output of the Fosc-oscillator - Divider1: the clock source is the output of the Fslow-oscillator Two built-in 8-bit programmable countdown timers - Timer 0: one of two internal clock frequencies (FOSC/4 or FOSC/1024) can be selected - Timer 1: with auto-reload function and one of three internal clock frequencies (FOSC, FOSC/64 or Fslow) can be selected by MR1 register; and the specified frequency can be delivered to MFP pin Built-in 18/15-bit watchdog timer selectable for system reset and determined by code option Build-in Power-on reset detested circuit Powerful instruction set: 1XX instructions 8-levels subroutine (include interrupt) nesting Total pad count: 66 -3- Publication Release Date: Nov 7, 2005 Revision A2 W742S824 3. PIN CONFIGURATION For W742S824 QFP 80 pin / R R M N R A A F C E 1 0 P S D T M F T E V S D T D V x x F X V X O N N N F I U C C C N T O P P 3 O P N 3 O P O 3 O P P 2 O P N 2 O P N P C 1 N N C C 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 RA2 RA3 RB0 RB1 RB2 RB3 RC2 RC3 RD0 RD1 RD2 RD3 RE0 RE1 RE2 RE3 65 66 67 68 69 70 71 40 39 38 37 36 35 34 33 32 72 73 74 75 76 77 78 79 80 1 2 3 4 5 6 N N N N N N C C C C C C 7 8 N S C E G 0 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 S E G 1 S E G 2 S E G 3 S E G 4 S E G 5 S E G 6 -4- S E G 7 V S S S E G 8 S E G 9 S E G 1 0 S E G 1 1 S E G 1 2 S E G 1 3 S E G 1 4 COM0 COM1 COM2 COM3 COM4 COM5 COM6 31 COM7 SEG23 SEG22 30 SEG21 29 28 27 26 25 SEG20 SEG19 SEG18 SEG17 SEG16 S E G 1 5 Publication Release Date: Nov 7, 2005 Revision A2 W742S824 4. PIN DESCRIPTION SYMBOL I/O FUNCTION XIN I Input pin for 32.768 KHz oscillator. Connected to 32.768 KHz crystal only. XOUT O Output pin for 32.768 KHz oscillator. Connected to 32.768 KHz crystal only. VXXF I Regulator for PLL circuit. Connected capacitor (10 uF) to VSS. VF I Low pass filter for PLL circuit. Connected capacitor 0.022uF to VSS. RA0-RA3 I/O Input/Output port. Input/output mode specified by port mode 1 register (PM1). Internal pull-up resistors specified by RAM 7FEH RB0-RB3 I/O Input/Output port. Input/output mode specified by port mode 2 register (PM2). Internal pull-up resistors specified by RAM 7FFH RC2-RC3 I RD0-RD3 I/O Input/Output port. Input/output mode specified by port mode 5 register (PM5). Internal pull-up resistors specified by RAM 7FCH RE0-RE3 O Output port only. With high sink current capacity for the LED application. MFP O Output pin only. This pin can output modulating or non-modulating frequency, or Timer 1 specified frequency. It can be selected by bit 0 of BUZCR (BUZCR.0). DTMF O This pin can output dual-tone multi frequency signal for dialing. RES I System reset pin with low active. SEG0SEG23 O LCD segment output pins. SEG20~SEG23 can be used as DC output port by mask option COM0COM7 O LCD common signal output pins. The LCD alternating frequency can be selected by code option. OPP1~3 I OpAmp1~3 positive input pins OPN2~3 I OpAmp2~3 negative input pins OPO3 O OpAmp3 output pins TEST I For IC testing. Connected to Vss in normal usage. VDD I Positive power supply (+). VSS I Negative power supply (-). 4-bit port for input only. Each pin has an independent interrupt capability. -5- Publication Release Date: Nov 7, 2005 Revision A2 W742S824 5. BLOCK DIAGRAM S E G 0~ S E G 23 C O M 0~ C O M 7 LC D RAM (1024*4) PORT R A 0-3 PORT R B 0-3 PORT R C 2-3 PORT R D 0-3 PORT R E 0-3 DTMF G enerator DTMF ACC ROM (8192*16) (lo ok_ up ta ble 3 2K *4 ) A LU + 1(+ 2 ) C entral C ontrol U nit PC STACK (8 Levels) IE F HEF PEF HCF EVF SEF PSR0 SCR PR PM0 MR0 MR1 PM1 DTMF DTCR . . . SEL MUX T im er 1 (8 B it) T im er 0 (8 B it) M odulation F req uency MFP VDD D ivider 1 (12/14 B it) VSS RES W atch D og (4 B it) D ivider 0 (14 B it) VDD + _ RE3 T im ing G enerator PL L XOUT X IN RC1 1.15V + RC0 + VSS OPP1 OPN2 OPP2 OPP3 -6- OPN3 OPO3 Publication Release Date: Nov 7, 2005 Revision A2 W742S824 6. ABSOLUTE MAXIMUM RATINGS PARAMETER RATING UNIT Supply Voltage to Ground Potential -0.3 to +7.0 V Applied Input/Output Voltage -0.3 to +7.0 V 120 mW 0 to +70 C -55 to +150 C Power Dissipation Ambient Operating Temperature Storage Temperature Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability of the device. 7. DC CHARACTERISTICS 7.1 DC CHARACTERISTICS: VDD-VSS=3.0V (VDD-VSS = 3.0 V, Ffast = 3.6042MHz, Fslow = 32.768 KHz, Ta = 25 C, LCD on; Power-on reset circuit active, unless otherwise specified) PARAMETER SYM. CONDITIONS MIN. TYP. MAX. UNIT Op. Voltage VDD - 2.2 - 5.5 V Op. Current (Crystal type) IOP1 No load (Ext-V) All OpAmps disabled In dual-clock normal operation. - 0.7 1.0 mA IOP3 No load (Ext-V) All OpAmps disabled In dual-clock Fslow operation and Ffast is stopped - 45 65 A IOP4 No load (Ext-V) All OpAmps enabled In dual-clock Fslow operation and Ffast is stopped - 70 80 A IHM1 Hold mode No load (Ext-V) All OpAmps disabled In dual-clock normal operation - 310 450 A IHM3 Hold mode No load (Ext-V) All OpAmps disabled In dual-clock Fslow operation and Ffast is stopped - 45 55 A Op. Current (Crystal type) Op. Current (Crystal type) Hold Current (Crystal type) Hold Current (Crystal type) -7- Publication Release Date: Nov 7, 2005 Revision A2 W742S824 DC CHARACTERISTICS: VDD-VSS=3.0V, continued. PARAMETER SYM. CONDITIONS MIN. TYP. MAX. UNIT IHM4 Hold mode No load (Ext-V) All OpAmps enabled In dual-clock Fslow operation and Ffast is stopped - 70 80 A IHM5 Hold mode No load (Ext-V) All OpAmps disabled LCD off In dual-clock Fslow operation and Ffast is stopped - 15 20 A Stop Current (Crystal type) ISM1 Stop mode No load (Ext-V) All OpAmps disabled LCD driver should be turned off - 8 12 A Input Low Voltage VIL - VSS - 0.3VDD V Input High Voltage VIH - 0.7VDD - VDD V MFP Output Low Voltage VML IOL = 6 mA - 0.2 0.4 V MFP Output High Voltage VMH IOH = 3mA 2.4 - - V MFP Sink Current IML VOL = 0.9V 9 16 - mA Port RA, RB and RD Output Low Voltage VABL IOL = 2.0mA - - 0.4 V Port RA, RB and RD Output high Voltage VABH IOH = 2.0mA 2.4 - - V LCD Supply Current ILCD All Seg. ON - - 30 A SEG0-SEG23 Sink Current (Used as LCD output) IOL1 VOL = 0.4V VLCD = 0.0V 90 - - A SEG0-SEG23 Drive Current (Used as LCD output) IOH1 VOH = 2.4V VLCD = 3.0V 90 - - A Port RE Sink Current IEL VOL = 0.9V 9 14 - mA Port RE Source Current IEH VOH = 2.4V 0.4 1.2 - mA Hold Current (Crystal type) Hold Current (Crystal type) DTMF Output DC level VTDC RL=5K, VDD=2.5 to 3.8V 1.1 - 2.8 V DTMF Distortion THD RL=5K, VDD=2.5 to 3.8V - -30 -23 dB -8- Publication Release Date: Nov 7, 2005 Revision A2 W742S824 DC CHARACTERISTICS: VDD-VSS=3.0V, continued. PARAMETER DTMF Output Voltage SYM. VTO Pre-emphasis CONDITIONS MIN. TYP. MAX. UNIT 130 150 170 mVrms Col/Row 1 2 3 dB Low group, RL=5K Pull-up Resistor RA Port RA 100 450 1000 K Pull-up Resistor RB Port RB 100 450 1000 K Pull-up Resistor RC Port RC 100 450 1000 K Pull-up Resistor RD Port RD 100 450 1000 K Input Leakage Current IIN VssVIN VDD - - 1 A Input Resistance RIN 10 - - M Input Offset Voltage VOS - 10 25 mV Maximum Capacitive Load CL - - 20 pF Minimum Resistive Load RL 1000 - - K OPAMPs OP3 -9- Publication Release Date: Nov 7, 2005 Revision A2 W742S824 7.2 DC CHARACTERISTICS: VDD-VSS=3.6V (VDD-VSS = 3.6 V, Ffast = 3.6042MHz, Fslow = 32.768 KHz, Ta = 25 C, LCD on; Power-on reset circuit active, unless otherwise specified) PARAMETER MIN. TYP. MAX. UNIT IOP1 No load (Ext-V) All OpAmps disabled In dual-clock normal operation. - 0.8 1.0 mA IOP3 No load (Ext-V) All OpAmps disabled In dual-clock Fslow operation and Ffast is stopped - 45 65 A Op. Current (Crystal type) IOP4 No load (Ext-V) All OpAmps enabled In dual-clock Fslow operation and Ffast is stopped - 80 85 A Hold Current (Crystal type) IHM1 Hold mode No load (Ext-V) All OpAmps disabled In dual-clock normal operation - 360 450 A IHM3 Hold mode No load (Ext-V) All OpAmps disabled In dual-clock Fslow operation and Ffast is stopped - 55 65 A IHM4 Hold mode No load (Ext-V) All OpAmps enabled In dual-clock Fslow operation and Ffast is stopped - 80 85 A ISM1 Stop mode No load (Ext-V) All OpAmps disabled LCD driver should be turned off - 12 15 A Op. Current (Crystal type) Op. Current (Crystal type) Hold Current (Crystal type) Hold Current (Crystal type) Stop Current (Crystal type) SYM. CONDITIONS 8. AC CHARACTERISTICS PARAMETER SYM. CONDITIONS MIN. TYP. MAX. UNIT Op. Frequency FOSC Crystal type - 32768 - KHz PLL Frequency Ffast PLL enable - 3.6042 - MHz TI One machine cycle - 4/FOSC - S Reset Active Width TRAW FOSC=32.768 KHz 1 - - S Interrupt Active Width TIAW FOSC=32.768 KHz 1 - - S Instruction cycle time - 10 - Publication Release Date: Nov 7, 2005 Revision A2 W742S824 9. APPLICATIONS INFORMATION 9.1 Operating Voltage The chip can be operated from 2.2V-5.5V. If users have much consideration for low power operation, lower voltage supply system can be a better choice. 9.2 FSK Signal Detection and FSK Demodulation 9.2.1 FSK Signal Detection Figure 9-1 is a typical application circuit for FSK signal detection and FSK demodulation. For purpose of signal detection, user should enable both OP2 and OP3, output low to control and sense the signal by RC.n. 9.2.2 FSK demodulation For purpose of FSK demodulation, user should enable both OP2 and OP3, output high to control, and sense the FSK signal by RC.n. and demodulate FSK by software. Figure 9-1 Application Circuit for FSK Signal Detection and FSK demodulation - 11 - Publication Release Date: Nov 7, 2005 Revision A2 W742S824 10. REVISION HISTORY VERSION DATE PAGE DESCRITION A1 June 1, 2005 - Initial Issued A2 November 7, 2005 - Add IHM5 DC item Important Notice Winbond products are not designed, intended, authorized or warranted for use as components in systems or equipment intended for surgical implantation, atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, or for other applications intended to support or sustain life. Further more, Winbond products are not intended for applications wherein failure of Winbond products could result or lead to a situation wherein personal injury, death or severe property or environmental damage could occur. Winbond customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Winbond for any damages resulting from such improper use or sales. - 12 - Publication Release Date: Nov 7, 2005 Revision A2