ChipFind - Datasheet

Part Number MDT10C21

Download:  PDF   ZIP
MDT10C21
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.1 Ver1.1
MDT10C21
1. General Description

This ROM-Based 8-bit micro-controller uses a fully static CMOS design technology combines
higher speeds and smaller size with the low power and high noise immunity of CMOS.
On chip memory system includes 0.5 K bytes MDT10C21A1P(20 pins, PDIP, SOP),
MDT10C21A2K(22 pins, SKINNY only), and MDT10C21A3S(24 pins, SOP ) of ROM, and 73
bytes of static RAM.
2. Features

The followings are some of the features on the hardware and software :
u
Fully COMS static design
u
8-bit data bus
u
On chip ROM size : 0.5 k words
u
Internal RAM size : 80 bytes
(73 general purpose registers, 7 special registers)
u
36 single word instructions
u
14-bit instructions
u
2-level stacks
u
Operating voltage : 2.3V ~ 6.3 V
u
Operating frequency : 0 ~ 20 MHz
u
The most fast execution time is 200 ns under 20 MHz in all single cycle instructions except
the branch instruction
u
Addressing modes include direct, indirect and relative addressing modes
u
Power-on Reset
u
Power edge-detector Reset
u
Sleep Mode for power saving
u
8-bit real time clock/counter(RTCC) with 8-bit programmable prescaler
u
4 types of oscillator can be selected by code option:
RC
Low cost RC oscillator
LFXT
Low frequency crystal oscillator
XTAL
Standard crystal oscillator
HFXT
High frequency crystal oscillator
u
4 oscillator start-up time can be selected by code option:
150
µ
s, 20 ms, 40 ms, 80 ms
u
Pull up resistors for the following pins
PA0~7,PB0~7,/MCLR ,RTCC
MDT10C21
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.2 Ver1.1
u
Pull down resistors for the following pins
PA0~7,PB0~7,RTCC
u
On-chip RC oscillator based Watchdog Timer(WDT) can be operated freely
u
14 I/O(for 20 pins package),16 I/O(for 22,24 pins package) pins with their own
independent direction control
3. Applications

The application areas of this MDT10C21 range from appliance motor control and high speed
automotive to low power remote transmitters/receivers, pointing devices, and
telecommunications processors, such as Remote controller, small instruments, chargers, toy,
automobile and PC peripheral ... etc.
4. Pin Assignment
P
PDIP,S
SOP, K
SKINNY A1
20PINS, A2
22PINS, A3
24PINS)
10C21A3S
10C21A2K
NC 1
24 NC
PA7 1
22 PA6
PA7 2
23 PA6
PA5 2
21 PA4
PA5 3
22 PA4
PA2 3
20 PA1
PA2 4
21 PA1
PA3 4
19 PA0
PA3 5
20 PA0
RTCC 5
18 OSC1
RTCC 6
19 OSC1
/MCLR 6
17 OSC2
/MCLR 7
18 OSC2
V
ss
7
16 V
dd
V
ss
8
17 V
dd
PB0 8
15 PB7
PB0 9
16 PB7
PB1 9
14 PB6
PB1 10
15 PB6
PB2 10
13 PB5
PB2 11
14 PB5
PB3 11
12 PB4
PB3 12
13 PB4
10C21A1P,10C21A1S
PA5 1
20 PA4
PA2 2
19 PA1
PA3 3
18 PA0
RTCC 4
17 OSC1
/MCLR 5
16 OSC2
V
ss
6
15 V
dd
PB0 7
14 PB7
PB1 8
13 PB6
PB2 9
12 PB5
PB3 10
11 PB4
MDT10C21
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.3 Ver1.1
5. Pin Function Description
Pin Name
I/O
Function Description
PA0~PA7
I/O
Port A, TTL input level for 22, 24 pins package
PA0~PA5
I/O
Port A, TTL input level for 20 pins package
PB0~PB7
I/O
Port B, TTL input level for 20, 22, 24 pins package
RTCC
I
Real Time Clock/Counter, Schmitt Trigger input levels
/MCLR
I
Master Clear, Schmitt Trigger input levels
OSC1
I
Oscillator Input
OSC2
O
Oscillator Output
V
dd
Power supply
V
ss
Ground
NC
Unused,do not connect
6. Memory Map

(A) Register Map
Address
Description
00
Indirect Addressing Register
01
RTCC
02
PC
03
STATUS
04
MSR
05
Port A
06
Port B
07~0F
Internal RAM, General Purpose Register
10~1F
Internal Memory Select Register
30~3F
Internal Memory Select Register
50~5F
Internal Memory Select Register
70~7F
Internal Memory Select Register
(1) IAR ( Indirect Address Register) : R0
MDT10C21
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.4 Ver1.1
(2) RTCC (Real Time Counter/Counter Register) : R1

(3) PC (Program Counter) : R2
Write PC, CALL --- always 0
LJUMP, JUMP, LCALL --- from instruction word
RTIW, RET --- from STACK
A8
A7~A0


Write PC --- from ALU
LJUMP, JUMP, LCALL, CALL --- from instruction word
RTIW, RET --- from STACK

(4) STATUS (Status register) : R3
Bit
Symbol
Function
0
1
2
3
4
5-7
C
HC
Z
PF
TF
----
Carry bit
Half Carry bit
Zero bit
Power loss Flag bit
Time overflow Flag bit
General purpose bits

(5) MSR (Memory Select Register) : R4
Memory Select Register :
00 : 10~1F
01 : 30~3F
10 : 50~5F
11 : 70~7F
b7
b6
b5
b4
b3
b2
b1
b0

Read only "1"
Indirect Addressing Mode
MDT10C21
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.5 Ver1.1
(6) PORT A : R5
PA7~PA0, I/O Register for 22, 24 pins
PA5~PA0, I/O Register for 20 pins

(7) PORT B : R6
PB7~PB0, I/O Register

(8) TMR (Time Mode Register)
Bit
Symbol
Function
Prescaler Value
RTCC rate
WDT rate



2
--
0



PS2
--
0
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
1 : 2
1 : 4
1 : 8
1 : 16
1 : 32
1 : 64
1 : 128
1 : 256
1 : 1
1 : 2
1 : 4
1 : 8
1 : 16
1 : 32
1 : 64
1 : 128
3
PSC
Prescaler assignment bit :
0
--
RTCC
1
--
Watchdog Timer
4
TCE
RTCC signal Edge :
0
--
Increment on low-to-high transition on RTCC pin
1
--
Increment on high-to-low transition on RTCC pin
5
TCS
RTCC signal set :
0
--
Internal instruction cycle clock
1
--
Transition on RTCC pin

(9) CPIO A, CPIO B (Control Port I/O Mode Register)
The CPIO register is "write-only"
"0", I/O pin in output mode;
"1", I/O pin in input mode.

(10) Configuration ROM :
Oscillator Type
Oscillator Start-up Time
RC Oscillator
150
µ
s
LFXT Oscillator
20 ms
XTAL Oscillator
40 ms
HFXT Oscillator
80 ms