1
4Bit Single Chip Microcontroller
DMC42C3008
DESCRIPTION
The DMC42C3008 is a 4-bit single chip microcomputer having
8K bytes ROM and is designed with CMOS silicon gate technology.
The DMC42C3008 includes such peripherals as various timers,
A/D converter, serial communication interface,on-chip oscillator
and clock circuitry. It also comes with high-voltage I/O pins
that can directly drive a fluorescent display.
The high performance CPU and internal peripherals allow flexible & cost
effective system design in industrial and home appliances.
AND the OTP device (42P3008) can shorten system development periods
and help the process for software debugging.
PIN CONFIGURATION
V
disp
P10 / SCK
P11 / SI
P12 / SO
PC2
PC3 / TOC
RESETB
XI
XO
V
SS
/ AV
SS
TEST
PA0 / AD0
PA1 / AD1
PA2 / AD2
PA3 / AD3
PB0 / AD4
PB1 / AD5
PB2 / AD6
PB3 / AD7
AV
DD
V
DD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
42
41
40
39
P53
P52
P51
P50
P43
P42
P41
P40
P63
P62
P61
P60
P23
P22
P21
P20 / CLO
P03 / INT3
P13 / BUZ
P02 / INT2 / TI2
P01 / INT1
P00 / INT0
D
M
C
4
2
C
3
0
0
8
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
2
4Bit Single Chip Microcontroller
DMC42C3008
FEATURES
Memory mapped I/O
Program memory : 8192 x 10bits
Data memory
: 512 x 4bits
8-bit serial communication interface
- External / Internal clock selection
- Mode : Transmit, Receive
Receive only
Clock continuous
8-bit A/D converter
- 8-bit successive approximate type
- 8 channels
- Sample and hold
- Conversion time : 17.1us at 4.19MHz
34 I/O Pins
- CMOS Pins : 13
- High voltage Pins : 21
- Internal pull-up resistor ( Mask option )
- Internal pull-down resistor ( Mask option )
Power saving mode
- STOP : Main clock, CPU clock stop
- STBY : Only CPU clock stop
Main clock operation
Operating voltage range
- VDD = 5V ± 10%
- V
disp
= VDD - 40V
Package : 42 SDIP
PWM
- 14 bit PWM output X 1ch
Instructions
- Various bit manipulation
- 8-bit data operation
- 7-bit relative branch
- 1 byte absolute call
Instruction cycle times
- Main ( XI = 4.19MHz )
. 15.3 us ( XI/64 = 65.5KHz )
. 1.91 us ( XI/8 = 524.0KHz )
. 0.95 us ( XI/4 = 1.05MHz )
4 Register Bank
General register : 8 x 4-bit respectively
Accumulator
- Bit Accumulator (CY), 4 bit Accumulator (A),
8 bit Accumulator (XA)
Multiple vectored interrupt source
- External interrupt : 4
- Internal interrupt : 6
Watch timer(at 4.19MHz)
- fast mode : 3.91 msec
- normal mode : 0.5 sec
- buzzer output : 1, 2, 4 KHz
Basic interval timer
- 8 kinds of period
- Used stabilization wait timer to wake up
Stop mode
One 8-bit timer / event counter
Watchdog timer
- 4 kinds of period
APPLICATION
Microwave Oven, Home Appliances
3
4Bit Single Chip Microcontroller
DMC42C3008
BLOCK DIAGRAM
BASIC
INTERVAL
TIMER
I
RQBT
PORT0
P00
¡-
P03
BUZ / P13
WATCH
TIMER
IRQWT
DMC42CORE
PORT1
P10
¡-
P13
WATCHDOG
TIMER
PORT2
P20
¡-
P23
TOC / PC3
PULSE WIDTH
MODULATION
PORT4
P40
¡-
P43
PROGRAM MEMORY
(8192 X 10BITS)
TI2 / P02
TIMER/EVENT
COUNTER 2
IRQTC 2
DATA MEMORY
PORT5
(512 X 4BITS)
P50
¡-
P53
PORT6
Fx / 2
n
P60
¡-
P63
CPU
CLOCK
SCK / P10
SI / P11
SO / P12
SERIAL
INTERFACE
IRQS0
CLOCK
OUTPUT
CONTRO
L
CLOCK
DIVIDER
CLOCK
GENERATOR
STOP/
IDLE
CONTROL
PORTA
PA0
¡-
PA3
INT0 / P00
INT1 / P01
INT2 / P02
INT3 / P03
INTERRUPT
CONTROL
PORTB
PB0
¡-
PB3
AV
DD
AV
SS
V
DD
V
SS
IRQAD
P20 / CLO
RESETB
TEST
PA0~PA3,
PB0~PB3/
AD0-AD7
XI
XO
8-BIT ADC
PORTC
PC2
¡-
PC3
4
4Bit Single Chip Microcontroller
DMC42C3008
PROGRAM MEMORY (ROM)
0000H
001FH
0020H
002FH
0060H
VECTOR ADDRESS
0000H
0002H
0004H
0006H
0008H
000AH
000CH
000EH
0010H
0012H
0014H
CONTENTS
VECTOR
ADDRESS AREA
ZERO-PAGE
CALL AREA
Prioty
0
1
2
3
INTERRUPT SUORCE
Reset Signal
RESET
Basic Interval Timer
IRQBT
External interrupt 0
IRQ0
External interrupt 1
IRQ1
6
7
8
9
10
12
13
15
IRQ2
IRQTC2
IRQ3
IRQS0
IRQAD
IRQWT
IRQKS
-
External interrupt 2
Timer Event Counter 2
External interrupt 3
Serial I/O 0
8 bit ADC
Watch Timer
Key Scan
reserved
8K Byte
0016H
0018H
001AH
001CH
1FFFH
001EH
DATA MEMORY (RAM)
DIRECT
m
$00
PAGE0
(256 Byte)
$FF
$00
PAGE1
(256 Byte)
MB=0
BANK 0
$FF
(1K)
$00
PAGE2
(256 Byte)
$FF
$00
PAGE3
I/O
(256 Byte)MEMORY
$FF
INDIRECT
STACK
@HL
@DE @DL
GENERAL
REGISTER
RB=0
RB=1
RB=2
RB=4
MP=0
SPS=0
MB=0
MP=1
SPS=1
MP=2
SPS=2
MP=3
; Usable
5
4Bit Single Chip Microcontroller
DMC42C3008
I/O ADDRESS MAP
ADDRESS
b3
318H
319H
31AH
31BH
31CH
31DH
32CH
32DH
32EH
32FH
330H
331H
332H
334H
335H
336H
337H
338H
339H
340H
342H
343H
344H
345H
354H
355H
386H
387H
388H
389H
3A0H
3A2H
3A4H
3A8H
3A9H
3AAH
3ABH
3B2H
3C2H
3C3H
Hardware Module Name
b2
b1
b0
R/W
R/W
R/W
R/W
R/W
W
R
W
R/W 332H.3
R
R/W 336H.3
W
R
R/W
W
W
W
R/W 386H.3
R
O
R/W
R/W
W
W
R/W
P/W 3B2H.0
R/W 3C2H.3
O
O
O
O
3A8H.3
O
Stack pointer low (SPL)
Stack pointer high (SPH)
SP3
SP2
SP1
SP0
-
-
SP5
SP4
AC
IS1
IS0
CY
Z
OV
T
T/E counter mode register 2
(TMOD2)
T/E counter register 2
(TMCNT2)
T/E reference register 2
(TMREF2)
Basic Timer mode register(BMOD)
Basic interval timer count
register(BITCNT)
Watch timer mode register
(WMOD)
Watch dog timer mode register
(WDTM)
WDTF
Pwm mode register0(PWMOD0)
Pwm0 data register high
(PWMODH)
Pwm0 data register low
(PWMODL)
PWM3 PWM2 PWM1 PWM0
PWM6 PWM5 PWM4
Adc8 mode register (ADCM8)
Adc8 output latch (ADCOL8)
Power control register
(PCON)
Operating mode register (SCMOD)
Clock output mode register
(CLOMD)
Serial interface mode register0
(SIOM0)
Serial interface buffer0
(SBUFF0)
Power on flag (PONF)
IME
IPSR3
IPSR2
IPSR1
IPSR0
R/W
Addressing Unit
1 bit
4 bit
8bit
O
O
O
O
O
Stack pointer low
stack pointer high
Stack Page Select Low (SPSL)
Stack Page Select High (SPSh)
Psw low (PSWL)
Psw high (PSWH)
clock source select. counter
start (ch2)
readable count value (ch2)
count reference register (ch2)
clock select, Bit start
readable count register
clock/buzzer select. bit3
readable
clock source sel. timer EN/DIS
WDT flag
6.14bit pwm counter EN/DIS
14bit pwm data register high
14bit pwm data register low
pwm output enable mode
register (PWM0 = 14bit)
analog input pin select. start &
low 4bit readable
8bit conversion data
system clock select, idle, stop
mode
main/sub system clock select
cpu clock output select, clock
out EN/DIS
receive/transmit mode. clock
select
serial shift register 0
power on reset flag
Interrupt priorty select, IME flag.
REMARKS
INITIAL
VALUE
E
F
0
0
0
0
00
00
FF
0
00
00
00
0
0
00
00
00
00
00
00
0
00
00
XX
0
00
O
32CH.3
O
O
O
O
O
O