NJU3503
PRELIMINARY
4-BIT SINGLE CHIP MICRO CONTROLLER
s
GENERAL DESCRIPTION
The
NJU3503
is the C-MOS 4-bit Single Chip Micro
Controller consisting of the 4-bit CPU Core, Input / Output
Selectable I/O ports, Program ROM, Data RAM, Dual
Timer/Counter, 8-bit Serial Interface, 8-bit A/D Converter,
and Oscillator Circuit (CR or Ceramic or X'tal). It realizes
the control for home appliances or toys by only few
external components.
The
NJU3503
is suitable for battery operated appliances
because of low operating current, wide operating voltage
range, and STANDBY function (HALT mode).
s
PACKAGE OUTLINE
NJU3503L
NJU3503M
s
FEATURES
q
q
q
2048 X 8 bits
128 X 4 bits
20 lines(MAX) / NJU3503L
20 lines(MAX) / NJU3503M
12 lines
⋅⋅⋅
Input / Output direction of each bit is selected by the mask option.
8 lines
⋅⋅⋅
Input / Output direction of each bit can be changed by the program.
Additional functions by the mask option.
External Interrupt Terminal
: EXTI/PF0
External Clock Input Terminal for Timer2
: CNTI/PF1
Serial Interface Terminals
: SDO/PL0, SDI(O)/PG1
A/D Converter Interface Terminals
: ADCK/PC0,V
REF
/PC1,AIN0−3/PD0−3,AIN4−5/PE0−1
High Output-Current terminal (11 lines)
: PA0−PA3, PD0−PD3, PE0−PE2
N-Channel FET Open Drain Type (I
OL
) 15mA at V
DD
=5V
Instruction Set
59 instructions
Subroutine Nesting
8 levels
Pulse Edge Detector
The rising or falling edge of a pulse is selected by the mask option.
Instruction Executing Time
6/f
OSC
sec (1.5µsec at 4MHz)
Operating Frequency Range
30kHz
−
4MHz
Internal Oscillator
CR, or Ceramic, or X'tal oscillation and External clock input
STANDBY function (HALT mode)
Wide operating voltage range
2.4V
−
5.5V
8-bit Serial Input / Output port
Timer/Counter
(Timer1 : 8-bit re-load type timer, Timer2 : 8-bit re-load type timer event counter )
(Count clock : Timer1’s clock is an internal one. Timer2’s clock is an internal or external one.)
8-bit A/D converter (Multiplexed 6-channel input )
Interrupt factor
4 (external, timer1, timer2, serial Input / Output)
C-MOS technology
Package outline
SDIP28 / SDMP30
Internal Program ROM
Internal Data RAM
Input / Output Port
q
q
q
q
q
q
q
q
q
q
q
q
q
q
q
26/Mar/2001
-1-
s
NJU3503
-2-
SDIP28
PIN CONFIGURATION
SDMP30
PB0
1
28
27
26
25
24
23
22
21
20
10
11
12
PE2
V
SS
13
14
19
18
17
16
15
2
3
4
5
6
7
8
9
30
PB1
PB2
ADCK/PC0
V
REF
/PC1
AV
DD
AIN0/PD0
AIN1/PD1
AIN2/PD2
AIN3/PD3
AIN4/PE0
AIN5/PE1
29
28
PA3
PA2
PA1
PA0
SCK/CKOUT
SDI(O)/PG1
SDO/PG0
CNTI/PF1
EXTI/PF0
TEST
N.C.
OSC2
OSC1
27
26
25
24
23
22
21
20
19
18
17
16
RESET
V
DD
V
DD
RESET
PA3
PA2
PA1
PA0
SCK/CKOUT
SDI(O)/PG1
SDO/PG0
CNTI/PF1
EXTI/PF0
TEST
OSC2
OSC1
PB0
1
PB1
2
PB2
3
N.C.
4
ADCK/PC0
5
V
REF
/PC1
6
AV
DD
7
AIN0/PD0
8
NJU3503L
AIN1/PD1
9
NJU3503M
AIN2/PD2
10
AIN3/PD3
11
AIN4/PE0
12
AIN5/PE1
13
PE2
14
V
SS
15
s
NJU3503
Interrupt Logic
V
DD
INT1
EXTI/PF0
BLOCK DIAGRAM
V
SS
INT2
CPU CORE
TIMER1
STACK
X Reg
Y Reg
AC
TEST
RESET
INT3
CNTI/PF1
TIMER2
X’ Reg
MUX
Y’ Reg
TLU addr
PC
INT4
SDO/PG0
PRESCALER
SDI(O)/PG1
SIO
SCK/CKOUT
ROM
ALU
2048 x 8 bit
CPU
TIMING
GENERATOR
AIN0/PD0
OSC
OSC1
OSC2
AIN1/PD1
AIN2/PD2
AIN3/PD3
IR
RAM
128 x 4 bit
AIN4/PE0
STANDBY
CONTROLLER
A/D∗
ID
AIN5/PE1
PE2
V
REF
/PC1
ADCK/PC0
AV
DD
PORT_A
∗
PORT_B
∗
PA0
PA1
PA2
PA3
PB0
PB1
PB2
NJU3503
∗
Refer
INPUT/OUTPUT TERMINAL TYPE
-3-
NJU3503
s
TERMINAL DESCRIPTION 1
No.
NJU
3503M
NJU
3503L
SYMBOLS
PB0
PB1
PB2
INPUT/OUTPUT
FUNCTIONS
1
2
3
1
2
3
5
6
4
5
INPUT/OUTPUT 3-bit Input / Output PORTB.
INPUT/OUTPUT Selects a terminal circuit for each port from the following
INPUT/OUTPUT by the mask option.
•C-MOS
Schmitt Trigger Input Terminal with Pull-up
Resistance (ISP)
•C-MOS
Schmitt Trigger Input Terminal (IS)
•C-MOS
Output Terminal (OC)
When the ports are selected as the input terminal, PB0
operates also as RESTART signal input terminal to return
from STANDBY mode, and PB1 operates also as the Edge
Detector Terminal.
2-bit Input PORTC.
INPUT
ADCK / PC0
Selects a function of either of 1) or 2) for PORTC by the
INPUT
V
REF
/ PC1
mask option.
1) Input terminal for A/D Converter.
External Clock Input Terminal
: ADCK (ACP,AC)
(AD)
Reference Voltage Input Terminal : V
REF
2) 2-bit Input Terminals as PORTC.
Selects a terminal circuit for each port from the following
by the mask option.
•C-MOS
Schmitt Trigger Input Terminal with Pull-up
Resistance (ISP)
•C-MOS
Schmitt Trigger Input Terminal (IS)
AV
DD
Analog Block Power source
–
Connect to V
DD
terminal when A/D converter is not used.
4-bit Input PORTD.
AIN0 / PD0 AIN0 – AIN3:
AIN1 / PD1
INPUT Selects a function of either of 1) or 2) for PORTD by the
mask option.
AIN2 / PD2
1) 4-bit Analog Input to A/D Converter. (AD)
AIN3 / PD3 PD0 – PD3:
INPUT/OUTPUT
2) 4-bit Input / Output Terminals as PORTD.
Selects a terminal circuit for each port from the following
by the mask option.
•C-MOS
Input Terminal with Pull-up Resistance (ICP)
•C-MOS
Input Terminal (IC)
•Nch-FET
Open-Drain Output Terminal with Pull-up
Resistance (ONP)
•Nch-FET
Open-Drain Output Terminal (ON)
INPUT/OUTPUT : Input or Output is selected by the mask option.
INOUT
: Input or Output is changed by the program.
7
8
9
10
11
6
7
8
9
10
Note )
-4-
NJU3503
s
TERMINAL DESCRIPTION 2
No.
NJU
3503M
NJU
3503L
SYMBOL
AIN4 / PE0
AIN5 / PE1
PE2
INPUT/OUTPUT
AIN4, AIN5:
INPUT
FUNCTIONS
3-bit Input / Output PORTE.
Selects a function of either of 1) or 2) for PORTE by the
mask option.
1) 2bit Analog Input to A/D Converter. : AIN4,AIN5 (AD)
12
13
14
11
12
13
15
16
17
14
15
16
V
SS
OSC1
OSC2
19
20
21
17
18
19
TEST
EXTI / PF0
CNTI / PF1
PE0 – PE2:
INPUT/OUTPUT 2) 3-bit Input / Output Terminals as PORTE.
Selects a terminal circuit for each port from the following
by the mask option.
•C-MOS
Input Terminal with Pull-up Resistance (ICP)
•C-MOS
Input Terminal (IC)
•Nch-FET
Open-Drain Output Terminal with Pull-up
Resistance (ONP)
•Nch-FET
Open-Drain Output Terminal (ON)
Power Source ( 0V )
–
Internal Oscillator Terminals.
INPUT
Connects a device selected from the ceramic or the crystal
OUTPUT
resonator, or the resistor, to these terminals for the internal
oscillator.
In the external clock operation, OSC1 is the external clock
input terminal and OSC2 is normally open terminal.
Maker Testing Terminal with Pull-down Resistance
INPUT
The terminal is recommended to connect to GND.
2-bit Input PORTF.
INPUT
Selects a function of either of 1) or 2) for PORTF by the
INPUT
mask option.
1) External Interrupt Input Terminal with Pull up
resistance :EXTI
( IIP,II )
External Clock Input Terminal with Pull up resistance
for Timer2 :CNTI
(IIP,II)
22
20
23
21
2) 2-bit Input Terminals as PORTF.
Selects a terminal circuit for each port from the following
by the mask option.
•C-MOS
Schmitt Trigger Input Terminal with
Pull-up Resistance (ISP)
•C-MOS
Schmitt Trigger Input Terminal (IS)
2-bit Input / Output PORTG.
SDO / PG0 SDO :OUTPUT
Selects a function of either of 1) or 2) for PORTG by the
PG0 :OUTPUT
mask option.
SDI(O)/ PG1 SDI(O) :INOUT 1) Serial Interface Function
Serial Data Output Terminal : SDO (SO)
PG1 :
Serial Data Input-Output Terminal with Pull-up
INPUT/OUTPUT
Resistance : SDI(O)
(SDP,SD)
2) 2-bit Input / Output Terminals as PORTG.
Selects a terminal circuit for each port from the following
by the mask option.
•C-MOS
Input Terminal with Pull-up Resistance
(ICP):PG1
•C-MOS
Input Terminal (IC) : PG1
•C-MOS
Output Terminal (OC) : PG0,PG1
: Input or Output is selected by the mask option.
: Input or Output is changed by the program.
Note )
INPUT/OUTPUT
INOUT
-5-