English
Language : 

MDT1020 Datasheet, PDF (7/18 Pages) Micon Design Technology Corporation – 8-bit micro-controller
MDT1020
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
/MCLR reset (not during SLEEP)
/MCLR reset during SLEEP
WDT reset (not during SLEEP)
WDT reset during SLEEP
Status bit 4 Status bit 3
u
u
1
0
0
1
0
0
8. Instruction Set
Instruction Code Mnemonic
Operands
Function
010000 00000000 NOP
No operation
010000 00000001 CLRWT
Clear Watchdog timer
010000 00000010 SLEEP
Sleep mode
010000 00000011 TMODE
Load W to TMODE register
010000 00000100 RET
Return
010000 00000rrr CPIO R
Control I/O port register
010001 1rrrrrrr STWR R Store W to register
011000 trrrrrrr LDR R t Load register
111010 iiiiiiii
LDWI I
Load immediate to W
010111 trrrrrrr SWAPR R t Swap halves register
011001 trrrrrrr INCR R t Increment register
011010 trrrrrrr
INCRSZ R t Increment register skip if
zero
Instruction Code Mnemonic
Operands
Function
Operating
None
0 WT
0 WT,stop OSC
W TMODE
Stack PC
W CPIO r
WR
Rt
IW
[R(0~3) ↔
R(4~7)] t
R+1 t
R+1 t
Operating
Status
TF PF
TF PF
None
None
None
None
Z
None
None
Z
None
Status
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.7
2005/6 Ver1.4