![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
MDT2020(FF) 1. General Description This EPROM-Based 8-bit micro-controller uses a fully static CMOS design technology combines higher speed and smaller size with the low power and high noise immunity of CMOS. On chip memory system includes 2.0 K bytes of ROM, and 80 bytes of static RAM. Power-on Reset (POR), only available while PED is Disable Power Edge-detector Reset Sleep mode for power saving 4 oscillator start-up time : 150 s, 20 ms, 40 ms, 80 ms 8-bit real time clock/counter(RTCC) with 8-bit programmable prescaler 4 types of oscillator can be selected by code options : RCLow cost RC oscillator LFXTLow frequency crystal oscillator XTALStandard crystal oscillator HFXTHigh frequency crystal oscillator On-chip RC oscillator based Watchdog Timer(WDT) can be operated freely 20 I/O pins with their own independent direction control 2. Features The followings are some of the features on the hardware and software : Fully CMOS static design 8-bit data bus On chip ROM size : 2 K words Internal RAM size : 80 bytes (72 general purpose, 8 special registers) 36 single word instructions 14-bit instructions 2-level stacks Operating voltage : 2.3 V ~ 6.0 V Operating frequency : 0 ~ 20 MHz The most fast execution time is 200 ns under 20 MHz in all single cycle instructions except the branch instruction. Addressing modes include direct, indirect and relative addressing modes 3. Applications The application areas of this MDT2020 range from appliance motor control and high speed automotive to low power remote transmitters/receivers, pointing devices, and telecommunications processors, such as Remote controller, small instruments, chargers, toy, automobile and PC peripheral ... etc. This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 1 2007/8 VER 1.5 MDT2020(FF) 4. Pin Assignment DIP / SOP / SKINNY RTCC 1 Vdd N/C Vss N/C PA0 PA1 PA2 PA3 PB0 PB1 PB2 PB3 2 3 4 5 6 7 8 9 10 11 12 13 28 /MCLR 27 26 25 24 23 22 21 20 19 18 17 16 OSC1 OSC2 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 PB7 PB6 VSS 1 RTCC VDD VDD PA0 PA1 PA2 PA3 PB0 PB1 PB2 PB3 PB4 2 3 4 5 6 7 8 9 10 11 12 13 SSOP 28 /MCLR 27 26 25 24 23 22 21 20 19 18 17 16 OSC1 OSC2 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 PB7 PB6 PB4 14 15 PB5 VSS 14 15 PB5 5. Pin Function Description Pin Name PA0~PA3 PB0~PB7 PC0~PC7 RTCC /MCLR OSC1 OSC2 Vdd Vss I/O I/O I/O I/O I I I O Function Description Port A, TTL input level Port B, TTL input level Port C, TTL input level Real Time Clock/Counter, Schmitt Trigger input levels Master Clear, Schmitt Trigger input levels Oscillator Input Oscillator Output Power supply Ground This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 2 2007/8 VER 1.5 MDT2020(FF) 6. Memory Map (A) Register Map Address 00 01 02 03 04 05 06 07 08~0F 10~1F 30~3F 50~5F 70~7F Description Indirect Addressing Register RTCC PC STATUS MSR Port A Port B Port C Internal RAM, General Purpose Register Internal Memory Select Register Internal Memory Select Register Internal Memory Select Register Internal Memory Select Register (1) IAR ( Indirect Address Register) : R0 (2) RTCC (Real Time Counter/Counter Register) : R1 (3) PC (Program Counter) : R2 Write PC, CALL --- always 0 LJUMP, JUMP, LCALL --- from instruction word RTWI, RET --- from STACK A10 A9 A8 A7~A0 Write PC, JUMP, CALL --- from STATUS b6 b5 LJUMP, LCALL --- from instruction word RTWI, RET --- from STACK Write PC --- from ALU LJUMP, JUMP, LCALL, 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. 2 2007/8 VER 1.5 MDT2020(FF) (4) STATUS (Status register) : R3 Bit 0 1 2 3 4 6--5 Symbol C HC Z PF TF page Carry bit Half Carry bit Zero bit Power loss Flag bit Time overflow Flag bit Page select bit : 00 : 000H --- 1FFH 01 : 200H --- 3FFH 10 : 400H --- 5FFH 11 : 600H --- 7FFH 7 ---- General purpose bit Function (5) MSR (Memory Select Register) : R4 Memory Select Register : 00 : 10~1F 01 : 30~3F 10 : 50~5F 11 : 70~7F b7 b6 b5 b4 b3 b2 b1 b0 Read only "1" Indirect Addressing Mode (6) PORT A : R5 PA3~PA0, I/O Register (7) PORT B : R6 PB7~PB0, I/O Register (8) PORT C : R7 PC7~PC0, I/O Register This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 3 2007/8 VER 1.5 MDT2020(FF) (9) TMR (Time Mode Register) Bit Symbol Prescaler Value Function RTCC rate WDT rate 000 1:2 1:1 001 1:4 1:2 010 1:8 1:4 011 1 : 16 1:8 100 1 : 32 1 : 16 101 1 : 64 1 : 32 110 1 : 128 1 : 64 111 1 : 256 1 : 128 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 2--0 PS2--0 3 PSC 4 TCE 5 TCS (10) CPIO A, 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. (11) EPROM Option by Writer Programming: Oscillator Type RC Oscillator Oscillator Start-up Time 150 s,20ms,40ms,80ms 20 ms,40ms,80ms 20ms,40 ms,80ms 40ms,80 ms HFXT Oscillator XTAL Oscillator LFXT Oscillator Watchdog Timer control Watchdog timer disable all the time Watchdog timer enable all the time This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 4 2007/8 VER 1.5 MDT2020(FF) Power Edge Detect PED Disable PED Enable Security bit Security weak Disable Security Disable Security Enable 7. Reset Condition for all Registers Register CPIO A CPIO B CPIO C TMR IAR RTCC PC STATUS MSR PORT A PORT B PORT C Address 00h 01h 02h 03h 04h 05h 06h 07h Power-On Reset 1111 1111 1111 1111 1111 1111 --11 1111 xxxx xxxx 1111 1111 0001 1xxx 100x xxxx - - - - xxxx xxxx xxxx xxxx xxxx /MCLR or WDT Reset 1111 1111 1111 1111 1111 1111 --11 1111 uuuu uuuu 1111 1111 000# #uuu 100u uuuu - - - - uuuu uuuu uuuu uuuu uuuu Note : u = unchanged, x = unknown, - = unimplemented, read as "0" # = value depends on the condition of the following table Condition /MCLR reset (not during SLEEP) /MCLR reset during SLEEP WDT reset (not during SLEEP) WDT reset during SLEEP Status: bit 4 u 1 0 0 Status: bit 3 u 0 1 0 This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 5 2007/8 VER 1.5 MDT2020(FF) 8. Instruction Set Instruction Code Mnemonic Operands Function No operation Clear Watchdog timer Sleep mode Return R R Control I/O port register Store W to register Load register Load immediate to W Operating None 0WT 0WT,stop OSC StackPC WCPIO WR Rt IW [R(0~3) R(4~7)]t R + 1t R + 1t W + Rt R Wt (R+/W+1t) R 1t R 1t R Wt I WW R Wt R Wt /Rt R(n)R(n-1) CR(7) R(0)C R(n)(n+1) CR(0) R(7)C 0W 0R 0R(b) 1R(b) r TF, PF TF, PF None None None None Z None None Z None CHCZ CHCZ Z None Z Z Z Z Z Z Z C C Z Z None None Status 010000 00000000 NOP 010000 00000001 CLRWT 010000 00000010 SLEEP 010000 00000011 TMODE 010000 00000100 RET 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 110110 iiiiiiii 011111 trrrrrrr 010110 trrrrrrr 010101 trrrrrrr 010000 1xxxxxxx 010001 0rrrrrrr 0000bb brrrrrrr 0010bb brrrrrrr CPIO STWR LDWI I Load W to TMODE register WTMODE LDR R t SWAPR Rt Swap halves register INCR Rt INCRSZ R Increment register Increment registerskip if zero ADDWR Rt Add W and register SUBWR Rt Subtract W from register DECR Rt Decrement register DECRSZ Rt Decrement register skip if zero ANDWR Rt AND W and register ANDWI I IORWR Rt IORWI I XORWI I COMR R t RRR Rt RLR R t CLRW CLRR R BCR R b BSR R b AND W and immediate Inclu. OR W and register Inclu. OR W and immediate I WW Exclu. OR W and immediate I WW Complement register Rotate right register Rotate left register Clear working register Clear register Bit clear Bit set XORWR Rt Exclu. OR W and register This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 6 2007/8 VER 1.5 MDT2020(FF) Instruction Code Mnemonic Operands 0001bb brrrrrrr 0011bb brrrrrrr Function Operating Skip if R(b)=0 Skip if R(b)=1 nPC PC+1Stack nPC nPC, PC+1Stack StackPC, iW nPC Status None None None None None None None BTSC R b Bit Testskip if clear BTSS R b Bit Testskip if set Long CALL subroutine Long JUMP to address Call subroutine Return, place immediate to W JUMP to address 100nnn nnnnnnnn LCALL n 101nnn nnnnnnnn LJUMP n 110000 nnnnnnnn CALL 110001 iiiiiiii RTWI i n 11001n nnnnnnnn JUMP n 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 9. Electrical Characteristics (A) Operating Voltage & Frequency Vdd 2.3 V ~ 6.0 V Frequency0 Hz ~ 20 MHz (B) Input Voltage @ Vdd5.0 V, Temperature25 Port Vil Vih PA, PB, PC RTCC, /MCLR PA, PB, PC RTCC, /MCLR Min. Vss Vss 2.0 V 3.3 V Max. 1.0 V 1.0 V Vdd Vdd Threshold Voltage : This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 7 2007/8 VER 1.5 MDT2020(FF) Port A, Port B, Port C Vth1.5 V RTCC, /MCLR Vil1.2 V, Vih3.1V (C) Output Voltage @ Vdd5.0 V, Temperature25 , the typical value as followings : PA, PB, PC Port Ioh20.0 mA Iol20.0 mA Ioh5.0 mA Iol5.0 mA (D) Leakage Current @ Vdd5.0 V, Temperature25 , the typical value as followings : Iil Iih (E) Sleep Current @WDTDisable, Temperature25 , the typical value as followings : Vdd2.3 V Vdd3.0 V Vdd4.0 V Vdd5.0 V Vdd6.0 V Idd1.0 A Idd1.0 A Idd1.0 A Idd1.0 A Idd1.0 A 0.1A (Max.) 0.1 A (Max.) Voh3.40 V Vol0.50 V Voh4.50 V Vol0.10 V (Schmitt Trigger) @WDTEnable, Temperature25 , the typical value as followings : Vdd2.3 V Vdd3.0 V Vdd4.0 V Vdd5.0 V Vdd6.0 V Idd1.0 A Idd3.0 A Idd6.0 A Idd11.0 A Idd17.0 A This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 8 2007/8 VER 1.5 MDT2020(FF) F) Operating Current Temperature25, the typical value as followings : (i) OSC TypeRC; WDTEnable; @ Vdd5.0 V PED=Disable Cext. (F) Rext. (Ohm) 4.7 K 10.0 K 3P 47.0 K 100.0 K 300.0 K 470.0 K 4.7 K 10.0 K 20P 47.0 K 100.0 K 300.0 K 470.0 K 4.7 K 10.0 K 100P 47.0 K 100.0 K 300.0 K 470.0 K 4.7 K 10.0 K 300P 47.0 K 100.0 K 300.0 K 470.0 K Frequency (Hz) 11.2 M 5.95 M 1.40M 660 K 225 K 142 K 5.45 M 2.75 M 625 K 295 K 100 K 64 K 1.77 M 885 K 195 K 92 K 31 K 20 K 685 K 337 K 75 K 35 K 12 K 7K Current (A) 1.3 mA 682 A 240 A 170 A 140 A 130 A 620 A 376 A 176 A 148 A 130 A 125 A 300 A 210 A 150 A 135 A 130 A 125 A 190 A 160 A 140 A 130 A 126 A 125 A This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 9 2007/8 VER 1.5 MDT2020(FF) (ii) OSC TypeLF (OSC1&OSC2 External Cap about 10P); WDTDisable PED=Disable Voltage/Frequency 2.3 V 3.0 V 4.0 V 5.0 V 6.0 V 32 K (Ext 100P) 7.0 A 15.0 A 35.0A 75.0 A 135.0 A 455 K (Ext50P) 2.6V@25.0 A 55.0 A 95.0 A 150.0 A 225.0 A 1M 40.0 A Sleep 1.0 A 1.0 A 1.0 A 1.0 A 1.0 A 75.0 A 125.0 A 190.0 A 270.0 A (iii) OSC TypeXT (OSC1&OSC2 External Cap about 10P); WDTEnable PED=Disable Voltage/Frequency 2.1 V 3.0 V 4.0 V 5.0 V 6.0 V 1M 50.0 A 110.0 A 220.0 A 385.0 A 655.0 A 4M 120.0 A 240.0 A 410.0 A 600.0 A 860.0 A 10 M 290 A 500 A 660 A 1.4 mA 1.7 mA Sleep 1.0 A 3.0 A 6.0 A 11.0 A 17.0 A (iv) OSC TypeHF (OSC1&OSC2 External Cap about 10P); WDTEnable PED=Disable Voltage/Frequency 2.1 V 3.0 V 4.0 V 5.0 V 6.0 V 4M 150.0 A 290.0 A 520.0 A 810.0 A 1.4 mA 10 M 320.0 A 560.0 A 920.0 A 1.5 mA 2.0 mA 20 M X Sleep 1.0 A 3.0 A 6.0 A 11.0 A 17.0 A 960.0 A 1.5 mA 2.4 mA 3.3 mA This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 10 2007/8 VER 1.5 MDT2020(FF) (G) Power Edge-detector Reset Voltage (Not in Sleep Mode), @ Vdd5.0 V (PED :Enable) Vpr1.6~1.8 V Vpr Vdd (Power Supply) PS. If PED_Enable then Internal Power_on_reset will be off (H) The basic WDT time-out cycle time @Temperature25 , the typical value as followings : Vdd =5.0 V, Temperature=25,the typical value as followings: Voltage (V) 2.3 3.0 4.0 5.0 6.0 Basic WDT time-out cycle time (ms) 25.2 22.4 20.4 18.8 18.0 This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 11 2007/8 VER 1.5 MDT2020(FF) 10. Port A ,Port B and Port C Equivalent Circuit Working Register D QB Data I/P I/O Control CK I/O Control Latch Q Port I/O Pin D Write CK Data O/P Latch Q Data Bus QB D Read Data I/P Latch CK Input Resistor TTL Input Level This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 12 2007/8 VER 1.5 MDT2020(FF) 11. MCLRB and RTCC Input Equivalent Circuit R1K MCLRB Schmitt Trigger R1K RTCC Schmitt Trigger This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 13 2007/8 VER 1.5 MDT2020(FF) 12. Block Diagram Stack Two Levels EPROM 2048x14 RAM 72*8 Port A Port PA0~PA3 4 bits 11 bits 11 bits 14 bits Program Counters Instruction Register Special Register OSC1 OSC2 MCLR D0~D7 Port B Port PB0~PB7 8 bits Oscillator Circuit Instruction Decoder Control Circuit Data 8-bit Power on Reset Power Down Reset Working Register ALU Status Register Port PC0~PC7 8 bits Port C 8-bit Timer/Counter Prescale WDT/OST Timer RTCC This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 14 2007/8 VER 1.5 MDT2020(FF) 13. External Capacitor Selection For Crystal Oscillator @ Vdd3.0 V~ 5.0 V Osc. Type Resonator Freq. 20 MHz HF 10 MHz 4 MHz 10 MHz XT 4 MHz 1 MHz 1 MHz LF 455 K 32 K C1 5 pF ~10 pF 10 pF ~50 pF 10 pF ~50 pF 10 pF ~30 pF 10 pF ~50 pF 10 pF ~30 pF 3 pF ~5 pF 10 pF ~30 pF 10 pF ~20 pF C2 10 pF~30 pF 20 pF ~100 pF 20 pF ~100 pF 10 pF ~50 pF 20 pF ~100 pF 20 pF ~50 pF 3 pF ~5 pF 20 pF ~50 pF 15 pF ~30 pF MDT2020 OSC1 OSC2 C1 C2 To increase the stability of oscillator and the ability of anti-noise, the above values of the external capacitor range can be recommended for reference, but the higher capacitance also increases the start-up time. This specification are subject to be changed without notice. Any latest information please preview http;//www.mdtic.com.tw P. 15 2007/8 VER 1.5 |
Price & Availability of MDT2020FF
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |