W541C260 Data Sheet
4-BIT MICROCONTROLLER
Publication Release Date: May 29, 2003
- 1 -
Revision A4
Table of Contents-
1.
GENERAL DESCRIPTION ......................................................................................................... 2
2.
FEATURES ................................................................................................................................. 2
3.
BLOCK DIAGRAM ...................................................................................................................... 4
4.
PIN CONFIGURATION............................................................................................................... 5
5.
PIN DESCRIPTION..................................................................................................................... 6
6.
ELECRICAL CHARACTERISTICS ............................................................................................. 7
6.1
Absolute Maximum Ratings .......................................................................................... 7
6.2
DC Characteristics ........................................................................................................ 7
6.3
AC Characteristics......................................................................................................... 8
7.
APPLICATION CIRCUIT............................................................................................................. 9
8.
REVISION HISTORY ................................................................................................................ 10
W541C260
- 2 -
1. GENERAL DESCRIPTION
The W541C260 is fully compatible with W741C260 in the terms of pin assignment and IC functon. It is
a high-performance 4-bit microcontroller (
C) with an LCD driver. The device contains a 4-bit ALU,
two 8-bit timers, two dividers, a 32
4 LCD driver, and five 4-bit I/O ports (including 1 output port to
drive the LEDs). There are also five interrupt sources and 8-level subroutine nesting for interrupt
applications. The W541C260 has one power reduction mode to help minimize power dissipation.
The W541C260 has two oscillator circuits and can work in dual-clock or single-clock operation mode.
It is suitable for remote controllers, watches and clocks, speech synthesis LSI controllers, and other
products.
2. FEATURES
Operating voltage: 2.4V-5.5V (LCD drive voltage: 3.0V, or 4.5V)
Single or Dual Clock Mode
- Single (main oscillator only) or dual clock (both main and sub-oscilator) by mask option .
- Sub-oscillator is only 32.768 KHz crystal for dual clock mode.
- Main oscillator is crystal or RC oscillation by mask code option .
- Main clock : High-frequency clock (400 KHz to 4 MHz) or low-frequency clock (32.768 KHz) is
selected by mask code option
Memory
- 2048 16 bit program ROM (including 2K 4 bit look-up table)
- 128 4 bit data RAM (including 16 working registers)
- 32 4 LCD data RAM
21 input/output pins
- Ports for input only: 2 ports/8 pins
- Input/output ports: 2 ports/8 pins
- Port for output only: 1 port /4 pins (high sink current to drive LEDs)
- MFP output pin: 1 pin (MFP)
- Do not be floating when it is as input or output open-drain (NMOS type).
Power-down mode
- Hold function: no operation (except for oscillator)
- Stop function: no operation (including main clock)
Five types of interrupts
- Four internal interrupts (Divider 0, Divider 1, Timer 0, Timer 1)
- One external interrupt (Port RC)
W541C260
Publication Release Date: May 29, 2003
- 3 -
Revision A4
LCD driver output
- 32 segment 4 common
- Static, 1/2 duty (1/2 bias), 1/3 duty (1/2 or 1/3 bias), 1/4 duty (1/3 bias) driving mode can be
selected
- LCD driver output pins can be used as DC output ports; selectable by code option
MFP output pin
- Output is software selectable as modulating or nonmodulating frequency
- Works as frequency output specified by Timer 1
Two built-in 14-bit clock frequency divider circuit (divider 0 and divider 1)
Two built-in 8-bit programmable countdown timers
- Timer 0: one of two internal clock frequencies (F
OSC
/4 or F
OSC
/1024) can be selected
- Timer 1: includes an auto-reload function; and one of two internal clock frequencies (F
OSC
or
F
OSC
/64) can be selected or falling edge of pin RC.0 can be selected (output through MFP pin)
Built-in 18/14-bit watchdog timer selectable for system reset
Powerful instruction set: 115 instructions
8-level subroutine (include interrupt) nesting
Up to 1 S instruction cycle (with 4 MHz operating frequency)
Packaged in 80-pin QFP
W541C260
- 4 -
3. BLOCK DIAGRAM
LCD DRIVER
PC
STACK
(8 Levels)
RAM
(128*4)
ALU
Timer 0
(8 Bit)
Timing Generator
PORT RA
PORT RB
PORT RD
PORT RC
Modulation
Frequency
Pulse
SEG0 to SEG31 COM0 to COM3
RA0 to 3
RB0 to 3
RD0 to 3
RC0 to 3
RE0 to 3
MFP
XIN1 XOUT1
VDD
VSS
VDD1 to 3 DH1 to 2
ROM
(2048*16)
(look_up table
2K*4)
Timer 1
(8 Bit)
ACC
RES
Watch Dog Timer
(4 Bit)
HCF
PEF
HEF
IEF
Central Control
Unit
EVF
SEF
PSR0
PR
MR1
.
.
MUL
SEL
+1(+2)
PORT RE
.
Divider 0
(14 Bit)
Divider 1
XIN2 XOUT2
W541C260
Publication Release Date: May 29, 2003
- 5 -
Revision A4
4. PIN CONFIGURATION
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
33
34
35
36
25
26
27
28
29
30
31
32
65
66
67
68
69
70
71
72
73
74
75
76
77
RD2
RD1
RD0
RC3
RC2
RC1
RC0
RB2
M
F
P
/
R
E
S
X
I
N
O
U
T
V
D
N N
D
C C
D
H
1
D
H
2
V
D
D
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
V
S
S
N
C
N
C
N
C
C
O
M
C
O
M
C
O
M
C
O
M
S
E
G
S
E
G
S
E
G
S
E
G
S
E
G
S
E
G
3 2 1 0 0 1 2 3 4 5
E E
R R
2 3
E
1
G
SEG15
SEG14
SEG13
SEG12
RB1
RB0
RA3
RA2
RB3
S
3
3
V
D
D
2
V
D
D
X
R
A
0
1
20 21 22 23 24
37
38
39
40
45 44 43 42 41
78
79
80
RE1
RE0
RD3
S
E
G
S
E
G
S
E
G
S
E
G
S
E
G
S
E
G
6 7 8 9 1
0
1
1
SEG27
SEG26
SEG25
N
C
N
C
S S
E
E
G
E
G
0 9 8
G
S
3 2 2
N
C
R
A
1
N
C
N
C
N
C
1
1
X
I
N
O
U
T
X
2
2
W541C260
- 6 -
5. PIN DESCRIPTION
SYMBOL I/O
FUNCTION
XIN1 I
Input pin for oscillator.
Connected to crystal or resistor to generate system clock by code option.
External 10~20pF capacitor uses to get accurate freq in crystal mode.
XOUT1 O
Output pin for oscillator.
Connected to crystal or resistor to generate system clock by code option.
20pF capacitor is built in internal for crystal mode.
XIN2 I
Input pin for sub-oscillator. Connected to a 32.768 KHz crystal. External
10~20pF capacitor uses to get accurate freq in crystal mode.
XOUT2 O
Output pin for sub-oscillator. Connected to a 32.768 KHz crystal. 20pF
capacitor is built in internal for crystal mode.
RA0
-RA3
I/O
Input/Output port.
Input/output mode specified by port mode 1 register (PM1).
RB0
-RB3
I/O
Input/Output port.
Input/output mode specified by port mode 2 register (PM2).
RC0
-RC3
I
4-bit port for input only.
Each pin has an independent interrupt capability. And Build-in schmitt
trigger
RD0
-RD3
I
4-bit port for input only.
RE0
-RE3
O Output port only.This port provides high sink current to drive LEDs.
MFP
O
Output pin only.
This pin can output modulating or nonmodulating frequency, or Timer 1
clock output specified by mode register 1 (MR1).
RES
I
System reset pin with pull-high resistor.
SEG0
-SEG31
O
LCD segment output pins.
Can also be used as DC output ports specified by code option.
COM0
-COM3
O
LCD common signal output pins.
Static
COM0
COM1
COM2
COM3
Used
Not Used
1/2 Duty
Not Used
Not Used
Not Used
Not Used
1/3 Duty
Not Used
1/4 Duty
Used
Used
Used
Used
Used
Used
Used
Used
Used
The LCD alternating frequency can be selected by code option.
DH1, DH2
I
Connection terminals for voltage doubler (halver) capacitor.
V
DD1
, V
DD2
V
DD3
I
Positive (+) supply voltage terminal.
Refer to Functional Description.
V
DD
I
Positive power supply (+).
V
SS
I
Negative power supply (-).
W541C260
Publication Release Date: May 29, 2003
- 7 -
Revision A4
6. ELECRICAL CHARACTERISTICS
6.1 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
Power Dissipation
120
mW
Ambient Operating Temperature
0 to +70
C
Storage Temperature
-55 to +150
C
Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability
of the device.
6.2 DC Characteristics
(V
DD
-V
SS
= 3.0V, Fm = 4 MHz, Fs = 32.768 KHz, T
A
= 25
C, LCD on; unless otherwise specified)
PARAMETER
SYM.
CONDITIONS
MIN.
TYP.
MAX.
UNIT
Op. Voltage
V
DD
-
2.4
-
5.5
V
Op. Current (Crystal Type)
I
OP1
No load (Ext-V)
In dual-clock normal
operation
-
0.6
2.5 mA
Op. Current (RC Type)
I
OP2
No load (Ext-V)
In dual-clock normal
operation
- 1 4
mA
Op. Current (Crystal Type)
I
OP3
No load (Ext-V)
In dual-clock slow operation
and Fm is stopped
-
8.5
20
A
Hold Current (Crystal
Type)
I
HM1
Hold mode No load (Ext-V)
In dual-clock normal
operation
- 280
450
A
Hold Current (RC Type)
I
HM2
Hold mode No load (Ext-V)
In dual-clock normal
operation
- 500
600
A
Hold Current (Crystal
Type)
I
HM3
Hold mode No load (Ext-V)
In dual-clock slow operation
and Fm is stopped
- 4.0 6
A
Stop Current (Crystal)
I
SM
Stop mode No load (Ext-V)
In single-clock operating
- 0.1 2
A
Input Low Voltage
V
IL
- V
SS
-
0.3VDD
V
Input High Voltage
V
IH
-
0.7VDD
- V
DD
V
W541C260
- 8 -
DC Characteristics, continue
PARAMETER
SYM.
CONDITIONS
MIN.
TYP.
MAX.
UNIT
MFP Output Low Voltage
V
ML
I
OL
= 2.7 mA
-
-
0.4
V
MFP Output High Voltage
V
MH
I
OH
= 3.5 mA
2.4
-
-
V
Port RA, RB Output Low Voltage
V
ABL
I
OL
= 2.0 mA
-
-
0.4
V
Port RA, RB Output High Voltage
V
ABH
I
OH
= 2.0 mA
2.4
-
-
V
LCD Supply Current
I
LCD
All Seg. ON
-
-
6
A
SEG0
-SEG31 Sink Current
(Used as LCD Output)
I
OL1
V
OL
= 0.4V
V
LCD
= 0.0V
0.4 - -
A
SEG0
-SEG31 Drive Current
(Used as LCD Output)
I
OH1
V
OH
= 2.4V
V
LCD
= 3.0V
0.3
-
-
A
Segment Output Low Voltage
(Used as DC Output)
V
SL
I
OL
= 0.6 mA
-
-
0.4
V
Segment Output High Voltage
(Used as DC Output)
V
SH
I
OH
= 3
A
2.4 - - V
Port RE Sink Current
I
EL
V
OL
= 0.9V
7.5
-
-
mA
Port RE Source Current
I
EH
V
OH
= 2.4V
0.4
1.2
-
mA
Pull-up Resistor
R
CD
Port RC, RD
100
350
1000
K
RES Pull-up Resistor
R
RES
- 20
100
500
K
6.3 AC Characteristics
(V
DD
-V
SS
= 3.0V, Fm = 4 MHz, Fs = 32.768 KHz, T
A
= 25
C, LCD on; unless otherwise specified)
PARAMETER
SYM.
CONDITIONS
MIN.
TYP.
MAX. UNIT
RC type
-
-
4000
Op. Frequency
F
OSC
Crystal type 1 (Option low
speed type)
- 32.768 - KHz
Crystal type 2 (Option
high speed type)
400
-
3580
Frequency Deviation by
Voltage Drop for RC
Oscillator
f
f
f(3V) f(2.4V)
f(3V)
-
- - 10
%
Instruction Cycle Time
T
I
One machine cycle
-
4/F
OSC
- mS
Reset Active Width
T
RAW
F
OSC
= 32.768 KHz
1
-
-
S
Interrupt Active Width
T
IAW
F
OSC
= 32.768 KHz
1
-
-
S
W541C260
Publication Release Date: May 29, 2003
- 9 -
Revision A4
7. APPLICATION CIRCUIT
MFP
RES
XOUT1
XIN1
DH1
DH2
RC2
RC3
RA0
RA3
Output Signal
RB0
RB1
RB2
COM0
COM3
RB3
RC0
RC1
SEG0
SEG31
RD0
RD1
RD2
RD3
LCD
PANEL
(1/3 Bias
1/4 Duty)
RE0
RE1
RE2
RE3
Connect to capacitor and VDD
to generate LCD voltage
Vcc
Vcc
Vcc
V
DD
V
DD1
V
DD2
V
DD3
V
SS
OOUT2
XIN2
32.768
KHz
0.1 uF
0.1 uF
470
0.1 uF
*1 (option)
Note:
*1 is for accuracy
W541C260
- 10 -
8. REVISION HISTORY
VERSION DATE
DESCRIPTION
A2
-
Note: Update Hi freq range from 4.19 3.58 MHz
A3
-
Note: RC is built-in schmitt trigger
A4
May 29, 2003
Note: Do not be floating when it is as input or output open-drain
(NMOS type)
Headquarters
No. 4, Creation Rd. III,
Science-Based Industrial Park,
Hsinchu, Taiwan
TEL: 886-3-5770066
FAX: 886-3-5665577
http://www.winbond.com.tw/
Taipei Office
TEL: 886-2-8177-7168
FAX: 886-2-8751-3579
Winbond Electronics Corporation America
2727 North First Street, San Jose,
CA 95134, U.S.A.
TEL: 1-408-9436666
FAX: 1-408-5441798
Winbond Electronics (H.K.) Ltd.
No. 378 Kwun Tong Rd.,
Kowloon, Hong Kong
FAX: 852-27552064
Unit 9-15, 22F, Millennium City,
TEL: 852-27513100
Please note that all data and specifications are subject to change without notice.
All the trade marks of products and companies mentioned in this data sheet belong to their respective owners.
Winbond Electronics (Shanghai) Ltd.
200336 China
FAX: 86-21-62365998
27F, 2299 Yan An W. Rd. Shanghai,
TEL: 86-21-62365999
Winbond Electronics Corporation Japan
Shinyokohama Kohoku-ku,
Yokohama, 222-0033
FAX: 81-45-4781800
7F Daini-ueno BLDG, 3-7-18
TEL: 81-45-4781881
9F, No.480, Rueiguang Rd.,
Neihu District, Taipei, 114,
Taiwan, R.O.C.