ChipFind - документация

Электронный компонент: MDT1015

Скачать:  PDF   ZIP
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.1 Ver1.1
MDT1015
1. General Description
This ROM-Based 8-bit micro-controller uses a fully static CMOS design technology combines
higher speed and smaller size with the low power and high noise immunity of CMOS.
On chip memory system includes 0.5 K bytes of ROM, and 32 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 : 512 words
u
Internal RAM size : 32 bytes
(24 general purpose, 8 special registers)
u
36 single word instructions
u
14-bit instructions
u
2-level stacks
u
Operating voltage : 2.3 V ~ 6.3 V
u
Operating frequency : 0 ~ 20 MHz
u
The fastest 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
4 oscillator start-up time :
150
s, 20 ms, 40 ms, 80 ms
u
8-bit real time clock/counter(RTCC) with 8-bit programmable prescaler
u
4 types of oscillator can be selected by code options :
RC
Low cost RC oscillator
LFXT
Low frequency crystal oscillator
XTAL
Standard crystal oscillator
HFXT
High frequency crystal oscillator
u
On-chip RC oscillator based Watchdog Timer(WDT) can be operated freely
u
Pull up resistors for the following pins :
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.2 Ver1.1
PA0~PA3, PB0~PB7,PC0~PC7, /MCLR, RTCC
u
Pull down resistors for the following pins :
PA0~PA3, PB0~PB7, PC0~PC7, RTCC
u
20 I/O pins with their own independent direction control
3. Applications
The application areas of this MDT1015 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
RTCC 1
28 /MCLR
V
dd
2
27 OSC1
N/C 3
26 OSC2
V
ss
4
25 PC7
N/C 5
24 PC6
PA0 6
23 PC5
PA1 7
22 PC4
PA2 8
21 PC3
PA3 9
20 PC2
PB0 10
19 PC1
PB1 11
18 PC0
PB2 12
17 PB7
PB3 13
16 PB6
PB4 14
15 PB5

5. Pin Function Description
Pin Name
I/O
Function Description
PA0~PA3
I/O
Port A, TTL input level
PB0~PB7
I/O
Port B, TTL input level
PC0~PC7
I/O
Port C, TTL input level
RTCC
I
Real Time Clock/Counter, Schmitt Trigger input levels
/MCLR
I
Master Clear, Schmitt Trigger input levels
OSC1
I
Oscillator Input
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.3 Ver1.1
Pin Name
I/O
Function Description
OSC2
O
Oscillator Output
V
dd
Power supply
V
ss
Ground
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
Port C
08~0F
Internal RAM, General Purpose Register
10~1F
Internal Memory Select Register

(1) IAR ( Indirect Address Register) : R0
(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
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.4 Ver1.1
(4) STATUS (Status register) : R3
Bit
Symbol
Function
0
1
2
3
4
7
--
5
C
HC
Z
PF
TF
----
Carry bit
Half Carry bit
Zero bit
Power loss Flag bit
Time overflow Flag bit
General purpose bit

(5) MSR (Memory Select Register) : R4
b7
b6
b5
b4
b3
b2
b1
b0


Read only "1"
Indirect Addressing Mode
(6) PORT A : R5
PA3~PA0, I/O Register
(7) PORT B : R6
PB7~PB0, I/O Register
(8) PORT C : R7
PC7~PC0, I/O Register

(9) 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
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.5 Ver1.1
Bit
Symbol
Function
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
(10) CPIO A, CPIO B, CPIO C (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.
(11) Configuration ROM
Bit 1
Bit 0
Oscillator Type
0
0
RC Oscillator
0
1
LFXT Oscillator
1
0
XTAL Oscillator
1
1
HFXT Oscillator
Bit 3
Bit 2
Oscillator Start-up Time
0
0
150
s
0
1
20 ms
1
0
40 ms
1
1
80 ms
Bit 4
Watchdog Timer control
0
Watchdog timer disable all the time
1
Watchdog timer enable all the time
(B) Program Memory
Address
Description
000-1FF
Program memory
1FF
The starting address of the power on, external reset
or WDT
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.6 Ver1.1

7. Reset Condition for all Registers
Register
Address
Power-On Reset
/MCLR or WDT Reset
IAR
00h
RTCC
01h
xxxx xxxx
uuuu uuuu
PC
02h
1111 1111
1111 1111
STATUS
03h
0001 1xxx
000# #uuu
MSR
04h
100x xxxx
100u uuuu
PORT A
05h
- - - - xxxx
- - - - uuuu
PORT B
06h
xxxx xxxx
uuuu uuuu
PORT C
07h
xxxx xxxx
uuuu uuuu
Note : u
unchanged, x
unknown, -
unimplemented, read as "0"
#
value depends on the condition of the following table
Condition
Status: bit 4
Status: bit 3
/MCLR reset (not during SLEEP)
u
u
/MCLR reset during SLEEP
1
0
WDT reset (not during SLEEP)
0
1
WDT reset during SLEEP
0
0

8. Instruction Set
Instruction Code
Mnemonic
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
010111 trrrrrrr
SWAPR R, t
Swap halves register [R(0~3)
R(4~7)]
t
None
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.7 Ver1.1
Instruction Code
Mnemonic
Operands
Function
Operating
Status
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
(R+/W+1
t)
C, HC, Z
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
R(7),
R(0)
C
C
010101 trrrrrrr
RLR R, t
Rotate left register
R(n)
r(n+1),
C
R(0),
R(7)
C
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
100nnn nnnnnnnn
LCALL n
Long CALL subroutine
n
PC,
PC+1
Stack
None
101nnn nnnnnnnn
LJUMP n
Long JUMP to address
n
PC
None
110000 nnnnnnnn
CALL n
Call subroutine n
PC,
PC+1
Stack
None
110001 iiiiiiii
RTIW 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
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.8 Ver1.1
TMODE : TMODE mode register
0
:
Working register
CPIO
: Control I/O port register
1 :
General register
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
(A) Operating Voltage & Frequency
Vdd
2.3 V ~ 6.3 V
Frequency
0 Hz ~ 20 MHz
(B) Input Voltage
@ V
dd
5.0 V, Temperature
25
Port
Min.
Max.
V
il
PA, PB, PC
RTCC, /MCLR
V
ss
V
ss
1.0 V
0.8 V
V
ih
PA, PB, PC
RTCC, /MCLR
2.0 V
3.4 V
V
dd
V
dd
Threshold Voltage :
Port A, Port B, Port C V
th
1.3 V
RTCC, /MCLR V
il
1.3 V, V
ih
3.0 V (Schmitt Trigger)
(C) Output Voltage
@ V
dd
5.0 V, Temperature
25
, the typical value as followings :
PA, PB, PC Port
I
oh
20.0 mA
V
oh
3.60 V
I
ol
20.0 mA
V
ol
0.35 V
I
oh
5.0 mA
V
oh
4.70 V
I
ol
5.0 mA
V
ol
0.08 V
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.9 Ver1.1
(D) Leakage Current
@ V
dd
5.0 V, Temperature
25
, the typical value as followings :
I
il
1.0
A (Max.)
I
ih
1.0
A (Max.)
(E) Sleep Current
@WDT
Disable, Temperature
25
, the typical value as followings :
V
dd
2.3 V ~ 6.3 V, I
dd
0.1
A
@WDT
Enable, Temperature
25
, the typical value as followings :
dd
2.3 V
I
dd
1.0
A
V
dd
3.0 V
I
dd
2.0
A
V
dd
4.0 V
I
dd
5.0
A
V
dd
5.0 V
I
dd
10.0
A
V
dd
6.3 V
I
dd
20.0
A

(F) Operating Current / Voltage

Temperature
25
, the typical value as followings :
(i) OSC Type
RC ; WDT
Enable; @ V
dd
5.0 V
Cext. (F)
Rext. (Ohm)
Frequency (Hz)
Current (A)
4.7 K
11.76 M
1.90 m
10.0 K
7.40 M
1.12 m
3P
47.0 K
1.96 M
315.00
100.0 K
952.50 K
175.00
300.0 K
310.00 K
90.00
470.0 K
196.1 K
75.00
4.7 K
6.45 M
950.0
10.0 K
3.70 M
540.0
20P
47.0 K
869.60 K
160.0
100.0 K
416.80 K
105.0
300.0 K
137.90 K
65.0
470.0 K
88.88 K
60.0
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.10 Ver1.1
Cext. (F)
Rext. (Ohm)
Frequency (Hz)
Current (A)
4.7 K
2.00 M
325.0
10.0 K
1.11 M
190.0
100P
47.0 K
256.40 K
80.0
100.0 K
121.20 K
65.0
300.0 K
40.00 K
55.0
470.0 K
25.60 K
50.0
4.7 K
833.20 K
160.0
10.0 K
454.00 K
105.0
300P
47.0 K
105.30 K
65.0
100.0 K
50.00 K
55.0
300.0 K
16.60 K
50.0
470.0 K
10.50 K
49.0
(ii) OSC Type
LF (C=20 p); WDT
Disable
Voltage/Frequency
32 K
455 K
1 M
Sleep
2.3 V
4.0
A
X
X
0.1
A
3.0 V
7.0
A
48.0
A
X
0.1
A
4.0 V
10.0
A
70.0
A
150.0
A
0.1
A
5.0 V
15.0
A
105.0
A
210.0
A
0.1
A
6.3 V
30.0
A
150.0
A
290.0
A
0.1
A
(iii) OSC Type
XT (C=10 p); WDT
Enable
Voltage/Frequency
1 M
4 M
10 M
Sleep
2.1 V
70.0
A
220.0
A
500.00
A
0.1
A
3.0 V
130.0
A
365.0
A
820.00
A
2.0
A
4.0 V
250.0
A
560.0
A
1.20 mA
5.0
A
5.0 V
470.0
A
780.0
A
1.70 mA
10.0
A
6.3 V
530.0
A
1.2 mA
2.30 mA
20.0
A
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.11 Ver1.1
(iv) OSC Type
HF (C=10 p); WDT
Enable
Voltage/Frequency
4 M
10 M
20 M
Sleep
2.1 V
230.0
A
530.00
A 970.00
A
0.1
A
3.0 V
400.0
A
890.00
A
1.60 mA
2.0
A
4.0 V
620.0
A
1.30 mA
2.40 mA
5.0
A
5.0 V
890.0
A
1.90 mA
3.40 mA
10.0
A
6.3 V
1.3 mA
2.60 mA
5.00 mA
20.0
A
(G) Pull Resistance
@ Input Mode : V
dd
3.0 V
PORT
Pull-High Resistance R
hi
370.0 KOhm
Pull-Low Resistance R
lo
370.0 KOhm
RTCC
Pull-High Resistance R
hi
370.0 KOhm
Pull-Low Resistance R
lo
370.0 KOhm
/MCLR
Pull-High Resistance R
hi
370.0 KOhm

@ Input Mode : V
dd
5.0 V
PORT
Pull-High Resistance R
hi
170.0 KOhm
Pull-Low Resistance R
lo
170.0 KOhm
RTCC
Pull-High Resistance R
hi
170.0 KOhm
Pull-Low Resistance R
lo
170.0 KOhm
/MCLR
Pull-High Resistance R
hi
170.0 KOhm

p.s. : It is only a reference value for the Pull High/Low Resistance, and the accurate
value of the Resistance depends on the various parameter of the Process.
But the variation of the value will be not more than 20%.

(H) Power Edge-detector Reset Voltage (Not in Sleep Mode), @ V
dd
5.0 V
V
pr
1.1 ~1.3 V
V
pr
V
dd
(Power Supply)
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.12 Ver1.1
(I) The basic WDT time-out cycle time
@Temperature
25
, the typical value as followings :
Voltage (V)
Basic WDT time-out cycle time (ms)
2.3
29.84
3.0
26.88
4.0
23.91
5.0
20.70
6.3
18.98
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.13 Ver1.1
10. Port A ,Port B and Port C Equivalent Circuit





Working Register
I/O Control
Write
Data Bus
Read
Data O/P
Latch
D
CK
D
I/O
Control
Latch
CK
Q
B
Q
Q
CK
Q
B
D
Input Resistor
MOS Pull-Down
(Long Channel)
Port I/O Pin
Information Sheet Pull Hi/Lo
Selection
Data I/P
Latch
TTL Input Level
MOS Pull-Hi
(Long Channel)
Data I/P
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.14 Ver1.1
11. MCLRB and RTCC Input Equivalent Circuit
R
1 K
Schmitt Trigger
MCLRB
Information Sheet Pull Hi/Lo Selection
MOS Pull Hi
(Long Channel)
R
1 K
Schmitt Trigger
RTCC
Information Sheet Pull Hi/Lo Selection
MOS Pull Hi
(Long Channel)
MOS Pull Low
(Long Channel)
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.15 Ver1.1
12. Block Diagram


Stack Two Levels
Program Counters
Oscillator Circuit
Power on Reset
Power Down Reset
8-bit Timer/Counter
ROM
512
14
Instruction
Register
Instruction
Decoder
Working Register
ALU
Prescale
RAM
24
8
Special Register
Control Circuit
Status Register
WDT/OST
Timer
Port A
Port B
Port C
OSC1 OSC2
MCLR
Data 8-bit
RTCC
9 bits
9 bits
14 bits
Port
PA0~PA3
4 bits
Port
PB0~PB7
8 bits
Port
PC0~PC7
8 bits
D0~D7
MDT1015
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.16 Ver1.1
13. External Capacitor Selection For Crystal Oscillator
@ V
dd
5.0 V
Osc. Type
Resonator Freq.
Capacity Range
20 MHz
10 pF~30 pF
HF
10 MHz
20 pF ~50 pF
4 MHz
20 pF ~50 pF
10 MHz
10 pF ~30 pF
XT
4 MHz
20 pF ~50 pF
1 MHz
20 pF ~50 pF
1 MHz
3 pF ~10 pF
LF
455 K
20 pF ~50 pF
32 K
20 pF ~30 pF
MDT1015
OSC1
OSC2
C
C
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.