MDTIC MDT10P43 8-bit micro-controller Datasheet

MDT10P43 Spec
3. Applications
Ci 1. General Description
l
Remote controller
This 8-bit Micro-controller with built-in carrier
generator uses a fully static CMOS technology to
4. Pin Assignment
achieve high speed, small size, low power and
high noise immunity.
On chip memory includes 512 words of ROM,
※ P – PDIP, S - PSOP
and 29 bytes of static RAM.
MDT10P43P21, MDT10P43S21
2. Features
u
Fully COMS static design
u
8-bit data bus
u
On chip ROM size : 512 words
u
Internal RAM size : 28 bytes
PA5
PA2
PA3
PA6
PA7
VSS
PB0
PB1
PB2
PB3
(24general purpose registers, 4 special
registers)
u
34 single word instructions
u
14-bit instructions
u
2-level stacks
u
Operating voltage : 2.0V ~ 6 V
u
Addressing modes include direct, indirect
and relative addressing modes
u
Power-on Reset
u
System clock : 455KHz crystal (OSC1 cap
PA2
PA3
PA6
PA7
VSS
PB0
PB1
PB2
PB3
PA0-7 : 8 input only pins with pull-high
resistor and input low detect circuit.
u
PB0 : CMOS output.
u
PB1 : 7 open drain output pins.
u
Built in remote control carrier synthesizer
20
19
18
17
16
15
14
13
12
11
PA4
PA1
PA0
OSC1
OSC2
VDD
PB7
PB6
PB5
PB4
MDT10P43P11, MDT10P43S11
50P; OSC2 cap 100P)
u
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
PA1
PA0
OSC1
OSC2
VDD
PB7
PB6
PB5
PB4
Fosc/8 (56.9K) or Fosc/12 (37.9K) by
firmware setting.
u
2048 clocks for oscillator start up time.
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
1 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
5. Block Diagram
S ta c k T w o
Le v e ls
R AM
2 4 ×8
RO M
5 1 2 ×1 4
P o rt A
9 b its
P ro g ra m
C o u n te rs
9 b its
P o rt
P A0 ~ P A
8 b it s
1 4 b its
In s tru c tio n
R e g is te r
S p e c ia l R e g is te r
P or t
PB0
D0 ~D 7
P o rt B
In s tru c tio n
Decoder
C o n tro l
C irc u it
E xte rn a l X T
D a ta
8 b it
P o we r o n R e s e t
P ow e r Do w n
R ese t
W o rk in g R e g is te r
S ta tu s R e g is te r
A LU
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
2 of 10
2004/12/2 Ver. 1.0
P ort
P B1 ~P B7
MDT10P43 Spec
6. Pin Function Description
Pin Name
I/O
PA0~PA7
I
Function Description
Port A, TTL input level. Built in 50K ohm pull-high resistor. In sleep mode,
a high-to-low change on any pin will cause chip reset.
PB0
O
CMOS output pin
PB1~PB7
O
Port B open drain output pins, 50K ohm pull-high resistor.
OSC1
I
OSC2
O
Crystal oscillation input pin
Crystal oscillation output pin
Vdd
Power supply
Vss
Ground
7. Memory Map
(A) Register Map
Address
Description
00
Indirect Addressing Register
01
Unimplemented
02
PC
03
STATUS
04
MSR
05
Port A
06
Unimplemented
07
Unimplemented
08~1F
Internal RAM, General Purpose Register
(1) IAR ( Indirect Address Register) : R0
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
3 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
(2) PC (Program Counter) : R2
Write PC, CALL --- always 0
LJUMP, JUMP, LCALL --- from instruction word
RTIW, RET --- from STACK
A9
A8
A7~A0
Write PC, JUMP, CALL --- from STATUS b5
LJUMP, LCALL --- from instruction word
RTIW, RET --- from STACK
Write PC --- from ALU
LJUMP, JUMP, LCALL, CALL --- from instruction word
RTIW, RET --- from STACK
(3) 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
LPT
Low power detect
5
——
General purpose bit
6—7
——
Carrier frequency control bits
=00 No carrier (default)
=01 Fosc/8, 1/2 duty
=10 Fosc/12, 1/2 duty
=11 Fosc/12, 1/3 duty
(4) MSR (Memory Select Register) : R4
(5) PORT A : R5
Bit 7-0 : Port A data input
(6) TRIS PB :
Bit 7-1 : PB7-PB1 output register (open drain output)
Bit 0
: PB0 output register (CMOS output)
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
4 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
8. Reset Condition for all Registers
Register
Address
Power-On Reset
IAR
00h
-
PC
02h
1111 1111
STATUS
03h
0001 1xxx
MSR
04h
111x xxxx
TRIS B
06h
1111 1110
Note : “ x “=unknown, “ – “=unimplemented, read as “0”
10. Instruction Set
Instruction Code
Mnemonic
Operands
Function
Operating
010000 00000000
NOP
No operation
None
010000 00000010
SLEEP
Sleep mode
0→WT,
Status
TF, PF
stop OSC
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
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
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
5 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
Instruction Code
Mnemonic
Operands
Function
Operating
Status
011111 trrrrrrr
COMR R, t
Complement register
/R→t
Z
010110 trrrrrrr
RRR
Rotate right register
R(n) →R(n-1), C
→R(7),
C
R, t
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
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
R
PC+1→Stack
1010nn nnnnnnnn
LJUMP n
Long JUMP to address
n→PC
None
110000 nnnnnnnn
CALL
Call subroutine
n→PC,
None
n
PC+1→Stack
110001 iiiiiiii
RTIW
i
Return, place immediate to W
Stack→PC,
None
i→W
11001n nnnnnnnn
JUMP
n
JUMP to address
n→PC
None
Note :
W
CPIO
HC
Z
C
PF
PC
OSC
Inclu.
Exclu.
AND
:
:
:
:
:
:
:
:
:
:
:
Working register
Control I/O port register
Half carry
Zero flag
Carry flag
Power loss flag
Program Counter
Oscillator
Inclusive ‘∪’
Exclusive ‘⊕’
Logic AND ‘∩’
b :
t :
R
i
n
/
x
Bit position
Target
0 : Working register
1 : General register
:
:
:
:
:
General register address
Immediate data ( 8 bits )
Immediate address
Complement
Don’t care
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
6 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
11. Electrical Characteristics
(Operating temperature at 25℃).
Sym
Description
Condition
Max
Unit
2.3
5.5
V
Vdd=5V
-0.6
1.0
V
Vdd=5V
2.0
Vdd
V
+/-1
µA
Vdd Operating voltage
VIL
Typ
Input Low Voltage
PA
VIH
Min
Input high Voltage
PA
IIL
Input leakage current
VOL
Output Low Voltage
PB
Vdd=5V
Vdd=5V, IOL=20mA
0.5
V
Vdd=5V, IOL=5mA
0.2
V
Vdd=5V, IOH= -20mA
4.0
V
Vdd=5V, IOH= -5mA
4.7
V
VOH Output High Voltage
PB0
Vpr
Power Edge-detector Reset
1.5
1.9
V
Voltage
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
7 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
12. PA0 ~ PA7 Equivalent Circuit
Sleep
Input low
wake_up
PA0~7: Pull_Hi50K
Data Bus
TTL
InputResistor
Read
TTLInputLevel
Port
Input Pad
13. (A) PB0 Equivalent Circuit
Carrier
Fosc/12
Fosc/ 8
D
TRIS
C
Reset
RB
Q
DFFRA
Latch
Port
Output Pad
QB
Data
Bus
Read
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
8 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
(B) PB1~7 Equivalent Circuit
D
TRIS
C
Reset
PB
Q
PB1~7:
Pull_Hi 50K
DFFPA
Latch
QB
Port
Output Pad
Data
Bus
Read
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
9 of 10
2004/12/2 Ver. 1.0
MDT10P43 Spec
This specification is subject to be changed without notice. Please visit our web site for the most updated information.
http://www.mdtic.com.tw
10 of 10
2004/12/2 Ver. 1.0
Similar pages