MDT10P43
1. General Description
This 8-bit Micro-controller with built-in carrier
generator uses a fully static CMOS technology to
achieve high speed, small size, low power and
high noise immunity.
On chip memory includes 512 words of ROM,
and 28 bytes of static RAM.
3. Applications
l
Remote controller
4. Pin Assignment
※
P – PDIP, S - PSOP
2. Features
u
u
u
u
Fully COMS static design
8-bit data bus
On chip ROM size : 512 words
Internal RAM size : 28 bytes
(24general purpose registers, 4 special
registers)
u
u
u
u
u
34 single word instructions
14-bit instructions
2-level stacks
Operating voltage : 2.0V ~ 6 V
Addressing modes include direct, indirect
and relative addressing modes
u
u
Power-on Reset
System clock : 455KHz crystal (OSC1 cap
50P; OSC2 cap 100P)
u
PA0-7 : 8 input only pins with pull-high
resistor and input low wakeup detect circuit.
u
u
u
PB0 : CMOS output.
PB1~7 : Seven open drain output pins.
Built in remote control carrier synthesizer
Fosc/8 (56.9K) or Fosc/12 (37.9K) by
firmware setting.
u
2048 clocks for oscillator start up time.
MDT10P43P11, MDT10P43S11
PA2
PA3
PA6
PA7
VSS
PB0
PB1
PB2
PB3
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
MDT10P43P21, MDT10P43S21
PA5
PA2
PA3
PA6
PA7
VSS
PB0
PB1
PB2
PB3
1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
PA4
PA1
PA0
OSC1
OSC2
VDD
PB7
PB6
PB5
PB4
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
2005.8 Ver. 1.3
MDT10P43
5. Block Diagram
Stack Two
Levels
9 bits
9 bits
ROM
512×14
14
bits
RAM
24×8
Port A
Port
PA0~PA7
8 bits
Program Counters
Instruction
Register
Special Register
Port PB0
D0~D7
Port B
Instruction
Decoder
External XT
Data
8bit
Port
PB1 ~PB7
Control Circuit
Power on Reset
Power Down Reset
Working Register
ALU
Status Register
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
2005.8 Ver. 1.3
MDT10P43
6. Pin Function Description
Pin Name
PA0~PA7
I/O
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
PB1~PB7
OSC1
OSC2
Vdd
Vss
O
O
I
O
CMOS output pin
Port B open drain output pins, 50K ohm pull-high resistor.
Crystal oscillation input pin
Crystal oscillation output pin
Power supply
Ground
7. Memory Map
(A) Register Map
Address
00
01
02
03
04
05
06
Description
Indirect Addressing Register
Unimplemented
PC
STATUS
MSR
Port A (Input Only)
Port B output register (Using “CPIO PB“ Instruction change
to PB Output data only)
07
08~1F
Unimplemented
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
2005.8 Ver. 1.3
MDT10P43
(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
0
1
2
3
4
Symbol
C
HC
Z
PF
LPT
Carry bit
Half Carry bit
Zero bit
Power loss Flag bit
Low power detect
=0 : Vdd is lower than 2.3 ~ 2.5V
=1 : Vdd is higher than 2.3 ~ 2.5V
5
6—7
——
——
General purpose bit
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 (1/3 – Hi ; 2/3 - Low)
(4) MSR (Memory Select Register) : R4
(5) PORT A : R5
Bit 7-0 : Port A data input
(6) CPIO PB : R6
Bit 7-1 : PB7-PB1 output register (open drain output)
Bit 0
: PB0 output register (CMOS output)
Function
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
2005.8 Ver. 1.3
MDT10P43
8. Reset Condition for all Registers
Register
IAR
PC
STATUS
MSR
PB Output data
Address
00h
02h
03h
04h
06h
Power-On Reset
-
1111 1111
0001 1xxx
111x xxxx
1111 1110
Note : “ x “=unknown, “ – “=unimplemented, read as “0”
10. Instruction Set
Mnemonic
Operands
NOP
SLEEP
RET
CPIO R
STWR R
LDR R, t
LDWI I
SWAPR R, t
INCR R, t
INCRSZ R, t
ADDWR R, t
SUBWR R, t
DECR R, t
DECRSZ R, t
ANDWR R, t
ANDWI i
IORWR R, t
IORWI i
XORWR R, t
Instruction Code
010000 00000000
010000 00000010
010000 00000100
010000 00000rrr
010001 1rrrrrrr
011000 trrrrrrr
111010 iiiiiiii
010111 trrrrrrr
011001 trrrrrrr
011010 trrrrrrr
011011 trrrrrrr
011100 trrrrrrr
011101 trrrrrrr
011110 trrrrrrr
010010 trrrrrrr
110100 iiiiiiii
010011 trrrrrrr
110101 iiiiiiii
010100 trrrrrrr
Function
No operation
Sleep mode
Return
Control I/O port register
Store W to register
Load register
Load immediate to W
Swap halves register
Increment register
Increment register, skip if zero
Add W and register
Subtract W from register
Decrement register
Decrement register, skip if zero
AND W and register
AND W and immediate
Inclu. OR W and register
Inclu. OR W and immediate
Exclu. OR W and register
Operating
None
0→WT,
stop OSC
Stack→PC
W→CPIO
W→R
R→t
I→W
[R(0~3)
↔
R(4~7)]→t
R + 1→t
R + 1→t
W + R→t
R
﹣W→t
(R+/W+1→t)
R
﹣1→t
R
﹣1→t
R
∩
W→t
i
∩
W→W
R
∪
W→t
i
∪
W→W
R
♁
W→t
r
Status
TF, PF
None
None
None
Z
None
None
Z
None
C, HC, Z
C, HC, Z
Z
None
Z
Z
Z
Z
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
2005.8 Ver. 1.3