English
Language : 

MDT10P5701 Datasheet, PDF (7/10 Pages) Micon Design Technology Corporation – 8-bit micro-controller
MDT10P5701
ADS1(A/D Status Register):9FH
Bit Symbol
Function
0 0 0:PA0124 analog input,VREF=VDD.
2~0 PAVM[2:0]
0 0 1:PA024 analog input,VREF=PA1.
0 1 0:PA012 analog input,VREF=VDD.
0 1 1:PA02 analog input,VREF=PA1.
1 0 0:PA01 analog input,VREF=VDD.
1 0 1:PA0 analog input,VREF=PA1.
1 1 0:PA0 analog input,VREF=VDD.
1 1 1:PA0.1.2.3.4 digital I/O.
7
ADFM
0: Align to the left, Bit5~bit0 of ADRESL are read as “0”
1: Align to the right, Bit7~bit2 of ADRES are read as “0”
12. Instruction Set
Instruction Code Instruction
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
W→TMODE
None
010000 00000100 RET
Return from subroutine
Stack→PC
None
010000 00000rrr CPIO R
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
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
011101 trrrrrrr
011110 trrrrrrr
SUBWR R, t Subtract W from register
DECR R, t Decrement register
DECRSZ R, t Decrement register, skip if zero
R-W→t or (R+/W+1→t)
R ﹣1→t
R ﹣1→t
C,HC,Z
Z
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
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P.7
2010/09 VER 1.1