ChipFind - Datasheet

Part Number SD42C1008

Download:  PDF   ZIP
KSI-W029-000
1
SD42C/P1008
4Bit Single Chip Microcontroller

Description
The SD42C1008 is a microcomputer of the 4-bit single chip microcomputer SD42xx series
which can match an 8-bit microcomputer in the data processing capability.
The SD42C1008 can handle 1-bit, 4-bit, and 8-bit data as well as operates at high speed
(minimum instruction execution time : 0.95us) it contains a LCD pannel controller/driver.
Ordering Information
Type NO.
Marking
Package Code
SD42C1008
SD42C1008
QFP-80
Pin Configuration
S
S
e
e
m
m
i
i
c
c
o
o
n
n
d
d
u
u
c
c
t
t
o
o
r
r
P 0 2 / I N T 2
P 0 0 / I N T 0 / T I 0
P 0 1 / I N T 1
6 4
6 2
6 3
5 3
5 4
5 5
5 6
5 7
5 8
5 9
6 0
6 1
5 2
4 9
5 0
5 1
4 4
4 5
4 6
4 7
4 8
4 1
4 2
4 3
BIAS
VLC0
V
SS
P62
P61
P60
VLC2
VLC1
P82
P81
P21
P20/CL
P83
P63
P22
P80
2
5
3
3
3
1
3
0
2
9
2
8
2
7
2
6
3
6
3
5
3
4
3
9
3
8
3
7
3
2
4
0
S E G 1 2
S E G 1 4
S E G 1 3
S E G 2 3
S E G 2 2
S E G 2 1
S E G 2 0
S E G 1 9
S E G 1 8
S E G 1 7
S E G 1 6
S E G 1 5
S E G 2 4
S E G 2 7
S E G 2 6
S E G 2 5
C O M 0
S E G 2 9
S E G 2 8
C O M 3
C O M 2
C O M 1
S E G 3 1
S E G 3 0
1
3
2
1 2
1 1
1 0
9
8
7
6
5
4
1 3
1 6
1 5
1 4
2 1
2 0
1 9
1 8
1 7
2 4
2 3
2 2
P 5 0 / k S 4
P 4 2 / k S 2
P 4 3 / k S 3
P 3 3
V
D D
X T I
X T O
T E S T
X I
X 0
P 4 0 / k S 0
P 4 1 / k S 1
5 3
5 3 P 3 2
P 1 3 / B U Z
P 3 0
P 3 1
P 0 3 / I N T 3
P 1 0 / S C K
P 1 1 / S I
P 1 2 / S O
P 2 3
SD42C1008
P52/kS6
P53/kS7
RESETB
P51/kS5
SEG3
SEG5
SEG7
SEG8
SEG9
SEG0
SEG1
SEG2
SEG4
SEG6
8
0
7
2
7
4
7
5
7
6
7
7
7
8
7
9
6
9
7
0
7
1
6
6
6
7
6
8
7
3
6
5
SEG10
SEG11
KSI-W029-000
2
SD42C/P1008
Features
Memory mapped I/O
8-bit serial communication interface
- External / Internal clock selection
Program memory : 8192 x 10bits
- Mode : Transmit ·Receive
Receive only
Data memory : 512 x 4bits
Clock continuous
Instructions
LCD controller/driver
- Various bit manipulation
- selectable number of segments ;
- 8-bit data operation
20/24/28/32 segment (4/8/12 lines can
- 7-bit relative branch
be specified as bit ports)
- 1 byte absolute call
- Display mode selection
· Static
Instruction cycle times
· 1/2 duty (1/2 bias)
- Main ( XI = 4.19MHz )
· 1/3 duty (1/2 bias)
. 15.3 us ( XI/64 = 65.5KHz )
· 1/3 duty (1/3 bias)
. 1.91 us ( XI/8 = 524.0KHz )
· 1/4 duty (1/3 bias)
. 0.95 us ( XI/4 = 1.05MHz )
- Sub ( XTI = 32.768KHz )
Key scan
. 122 us ( XTI/4 = 8.19KHz )
- 4, 6, 8 Pins Selectable : Port 4, 5
- Falling edge operation
4 Register Bank
64 I/O Pins
General register : 8 x 4-bit respectively
- LCD driver output pins : 36
. Segment ouput pins : 20
Accumulator
. Segment CMOS output pins : 12
- Bit Accumulator (CY), 4 bit Accumulator (A),
. Common ounput pins : 4
8 bit Accumulator (XA)
- CMOS input/output pins : 32
Multiple vectored interrupt source
Power saving mode
- External interrupt : 4
- STOP : Main clock, CPU clock stop
- Internal interrupt : 4
- STBY : Only CPU clock stop
Main clock operation
Watch timer
- fast mode : 3.91 msec
- normal mode : 0.5 sec
- buzzer output : 1, 2, 4 KHz
APPLICATION
Basic interval timer
- 8 kinds of period
VTR, Camera, Rice Cooker, Telephone
- Used stabilization wait timer to wake up Stop mode
Blood Pressure Gauge, CD Player
One 8-bit timer / event counter
KSI-W029-000
3
SD42C/P1008
P20
P23
P30
P33
P60
P63
P80
P83
CPU
CLOCK
SD42 CORE
BASIC
INTERVAL
TIMER
IRQBT
WATCH
TIMER
IRQTC0
TIMER/
EVENT
COUNTER
IRQWT
PORT2
PORT3
PORT6
PORT8
LCD
CONTROL
/
DRIVER
DISPLAY
RAM
PROGRAM MEMORY
(8192 X 10BITS)
Fx / 2
n
V
DD
P20/CLO
V
SS
RESETB
CLOCK
OUTPUT
CONTROL
CLOCK
GENERATOR
STOP/ IDLE
CONTROL
XTI
XTO
CLOCKED
SERIAL
INTERFACE
IRQS0
XO
XI
DATA MEMORY
(512 X 4BITS)
BIT SEQ.
BUFFER(16)
INTERRUPT
CONTROL
SEG0~SEG19
BIAS
VLC0~VLC2
COM0~COM3
SEG20~SEG30
(BP0~BP11)
F
LCD
FLCD
BUZ/P13
SO/P12
SI/P11
SCK/P10
TI0/INT0/P00
KS0/P40
KS7/P53
INT3/P03
INT1/P01
INT2/P02
CLOCK
DIVIDER
TEST
BLOCK DIAGRAM
KSI-W029-000
4
SD42C/P1008
Program Memory(ROM) Vector Address
Data Memory(RAM)
DIRECT
INDIRECT
STACK
GENERAL
m
@HL
@DE @DL
REGISTER
$00
RB=0
RB=1
PAGE0
RB=2
RB=4
(256 Byte)
MP=0
SPS=0
$FF
$00
PAGE1
(256 Byte)
MB=0
MB=0
MP=1
SPS=1
BANK 0
$FF
(1K)
$00
PAGE2
(256 Byte)
MP=2
SPS=2
$FF
$00
PAGE3
I/O
(256 Byte)
MEMORY
MP=3
; Usable
$FF
CONTENTS
Prioty
INTERRUPT SUORCE
0000H
VECTOR
0000H
0
RESET
Reset Signal
ADDRESS AREA
0002H
1
IRQBT
Basic Interval Timer
001FH
0004H
2
IRQ0
External interrupt 0
0020H
ZERO-PAGE
0006H
3
IRQ1
External interrupt 1
CALL AREA
0008H
4
IRQTC0
Timer Event Counter 0
002FH
000AH
0060H
000CH
6
IRQ2
External interrupt 2
000EH
0010H
8
IRQ3
External interrupt 3
0012H
9
IRQS0
Serial I/O 0
0014H
8K Byte
0016H
0018H
12
IRQWT
Watch Timer
001AH
13
IRQKS
Key Scan
001CH
1FFFH
001EH
15
-
reserved
KSI-W029-000
5
I/O Address Map
SD42C/P1008
ADDRESS
Hardware Module Name
R/W
Addressing Unit
REMARKS
INITIAL
b3
b2
b1
b0
1 bit
4 bit
8bit
VALUE
318H
Stack pointer low (SPL)
R/W
O
Stack pointer low
E
319H
Stack pointer high (SPH)
R/W
O
stack pointer high
F
31AH
SP3
SP2
SP1
SP0
R/W
O
Stack Page Select Low (SPSL)
0
31BH
-
-
SP5
SP4
R/W
O
Stack Page Select High (SPSh)
0
31CH
AC
IS1
IS0
R/W
O
O
O
Psw low (PSWL)
0
31DH
CY
Z
OV
T
Psw high (PSWH)
0
320H
T/E counter mode register 0
W
320H.3
O
Clock source select. counter
00
321H
(TMOD0)
start (ch0)
322H
T/E counter register 0
R
readable count value (ch0)
00
323H
(TMCNT0)
324H
T/E reference register 0
W
count reference register (ch0)
FF
325H
(TMREF0)
332H
Basic Timer mode register(BMOD)
R/W
332H.3
clock select, Bit start
0
334H
Basic interval timer count
R
readable count register
00
335H
register(BITCNT)
336H
Watch timer mode register
R/W
336H.3
clock/buzzer select. bit3
00
337H
(WMOD)
readable
390H
Lcd display mode register
W
O
duty/bias/clock/seg/bitport
00
391H
(LCDMD)
select
392H
Lcd control register (LCON)
W
O
display ON/OFF
0
3A0H
Power control register
O
system clock select, idle, stop
00
(PCON)
R/W
mode
3A2H
Operating mode register (SCMOD)
R/W
O
main/sub system clock select
0
3A4H
Clock output mode register
W
O
cpu clock output select, clock
00
(CLOMD)
out EN/DIS
3A8H
Serial interface mode register0
W
3A8H.3
O
receive/transmit mode. clock
00
3A9H
(SIOM0)
select
3AAH
Serial interface buffer0
R/W
serial shift register 0
XX
3ABH
(SBUFF0)
3B2H
Power on flag (PONF)
P/W
3B2H.0
O
power on reset flag
0
3C2H
IME
R/W
3C2H.3
O
Interrupt priorty select, IME flag.
00
3C3H
IPSR3
IPSR2
IPSR1
IPSR0
3C4H
External interrupt mode register0
W
O
external interrupt 0 edge
00
(IMOD0)
detection
3C5H
External interrupt mode register1
W
O
external interrupt 1 edge
00
(IMOD1)
detection
3C6H
External interrupt mode register2
W
O
external interrupt 2 edge
00
(IMOD2)
detection
3C7H
External interrupt mode register3
W
O
external interrupt 3 edge
00
(IMOD3)
detection
3D8H
IE2
IRQ2
IEBT
IRQBT
R/W
O
O
Interrupt EN/IRQ flag
0
3D9H
IEWT
IRQWT
R/W
O
O
Interrupt EN/IRQ flag
0