MDT2005EP
MDT2005EP
MDT2005EP
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw P. 1 2006/4 VER1.1
MDT2005(JG)
4. Pin Assignment
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw P. 2 2006/4 VER1.1
MDT2005(JG)
6. Memory Map
Address Description
00 Indirect Addressing Register
01 RTCC
02 PC
03 STATUS
04 MSR
05 Port A
06 Port B
07~1F Internal RAM, General Purpose Register
A9 A8 A7~A0
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 2 2006/4 VER1.1
MDT2005(JG)
(4) STATUS (Status register) : R3
Bit Symbol Function
0 C Carry bit
1 HC Half Carry bit
2 Z Zero bit
3 PF Power loss Flag bit
4 TF Time overflow Flag bit
5-7 General purpose bit
(6) PORT A : R5
(7) PORT B : R6
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 3 2006/4 VER1.1
MDT2005(JG)
(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.
The default EPROM security is weak disable. Once the IC was set in enable or disable, it’s
forbidden to set in disable or enable again.
Address Description
000-1FF Program memory for MDT2005
1FF The starting address of the power on, external
reset or WDT for MDT2005
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 4 2006/4 VER1.1
MDT2005(JG)
8. Instruction Set
Mnemonic
Instruction Code Operands Function Operating Status
010000 00000000 NOP No operation None
010000 00000001 CLRWT Clear Watchdog timer 0 WT TF, PF
010000 00000010 SLEEP Sleep mode 0 WT, stop OSC TF, PF
010000 00000011 TMODE Load W to TMODE register W TMODE None
010000 00000100 RET Return Stack PC None
010000 00000rrr CPIO R Control I/O port register W CPIO r None
010001 1rrrrrrr STWR R Store W to register W R None
011000 trrrrrrr LDR R, t Load register R t Z
111010 iiiiiiii LDWI I Load immediate to W I W None
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 5 2006/4 VER1.1
MDT2005(JG)
Mnemonic
Instruction Code Operands Function Operating Status
010111 trrrrrrr SWAPR R, t Swap halves register [R(0~3) ↔ None
R(4~7)] t
011001 trrrrrrr INCR R, t Increment register R+1 t Z
011010 trrrrrrr INCRSZ R, t Increment register, skip if zero R+1 t None
011011 trrrrrrr ADDWR R, t Add W and register W+R t C, HC, Z
011100 trrrrrrr SUBWR R, t Subtract W from register R W t C, HC, Z
(R+/W+1 t)
011101 trrrrrrr DECR R, t Decrement register R 1 t Z
011110 trrrrrrr DECRSZ R, t Decrement register, skip if zero R 1 t None
010010 trrrrrrr ANDWR R, t AND W and register R W t Z
110100 iiiiiiii ANDWI i AND W and immediate i W W Z
010011 trrrrrrr IORWR R, t Inclu. OR W and register R W t Z
110101 iiiiiiii IORWI i Inclu. OR W and immediate i W W Z
010100 trrrrrrr XORWR R, t Exclu. OR W and register R ⊕ W t Z
110110 iiiiiiii XORWI i Exclu. OR W and immediate i ⊕ W W Z
011111 trrrrrrr COMR R, t Complement register /R t Z
010110 trrrrrrr RRR R, t Rotate right register R(n) R(n-1), C C
R(7), R(0) C
010101 trrrrrrr RLR R, t Rotate left register R(n) r(n+1),C C
R(0), R(7) C
010000 1xxxxxxx CLRW Clear working register 0 W Z
010001 0rrrrrrr CLRR R Clear register 0 R Z
0000bb brrrrrrr BCR R, b Bit clear 0 R(b) None
0010bb brrrrrrr BSR R, b Bit set 1 R(b) None
0001bb brrrrrrr BTSC R, b Bit Test, skip if clear Skip if R(b)=0 None
0011bb brrrrrrr BTSS R, b Bit Test, skip if set Skip if R(b)=1 None
1000nn nnnnnnnn LCALL n Long CALL subroutine n PC, None
PC+1 Stack
1010nn nnnnnnnn LJUMP n Long JUMP to address n PC None
110000 nnnnnnnn CALL n Call subroutine n PC, None
PC+1 Stack
110001 iiiiiiii RTWI i Return, place immediate to W Stack PC, i W None
11001n nnnnnnnn JUMP n JUMP to address n PC None
Note :
W : Working register b : Bit position
WT : Watchdog timer t : Target
TMODE : TMODE mode register 0 : Working register
CPIO : Control I/O port register 1 : General register
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 6 2006/4 VER1.1
MDT2005(JG)
TF : Timer overflow flag R : General register address
PF : Power loss flag C : Carry flag
PC : Program Counter HC : Half carry
OSC : Oscillator Z : Zero flag
Inclu. : Inclusive ‘ ’ / : Complement
Exclu. : Exclusive ‘♁’ x : Don’t care
AND : Logic AND ‘ ’ i : Immediate data ( 8 bits )
n : Immediate address
9. Electrical Characteristics
Frequency 0 Hz ~ 20 MHz
PA, PB Port
Ioh 20.0 mA Voh 3.7 V
Iol 20.0 mA Vol 0.5 V
Ioh 5.0 mA Voh 4.7 V
Iol 5.0 mA Vol 0.2 V
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 7 2006/4 VER1.1
MDT2005(JG)
(D) Leakage Current
@ Vdd 5.0 V, Temperature 25 , the typical value as followings :
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 8 2006/4 VER1.1
MDT2005(JG)
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 9 2006/4 VER1.1
MDT2005(JG)
(iii) OSC Type XT (OSC1&OSC2 Internal cap. about 10P); WDT Enable
Voltage/Frequency 1M 4M 10 M Sleep
2.1 V 35 µA 105 µA 240 µA 1.0 µA
3.0 V 80 µA 185 µA 380 µA 3 µA
4.0 V 155 µA 305 µA 600 µA 8 µA
5.0 V 260 µA 450 µA 880 µA 15 µA
6.0 V 410 µA 700 µA 1.2 mA 25 µA
(iv) OSC Type HF (OSC1&OSC2 Internal cap. about 10P); WDT Enable
Voltage/Frequency 4M 10 M 20 M Sleep
2.1 V 110 µA 240 µA @2.5V 550µA 1.0 µA
3.0 V 210 µA 410 µA 730 µA 3 µA
4.0 V 350 µA 640 µA 1.1 mA 8 µA
5.0 V 530 µA 950 µA 1.6 mA 15 µA
6.0 V 850 µA 1.3 mA 2.3 mA 25 µA
(G) Power Edge-detector Reset Voltage (Not in Sleep Mode), @ Vdd 5.0 V(PED Enable)
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 10 2006/4 VER1.1
MDT2005(JG)
(H) The basic WDT time-out cycle time
Working Register
D QB
Data I/P
I/O
Control
Latch
I/O Control
CK Q
Data O/P
Write Latch
CK Q
Data Bus
QB D
Input Resistor
Data I/P
TTL Input Level
Read Latch
CK
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 11 2006/4 VER1.1
MDT2005(JG)
11. MCLRB and RTCC Input Equivalent Circuit
R 1K
RTCC
Schmitt Trigger
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 12 2006/4 VER1.1
MDT2005(JG)
12. Block Diagram
9 or10 bits
9 or 10 bits 14 bits
D0~D7
Data 8-bit
RTCC
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 13 2006/4 VER1.1
MDT2005(JG)
13. External Capacitor Selection For Crystal Oscillator
@ Vdd 3.0V~5.0 V
32 K 10 pF ~30 pF 20 pF ~50 pF
To increase the stability of oscillator and the ability of anti-noise, the above values of the external capacitor range can
be recommended for reference, but the higher capacitance also increases the start-up time.
This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw
P. 14 2006/4 VER1.1