|
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
|
▷ |