Daewoo Semiconductor DMC42C2008, DMC42P2008 Datasheet

1
4Bit Single Chip Microcontroller
DESCRIPTION
FEATURE
The DMC42C2008 is a 4-bit single chip micro- Memory Mapped I/O computer with 8K bytes ROM, and is manufactured with CMOS silicon gate technology. Program Memory : 8192 x 10 bits The DMC42C2008 includes peripherals such as 8-bit Timer/Event Counters, 4-bit A/D Converter, 14-bit Data Memory : 512 x 4 bits PWM, 8-bit PWM, 6-bit PWM, Watchdog Timer, 4-ch External Interrupts and OSD controller. Instructions It provides the hardware features, architectural - Various Bit Manipulation enhancements and instructions that are necessary - 8 bit Data Transfer, Compare, Arithmatic to make it a powerful and cost effective controller - 7 bit Relative Branch for applications requiring up to 64K bytes of program- - 1 byte Absolute Call mable memory.
Instruction cycle times
- Main ( XI = 4.19MHz ) . 15.3 us ( XI/64 = 65.5KHz )
PIN CONFIGURATION
. 1.91 us ( XI/8 = 524.0KHz ) . 0.95 us ( XI/4 = 1.05MHz )
4 Register Bank
PC.0/PWM14 PC.1/PWM60
General Register
P8.3 PC.2/PWM61
- 8 x 4 bit x 4 Banks
P0.3/INT3 PC.3/PWM62 P0.2/INT2 PWMOTB/80
Accumulator
P0.1/INT1 PWMOTB/81
- Bit Accumulator (CY), 4 bit Accumulator (A),
P0.0/INT0 PWMOTB/82
8 bit Accumulator (XA)
XI P3.0 XO P3.1
Multiple Vectored Interrupt Source
RESETB P3.2
- External Interrupts : 4
P8.2 P3.3
- Internal Interrupts : 3
VSS P1.0
- Vsync Interrupts : 1
P8.1 P1.1 P8.0 P1.2
Watch timer
VDD P1.3
- fast mode : 3.91 msec
P2.3 VBLNKPAD
- normal mode : 0.5 sec
P2.2 VBPAD
- buzzer output : 1, 2, 4 KHz
P2.0 P6.1/VGPAD P2.1 P6.0/VRPAD
Basic interval timer
OSCIN VSYNCBP
- 8 kinds of period
OSCOUT HSYNCBP
- Used stabilization wait timer to wake up Stop mode
Two 8-bit timer / event counters
403938
37363534333231302928272625242322211234567891011121314151617181920
D
M
C
4 2
C
2 0 0
2
4Bit Single Chip Microcontroller
4 Bit A/D Converter
Power saving mode
Programmable Comparator Input
- STOP : Main clock, CPU clock stop
AFC Input Signal Detection Circuit
- STBY : Only CPU clock stop
Main clock operation
PWM
- 14 Bits PWM Output x 1Ch
Package : 40 DIP
- 8 Bits PWM Output x 3Ch
- 6 Bits PWM Output x 3Ch
29 I/O Pins
- CMOS I/O Pins : 22
(Digital CMOS Levels Schmitt Triggered)
- PWM Pins : 7
OSD CONTROLLER SPEC.
Character ROM ; 12 x 16 x 96 bits
Display Mode ; 3 Modes
Character, Fringe,
Video RAM ; 120 x 10 Bits
Background
OSD Clock ; 4MHz ~ 7MHz
Background Color ; 8 Colors
- Character Background Area Mode
Character Number ; 96
- All TV Display Area Mode
Display Capacity ; 20 Columns x 6 Lines
OSD Oscillator Control Modes ;
(120 Character)
(Always Oscillate, Oscillates
Only in the Display Period
Character Size ; 16 Kinds (4 x 4 Kinds)
LC Oscillator)
- Horizontal 1T, 2T, 3T, 4T/Dots
- Vertical 1H, 2H, 3H, 4H/Dots
Display Position ; 1'st line, 2'nd line
Variable
Character Color ; 8 Colors
Black, Blue, Green, Red,
Structure of Character
Magenta, Yellow, White,
12 (Width) x 16 (Height) dots
Cyan
Vsync Interrupt
3
4Bit Single Chip Microcontroller
TI0/P0.0
TO0/P2.2
TI1/P0.1
TO1/P2.3
INT0/P0.0 INT1/P0.1 INT2/P0.2 INT3/P0.3
14BIT RED
OUTPUT
GREEN
8BIT
OUTPUT BLUE
6BIT
F x /2
CPU BLANK
OUTPUT CLOCK
HSYNC
AD0-AD4 VSYNC
OSCIN
OSCOUT
VDD VSS RESETB TEST
P2.0/CLO XI XO
WATCH DOG
TIMER
BASIC
INTERVAL
TIMER
TIMER/ EVENT
COUNTER 0
INTERRUPT
CONTROL
PWM
14 BIT
PWM
8 BIT
PWM
6 BIT
4-BIT
ADC
DMC42CORE
PROGRAM
(8192 x 10BITS)
DATA
MEMORY
(512 x 4BITS)
CLOCK
OUTPUT
CONTROL
CLOCK
DIVIDER
CLOCK
GENERA-
TOR
STAND
-BY
CONTROL
PORT 0
PORT 1
PORTC
PORT 8
PORT 6
PORT 3
PORT 2
PWMOT
OSD
P0.0-
P1.0-P1.3
PC.0-
P8.0-P8.3
P6.0-
P3.0-P3.3
P2.0-P2.3
PWMOT
B
TIMER/ EVENT
COUNTER 1
IRQBT
IRQTC0
IRQTC1
n
BLOCK DIAGRAM
4
4Bit Single Chip Microcontroller
DMC42C2008
PROGRAM MEMORY (ROM)
VECTOR ADDRESS
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
5 IRQTC1
Timer Event Counter 1
0060H 000CH
6 IRQ2
External interrupt 2
000EH
0010H
8 IRQ3
External interrupt 3
0012H 0014H
10 IRQAD
8 bit ADC
8K Byte
0016H 0018H
12 IRQWT
Watch Timer
001AH 001CH
1FFFH 001EH
15 -
reserved
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
200~27F
PAGE2
OSD RAM
(256 Byte)
MP=2
SPS=2
$FF $00 PAGE3
I/O
(256 Byte)
MEMORY
MP=3
; Usable
$FF
5
4Bit Single Chip Microcontroller
DMC42C2008
I/O ADDRESS MAP
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)
326H T/E counter mode register 1 W 326H.3 clock source select. counter start 00
327H (TMOD1) (ch1)
328H T/E counter register 1 R readable count value (ch1) 00
329H (TMCNT1) 32AH T/E reference register 1 W count reference register (ch1) FF 32BH (TMREF1)
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
338H Watch dog timer mode register W clock source sel. timer EN/DIS 00
(WDTM) 339H WDTF R WDT flag 0 340H Pwm mode register0(PWMOD0) R/W 6.14bit pwm counter EN/DIS 0 342H Pwm0 data register high W O 14bit pwm data register high 00 343H (PWMODH) 344H Pwm0 data register low W O 14bit pwm data register low 00 345H (PWMODL) 346H Pwm channel start mode register W O 6bit*6ch, 14bit pwm start EN/DIS 00 347H (PWMSM) 348H Pwm60 data register (PWMDR0) W O 6bit pwm channel 0 data register 00 349H
34AH Pwm61 data register (PWMDR1) W O 6bit pwm channel 1 data register 00 34BH 34CH Pwm62 data register (PWMDR2) W O 6bit pwm channel 2 data register 00 34DH
354H PWM3 PWM2 PWM1 PWM0 W O pwm output enable mode 00 355H PWM6 PWM5 PWM4 register (PWM0 = 14bit) 358H Pwm mode register 1 (PWMOD1) W O 8bit pwm control
35AH Pwm80 data register (PWMDR80) W O 8bit pwm channel 0 data register 00 35BH
6
4Bit Single Chip Microcontroller
DMC42C2008
ADDRESS Hardware Module Name R/W Addressing Unit REMARKS INITIAL
b3 b2 b1 b0 1 bit 4 bit 8bit VALUE
35CH Pwm81 data register (PWMDR81) W O 8bit pwm channel 1 data register 00 35DH 35EH Pwm82 data register (PWMDR82) W O 8bit pwm channel 2 data register 00 35FH
360H 1'st line horizontal display mode W O 1'st line horizontal position set. 00 361H register (HDPM1) 000000h-111111h 362H 1'st line vertical display mode W O 1'st line vertical position set. 00 363H register (VDPM1) 000000h-111111h 364H H/V character size mode W O 1, 2, 3, 4Tc/dot 00 365H register (HVSMOD) 1, 2, 3, 4H/dot 366H Display mode & background color W O dspon, R/G/B control 00 367H register (DBCM) 368H W O osd out enable 0
36AH I/O polarity control register W O Y(BLK), R/G/B output, H/Vsync 00 36BH (POLCON) control 36CH 2'nd line horizontal display mode W O 2'nd line horizoncal position set. 00 36DH register (HDPM2) 000011h-111111h 36EH 2'nd line vertical display mode W O 2'nd line vertical position set. 00 36FH register (VDPM2) 000000h-111111h
380H Adc4 mode register (ADCM4) W O Reference voltage setting. start 00 381H 382H Adc4 output latch (ADCOL4) R O conversion data 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
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 3DAH R/W O O Interrupt EN/IRQ flag 0
3DBH IETC1 IRQTC1 IETC0 IRQTC0 R/W O O Interrupt EN/IRQ flag 0 3DCH IE1 IRQ1 IE0 IRQ0 R/W O O Interrupt EN/IRQ flag 0 3DDH R/W O O Interrupt EN/IRQ flag 0 3DEH IE3 IRQ3 R/W O O Interrupt EN/IRQ flag 0
7
4Bit Single Chip Microcontroller
DMC42C2008
ADDRESS Hardware Module Name R/W Addressing Unit REMARKS INITIAL
b3 b2 b1 b0 1 bit 4 bit 8bit VALUE
3E0H PW03 PW02 PW01 PW00 W O port 0, 1 mode register (PMGA) 00
3E1H PW13 PW12 PW11 PW10
3E2H PW23 PW22 PW21 PW20 W O port 2, 3 mode register (PMGB) 00
3E3H PW33 PW32 PW31 PW30
3E6H PW63 PW62 PW61 PW60 W O port 6, 7 mode register (PMGD) 00
3E7H PW73 PW72 PW71 PW70
3E8H PW83 PW82 PW81 PW80 W O port 8, 9 mode register (PMGE) 00
3E9H PW93 PW92 PW91 PW90 3ECH PWC3 PWC2 PWC1 PWC0 W O port c, d mode register (PMGG) 00 3EDH PWD3 PWD2 PWD1 PWD0
3F0H PORT0 (R0) R/W O O R0 Port Data Regiter 0
3F1H PORT1 (R1) R/W O O R1 Port Data Regiter 0
3F2H PORT2 (R2) R/W O O R2 Port Data Regiter 0
3F3H PORT3 (R3) R/W O O R3 Port Data Regiter 0
3F6H PORT6 (R6) R/W O O R6 Port Data Regiter 0
3F8H PORT8 (R8) R/W O O R8 Port Data Regiter 0 3FCH PORTC (RC) R/W O O RC Port Data Regiter 0
Loading...
+ 15 hidden pages