MDTIC MDT10C55B3P

MDT10C55B
1. General Description
Power-on Reset
Power edge-detector Reset
This ROM-Based 8-bit micro-controller uses a fully
Sleep Mode for power saving
static CMOS technology process to achieve higher
5 types of oscillator can be selected by
speed
programming option:
and
smaller
size
with
the
low
power
consump-tion and high noise immunity. On chip
INTRC-Internal 4 MHz RC oscillator
memory inclu-des 1K words of ROM, and 72 bytes of
RC-Low cost RC oscillator
static RAM.
LFXT-Low frequency crystal oscillator
XTAL-Standard crystal oscillator
2. Features
HFXT-High frequency crystal oscillator
The followings are some of the features on the
3 oscillator start-up time can be selected by
hardware and software :
programming option:
Fully CMOS static design
20 ms, 40 ms, 80 ms
8-bit data bus
8-bit real time clock/counter(RTCC) with 8-bit
On chip ROM size : 1K words
programmable prescaler
Internal RAM size : 72 bytes
On-chip RC oscillator based Watchdog
36 single word instructions
Timer(WDT)
14-bit instructions
Wake-up from sleep on pin change
2-level stacks
Operating voltage : 2.5 V ~ 5.5 V
3. Applications
Operating frequency : 0 ~ 20 MHz
The most fast execution time is 200 ns under
The application areas of this MDT10C55B range
20 MHz in all single cycle instructions except
from appliance motor control and high speed
the branch instruction
automotive to low power remote
Addressing modes include direct, indirect and
transmitters/receivers, small instruments, chargers,
relative addressing modes
toy, automobile and PC pe-ripheral … etc.
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 1
2006/12
Ver. 1.0
MDT10C55B
4. Pin Assignment
MDT10C55B3P/MDT10C55B3S
MDT10C55B1P/MDT10C55B1S
VDD 1
PB5
PB4
PB3
PC5/RTCC
PC4
PC3
2
3
4
5
6
7
VDD
PB5
PB4
/MCLR
PC5/RTCC
PC4
PC3
14 VSS
13
12
11
10
9
8
PB0
PB1
PB2
PC0
PC1
PC2
OSC1
OSC2/PB4
PB3
PC5/RTCC
PC4
PC3
2
3
4
5
6
7
VDD
OSC1
OSC2/PB4
/MCLR
PC5/RTCC
PC4
PC3
14 VSS
12
12
11
10
9
8
14
13
12
11
10
9
8
VSS
PB0
PB1
PB2
PC0
PC1
PC2
MDT10C55B4P/MDT10C55B4S
MDT10C55B2P/MDT10C55B2S
VDD 1
1
2
3
4
5
6
7
PB0
PB1
PB2
PC0
PC1
PC2
1
2
3
4
5
6
7
14
13
12
11
10
9
8
VSS
PB0
PB1
PB2
PC0
PC1
PC2
5. Pin Function Description
Pin Name
I/O
Function Description
PB5~0
I/O
Port B, TTL input level, PB3 input only.
PC4~0
I/O
Port C, TTL input level.
PC5/RTCC
I/O
Real Time Clock/Counter, Schmitt Trigger input levels.
/MCLR
I
Master Clear, Schmitt Trigger input levels.
OSC1
I
Oscillator Input
OSC2
O
Oscillator Output
Vdd
Power supply
Vss
Ground
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 2
2006/12
Ver. 1.0
MDT10C55B
6. Memory Map
(A) Register Map
Address
Description
00
Indirect Addressing Register
01
RTCC
02
PC
03
STATUS
04
MSR
06
Port B
07
Port C
08~1F
30~3F
General purpose registers
50~5F
70~7F
(1) IAR (Indirect Address Register) : R0
(2) RTCC (Real Time Counter/Counter register) : R1
(3) PC (Program Counter) : R2
Write PC, CALL --- always 0
JUMP --- from instruction word
RTWI, RET --- from STACK
A9
A8
A7~A0
Write PC, JUMP, CALL --- from STATUS b5
RTWI, RET --- from STACK
Write PC --- from ALU
JUMP, CALL --- from instruction word
RTWI, RET --- from STACK
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 3
2006/12
Ver. 1.0
MDT10C55B
(4) STATUS (Status register) : R3
Bit
Symbol
Function
0
C
Carry bit
1
HC
Half Carry bit
2
Z
Zero bit
3
PF
Power down bit
4
TF
WDT Timer overflow Flag bit
5
PAGE
ROM page select bit
6
——
Unimplemented
7
PCWUF
Pin change wake up from sleep
(5) MSR (Memory Bank Select Register) : R4
b7
Read only “1”
b6
b5
b4
b3
b2
b1
b0
BANK Select
Indirect Addressing Mode
(6) PORT B : R6
PB5~PB0, I/O register, PB3 input only.
(7) PORT C: R7
PC5~PC0, I/O register.
(8) TMR (Time Mode Register)
Bit
Symbol
2—0
PS2—0
3
PSC
4
TCE
5
TCS
6
PBPHB
Function
Prescaler Value
RTCC rate
0 0 0
1:2
0 0 1
1:4
0 1 0
1:8
0 1 1
1 : 16
1 0 0
1 : 32
1 0 1
1 : 64
1 1 0
1 : 128
1 1 1
1 : 256
Prescaler assignment bit :
0: RTCC
1: Watchdog Timer
RTCC signal Edge :
0: Increment on low-to-high transition on RTCC pin
1: Increment on high-to-low transition on RTCC pin
RTCC signal set :
0: Internal instruction cycle clock
1: Transition on RTCC pin
PortB pull-high :(RB0,RB1,RB3,RB4)
0: Enable
1: Disable
WDT rate
1:1
1:2
1:4
1:8
1 : 16
1 : 32
1 : 64
1 : 128
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 4
2006/12
Ver. 1.0
MDT10C55B
Bit
Symbol
Function
7
PBWUB
PortB wake-up : (RB0,RB1,RB3,RB4)
0: Enable
1: Disable
(9) CPIO B, CPIO C (Control Port I/O Mode Register)
The CPIO register is “write-only”
=“0”, I/O pin in output mode;
=“1”, I/O pin in input mode.
(B) Program Memory
Address
000-3FF
000
Description
Program memory
The starting address of power on, external reset or WDT time-out reset.
8. Reset Condition for all Registers
Register
Address
Power-On Reset
/MCLR Reset
WDT Reset
CPIO B
--
--11 1111
--111 1111
--11 1111
CPIO C
--
--11 1111
--11 1111
--11 1111
TMR
--
1111 1111
1111 1111
--11 1111
IAR
00h
RTCC
01h
PC
xxxx xxxx
uuuu uuuu
uuuu uuuu
xxxx xxxx
uuuu uuuu
uuuu uuuu
02h
0000 0000
0000 0000
0000 0000
STATUS
03h
0001 1xxx
#00# #uuu
#00# #uuu
MSR
04h
110x xxxx
11uu uuuu
11uu uuuu
PORT B
06h
--xx xxxx
--uu uuuu
--uu uuuu
PORT C
07h
--xx xxxx
--uu uuuu
--uu uuuu
Note : u=unchanged, x=unknown, - =unimplemented, read as “0”
#=value depends on the condition of the following table
Condition
Status: bit 7
Status: bit 4
Status: bit 3
/MCLR reset (not during SLEEP)
0
u
u
/MCLR reset during SLEEP
0
1
0
WDT reset (not during SLEEP)
0
0
1
WDT reset during SLEEP
0
0
0
Wake-up from SLEEP on pin change
1
1
0
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 5
2006/12
Ver. 1.0
MDT10C55B
9. Instruction Set :
Instruction Code
Mnemonic
Operands
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
Load W to TMODE register
W→TMODE
None
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 or
(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
011111 trrrrrrr
COMR R, t
Complement register
/R→t
Z
010110 trrrrrrr
RRR
R, t
Rotate right register
R(n) →R(n-1),
C→R(7), R(0)→C
C
010101 trrrrrrr
RLR
R, t
Rotate left register
R(n)→r(n+1),
C→R(0), R(7)→C
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
R
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 6
2006/12
Ver. 1.0
MDT10C55B
Mnemonic
Operands
Instruction Code
Function
Operating
Status
1000nn nnnnnnnn
LCALL n
Long CALL subroutine
n→PC,
PC+1→Stack
None
1010nn nnnnnnnn
LJUMP n
Long JUMP to address
n→PC
None
110000 nnnnnnnn
CALL
n
Call subroutine
n→PC,
PC+1→Stack
None
110001 iiiiiiii
RTWI
i
Return, place immediate to W
Stack→PC,i→W
None
11001n nnnnnnnn
JUMP
n
JUMP to address
n→PC
None
Note :
W
WT
TMODE
CPIO
TF
PF
PC
OSC
Inclu.
Exclu.
AND
:
:
:
:
:
:
:
:
:
:
:
Working register
Watchdog timer
TMODE mode register
Control I/O port register
Timer overflow flag
Power loss flag
Program Counter
Oscillator
Inclusive ‘∪’
Exclusive ‘♁’
Logic AND ‘∩’
b
t
:
:
0
1
R
:
C
:
HC :
Z
:
/
:
x
:
i
:
n
:
Bit position
Target
: Working register
: General register
General register address
Carry flag
Half carry
Zero flag
Complement
Don’t care
Immediate data ( 8 bits )
Immediate address
10. Oscillator start up timer condition
Oscillator Type
Porwer-on reset
Subsequest resets
INTRC,RC
20ms,40ms,80ms
300us
HF,XT,LF
20ms,40ms,80ms
20ms,40ms,80ms
11. Electrical Characteristics
*Note: Temperature=25°C
1.Operation Current :
(1) HF (C=10p) , WDT - enable
4M
10M
20M
Sleep
2.5V
250uA
600uA
1.2mA
3uA
3.0V
350uA
750uA
1.4mA
8uA
4.0V
500uA
900uA
1.8mA
16uA
5.0V
800uA
1.3mA
2mA
30uA
5.5V
1.2mA
1.8mA
3mA
50uA
These parameters are for reference only.
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 7
2006/12
Ver. 1.0
MDT10C55B
(2) XT (C=10p) , WDT - disable
1M
4M
10M
Sleep
2.5V
100uA
200uA
500uA
1uA
3.0V
120uA
280uA
710uA
1uA
4.0V
230uA
550uA
1.2mA
1uA
5.0V
480uA
840uA
1.7mA
1uA
5.5V
820uA
1.2mA
2.2mA
1uA
These parameters are for reference only.
(3) RC , WDT - Enable , @Vdd = 5.0V
C
3p
20p
100p
300p
R
Freq.
Current
4.7k
8.7M
2.4mA
10k
4.3M
1.3mA
47k
1M
370uA
100k
513K
260uA
300k
175K
190uA
470k
107K
180uA
4.7k
5M
1.9mA
10k
2.5M
1.1mA
47k
580K
320uA
100k
370K
240uA
300k
93K
190uA
470k
58K
180uA
4.7k
1.9M
1.4mA
10k
940K
770uA
47k
210K
280uA
100k
135K
220uA
300k
34K
190uA
470k
21K
180uA
4.7k
786K
1.3mA
10k
389K
680uA
47k
85K
250uA
100k
55K
210uA
300k
14K
180uA
470k
9K
170uA
These parameters are for reference only.
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 8
2006/12
Ver. 1.0
MDT10C55B
(4) LF (C=10p) , WDT - enable
32K(50p) 455K(50p)
1M
Sleep
2.5V
20uA
X
60uA
3uA
3.0V
30uA
70uA
90uA
8uA
4.0V
50uA
130uA
160uA
16uA
5.0V
100uA
200uA
240uA
30uA
5.5V
200uA
300uA
330uA
50uA
These parameters are for reference only.
(5) INT_RC , WDT - disable
4MHz
Sleep
3.0V
500uA
1uA
4.0V
800uA
1uA
5.0V
1mA
1uA
These parameters are for reference only.
2. Input Voltage (Vdd = 5V) :
Port
Min
Max
TTL
Vss
1.5V
Schmitt trigger
Vss
1.0V
TTL
2V
Vdd
Schmitt trigger
3.2V
Vdd
Vil
Vih
These parameters are for reference only.
3. Output Voltage (Vdd = 5V) :
PA,PB
Condition
Voh
3.3V
Ioh =-20mA
Vol
0.8V
Iol =+20mA
Voh
4.3V
Ioh = -5mA
Vol
0.6V
Iol = +5mA
These parameters are for reference only.
4. Output Current (Max.) (Vdd = 5V) :
Port B:
Current
Source current
25mA
Sink current
25mA
These parameters are for reference only.
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 9
2006/12
Ver. 1.0
MDT10C55B
Port C:
Current
Source current
25mA
Sink current
25mA
These parameters are for reference only.
5. The basic WDT time-out cycle time :
Time
2.5V
25ms
3.0V
23ms
4.0V
20ms
5.0V
19ms
5.5V
18ms
These parameters are for reference only.
This specification are subject to be changed without notice. Any latest information please preview
http;//www.mdtic.com.tw
P. 10
2006/12
Ver. 1.0