Home

MC10P11B User Manual V1.1

image

Contents

1. 511 510 59 58 ST S6 S5 54 53 52 SI 50 K 12 0 KBIF If 60 54 511 and K47 S1 S10 are both pressed gt While scanning 51 K 10 0 i e K 12 0 1BFF 4 While scanning S4 K 11 0 i e K 12 0 17FF Shanghai SinoMCU Microelectronics Co Ltd 8 21 s nsmcu MC10P11B User Manual V1 1 19 ink F gt While scanning S10 K 1 0 i e K 12 0 1FFD While scanning 511 K 4 0 i e K 12 0 1FEF While scanning other ports K 12 0 1FFF 4 Double keys no reused port one of ports is GND are pressed e g K60 S4 S11 and K82 S3 GND are both pressed Lu OUT 12 0 S12 S11 S10 S9 S8 57 56 55 54 53 52 51 50 K 12 0 KBIF If 60 S4 S11 K47 S3 GND are both pressed lt gt gt Whil Whil Whil Whil e scanning S3 K 12 0 1FFF e scanning S4 K 11 0 and K 3 0 i e K 12 0 17F7 e scanning S10 1 0 and K 3 0 i e K 12 0 1FE7 e scanning other ports K 3 0 i e K 12 0 1FF7 Shanghai SinoMCU Microelectronics Co Ltd 9 21 s nsmcu Be fn
2. 57 56 55 54 53 52 51 50 K 12 0 KBIF If K82 S3 GND 59 53 511 are both pressed While scanning S3 K 12 0 1FFF gt While scanning 511 K 12 0 1FFF gt While scanning the other ports K 3 0 and K 11 0 i e K 12 0 17F7 Note In fact pressing K82 and K59 simultaneity causes the ports S3 S11 and GND connecting together The same effect will happen when K82 and K90 or K59 and K90 are both pressed That is to say it is impossible to distinguish these three situations So pressing double keys with a reused port is invalid when using T shape keyboard method 4 3 Relative Registers This section describes the registers relative with keyboard scanning 00 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 KEY K7 K6 K5 K4 K3 K2 K1 KO R W R W R W R W R W R W R W R W R W Initial Value u u u u u u u u BIT 7 0 K 7 0 Keyboard scanning values of 57 50 Reading KEY can get the value of K 7 0 Writing KEY can scan SO to S12 sequentially Refer to 4 1 ARES A 01 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 MCR KBIE KBIF OUTC K12 K11 K10 K9 R W R W R W R W R W R W R W R W R W Initial Value 0 0 1 u u u u u BIT 4 0 K 12 8 Keyboard scanning values of S12 S8 Shanghai SinoMCU Microelectronics
3. Typical Application Sehematics Sion Of nd tone a ier POGOe 7 7fI 77 12 1 Internal RG Frequency R 12 2 dle Current REF REV UST OM HUSbLOLY Shanghai SinoMCU Microelectronics Co Ltd 2 21 s nsmcu z MC10P11B User Manual V1 1 MC10P11B User Manual V1 1 1 Introduction 1 11 is a high performance 8 bit Microcontroller It has internal high accuracy RC oscillator circuit T shape keyboard scanning circuit and infrared emission diode driving circuit It provides perfect solution for the remote control of TV DVD STB etc 1 1 Product Features 8 bit CPU with CISC structure 1K 8 bits OTP ROM 32 bytes RAM including stack Internal high accuracy 4MHz RC oscillator Frequency deviation less than 1 CONDITION 3 0V 25 C T shape keyboard scanning circuit which can support 91 keys gt Infrared remote control code output IROUT open drain structure which can drive infrared emission diode directly 2 GPIOs Low power dissipation idle current less than 3uA 3V Data stored in RAM can be maintained CONDITION supply voltage is higher than 1 1V Serial programming interface circuit Protecting program memory data gt
4. MC10P11B User Manual V1 1 KM MILLIMETER MIN NoM MAX A 177 Al 008 018 0 28 A2 120 140 160 A3 055 065 075 b 039 048 bl 038 041 043 c oz21 026 019 020 021 D 970 990 10 10 580 600 620 El 370 390 410 1 2785 050 0 65 0 80 1 1 05BSC 9 0 UT MILLIMETER MIN NOM MAX A 177 Al 0 08 018 028 A2 120 140 160 A3 055 065 075 b 039 048 bl 038 041 043 c 021 026 019 020 021 D 4 70 490 5 10 E 5 80 6 00 6 20 El 370 390 410 1 27BSC L 050 0 65 080 LI 1 05BSC 9 0 8 18 21 s nsmcu 58 9 mar MC10P11B User Manual V1 1 12 Appendix Note The contents of appendix is just for your reference 121 Internal RC Frequency IRC Frequency vs VDD T 25 C IRC Freq MHz 1 8 2 2 2 6 3 0 3 4 3 8 4 2 4 6 5 0 VDD V IRC Frequency vs Temperature VDD 3V IRC Freq MHz N T z c LL 22 2 2 2 6 3 0 34 3 8 4 2 4 6 5 0 VDD V Shanghai SinoMCU Microelectronics Co Ltd 19 21 s nsmcu 28 i9 mir MC10P11B User Manual V1 1 12 2 Idle Current Idds vs VDD 9T 25 C 5 VDD V Shanghai SinoMCU Microelectronics Co Ltd 20 21 s nsmcu z 52 MC10P11B User Manual V1 1 13 Revision History Version
5. Date Description 1 0 2012 3 27 First issued 1 1 2013 4 28 811 Modify description of RAM data remaining function add SOP8 package 81 3 Add pin assignment of SOP8 package S10 Add application schematic for SOP8 package S11 Add dimension description of SOP8 package Shanghai SinoMCU Microelectronics Co Ltd 21 21
6. 0 MCR KBIE KBIF OUTC K12 K11 K10 K9 K8 R W R W R W R W R W R W R W R W R W Initial Value 0 0 1 u u u u u BIT 7 KBIE Keyboard interrupt enable bit 0 Keyboard interrupt is disabled 1 Keyboard interrupt is enabled BIT 6 KBIF Keyboard interrupt flag bit 0 No keyboard interrupt occurs 1 Keyboard interrupt occurs Writing a 0 clears KBIF Writing has no effect 8 System Operation Modes MCIOPIIB has two low power modes STOP mode and WAIT mode 8 1 STOP Mode The instruct STOP makes MCU enter STOP mode which has several effects bellow System primary oscillator stops Clear I bit in CCR and enable interrupt lt Data stored in RAM will be maintained lt All states of GPIO remain System primary oscillator stops lt All the internal operation stops except keyboard scanning If one of the following things happens MCU will exit from STOP mode KBI request occurs lt Any type of system reset occurs While MCU works under STOP mode almost all the operations terminate so the power dissipation is very low 8 2 WAIT Mode The instruct WAIT makes MCU enter WAIT mode which has several effects bellow lt PU clock stops CPU process and internal bus activities terminate Clear I bit in CCR and enable interrupt Data stored in RAM will be maintained All states of GPIO remain lt All states of registers remain If one of the following things happens CPU clock will restarts and MCU will exit from
7. F Fire VDD 3V 1 4 1 MHz nterna requency 20 C 70C m y r we VDD 1 8 5 5V u ku kaki Shanghai SinoMCU Microelectronics Co Ltd 15 21 s nsmcu 9 mar MC10P11B User Manual V1 1 10 Typical Application Schematics 91 keys without LED for indication 78 keys with one LED for indication Sos HJ RIG Shanghai SinoMCU Microelectronics Co Ltd 16 21 s nsmcu z 52 MC10P11B User Manual V1 1 15 keys SOP8 package 50 22 51 071 m RI 510 9 o me 220hm KS 51 9 o 1 KT E Kio 12 o Oo o o o 4 u RIT KD n Kis Ris GND 9 Fo 5 Fo 0 29 Note1 If using RAM data remaining function the electrolytic capacitor C2 should not be omitted Note2 If the current of the infrared emission diode D1 is particularly large the current limiting resistor R1 should not be omitted Shanghai SinoMCU Microelectronics Co Ltd 17 21 s nsmcu Be 19 fa FB 11 Dimension of SOP16 D A3 2 A i 1 Al 0 L b bl BASE METAL 6 WITH PLATING SECTION SOP8 D A3 n 2 AZ A Ra J Ah 0 L b bl cl c BASE METAL y WITH PLATING SECTION B B Shanghai SinoMCU Microelectronics Co Ltd
8. Operating voltage range 1 8 5 5V Package type SOP16 50 8 co 1 2 Block Diagram 32 8 1K 8 5 RAM OTP CPU Internal HRC 5 Internal amp TOR KEY SCAN LRC Driver PX PX N 2 e N Shanghai SinoMCU Microelectronics Co Ltd 3 21 s nsmcu z 52 MC10P11B User Manual V1 1 1 3 Pin Assignment GND S12 VPP S11 P01 S10 59 58 57 56 C3 ES O Um NH 50 16 GND S12 VPP S11 P01 S10 HOdTTdOTON SOPS 1 4 Pin Description Name Direction Function Description GND P Ground S12 Key scanning port VPP Proqram na high voltage input S11 Key scanning port 1 59 51 VO Key scanning port S0 Key scanning port IROUT IR output VDD P Source 2 CPU 2 1 Instruction Set 1 11 uses HC05 compatible instruction set For detail information about instruction set please refer to the datasheet HC05 Instruction Set provided by SinoMCU Shanghai SinoMCU Microelectronics Co Ltd 4 21 s nsmcu Be 19 fn EB Note Instruct MUL is not available 2 2 Address Space MC10P11B User Manual V1 1 0000 0002 Control Register 0003 00DF Reserved 00E0 00FF RAM Cincluding Stack 0100 1BFF Reserved 1C00 1FFF OTP ROM 2 5 Program Memory ROM Program memory of MCIOPIIB
9. relative registers 5 bytes set I bit to 1 Differently from system reset hardvare interrupt does not terminate current instruction While interrupt request occurring altogether to the system stack and mask all the other interrupts execution but suspends itself until current instruction finished While responding interrupt firstly CPU fetches the entrance address of the interrupt service subroutine from the corresponding interrupt vector then jumps to the subroutine and executes Each interrupts service subroutine needs an RTI instruct When executing RTI CPU pops all status registers from the system stack and executes the instruct exactly after the interrupt happened The interrupt vectors are shown bellow The priority is decreased from bottom to top in the list 7 2 Keyboard Interrupt Vector Address Interrupt 1FFO 1FF1 Reserved 1FF2 1FF3 Reserved 1FF4 1FF5 KBI 1FF6 1FF7 Reserved 1FF8 1FF9 Reserved 1FFA 1FFB Reserved 1FFC 1FFD SWI 1FFE 1FFF RESET If any key is pressed the flag KBIF will be set to 1 in the process of key scanning If KBIE is 1 meanwhile KBI interrupts request will occur Shanghai SinoMCU Microelectronics Co Ltd If KBIE is 0 KBI will not occur 13 21 s nsmcu z 19 3 52 MC10P11B User Manual V1 1 Here are the relative registers 01 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit
10. Co Ltd 11 21 s nsmcu Be 19 fn FB 5 GPIO MC10P11B User Manual V1 1 1 11 has two general purpose input output GPIO ports whose names are 01 and P00 When the GPIO function is enabled the corresponding key scanning function 511 and SO is disabled automatically Each GPIOs is controlled by the corresponding Data Register bit 01 and P00 and Direction Register bit POID and P00D R W POxD Function W 0 The port is in input mode Data is written into the output data latch W 1 Data is written into the output latch and output to the port R 0 state of port is read R 1 The port is in output mode The output data latch is read Here is the relative register of GPIO 02 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 IOR 1 1 1 1 POOU POOD P00 R W R W R W R W R W R W R W R W R W Initial Value 0 0 0 0 0 0 0 0 BIT 7 PO1M S11 P01 mode selection 0 Configured to GPIO function P01 1 Configured to key scanning function 51 BIT 6 PO1U P01 pull up selection 0 No pull up resistor is connected to POI 1 The internal pull up resistor is connected to PO1 necessary condition 01 is configured to GPIO function and in input mode BIT 5 PO1D P01 direction selection 0 Configured to input 1 Configured to output BIT 4 P01 P01 data bit BIT 3 POOM 50 00 mode selection 0 Configured to GP
11. EB MC10P11B User Manual V1 1 5 Double keys one port is reused not include GND are pressed e g K60 S4 S11 and S61 S5 S11 are both pressed OUT 12 0 512 S11 S10 S9 S8 S7 S6 S5 54 53 52 51 50 K 12 0 KBIF Lu 1FFF 17DF 1FFF 17EF 1F8F 1FFF If 60 S4 S11 HK61 S5 S11 are both pressed o While While While While scanning S4 K 5 0 and K 11 0 i e K 12 0 17DF scanning S5 K 4 0 and K 11 0 i e K 12 0 17EF scanning 511 K 4 0 and K 5 0 i e K 12 0 1F9F scanning other ports K 12 0 1FFF Note In fact pressing K60 and K61 simultaneity causes the ports S4 S5 and S11 connecting together The same effect will happen when K15 and K60 or K15 and K60 are both pressed That is to say it is impossible to distinguish these three situations So pressing double keys with a reused port is invalid when using T shape keyboard method Shanghai SinoMCU Microelectronics Co Ltd 10 21 s nsmcu 62 FB 6 Double keys one port is reused one of the other two is are pressed e g K82 S3 GND and K59 S3 S11 are both pressed OUT 12 0 m H S12 MC10P11B User Manual V1 1 117 S10 59 58
12. IO function P00 1 Configured to key scanning function 50 BIT 2 POOU P00 pull up selection 0 No pull up resistor is connected to P00 1 The internal pull up resistor is connected to P00 necessary condition P00 is configured to GPIO function and in input mode BIT 1 POOD direction selection 0 Configured to input 1 Configured to output BIT 0 P00 P00 data bit 6 IROUT Port IROUT has ability to sink large current It can drive infrared emission diode directly The state of IROUT port is controlled by OUTC bit in MCR register The initial state is high impedance Shanghai SinoMCU Microelectronics Co Ltd 12 21 s nsmcu z 52 MC10P11B User Manual V1 1 01 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 MCR KBIE KBIF OUTC K12 K11 K10 K9 K8 R W R W R W R W R W R W R W R W R W Initial Value 0 0 1 u u u u u BIT 5 OUTC IROUT state control bit 0 IROUT outputs low level 1 IROUT outputs high impedance Note IROUT port is open drain structure 7 Interrupt 7 1 General Description The interrupts of MC10P11B are keyboard interrupt KBI and software interrupt SWI KBI can be masked by I bit which is in CPU status control register CCR but SWI cannot be masked Furthermore SWI is also an instruct For details about SWI please refer to the datasheet HC05 Instruction Set The process of interrupt response is lt gt CPU pushes all the
13. Key not include GND is pressed e g K60 S4 S11 is pressed QUT 12 0 12 511 510 59 58 57 56 55 54 53 52 51 50 K 12 0 KBIF Note OUT 12 0 are status of the control terminals of 50 512 refer to the diagram in 4 1 50 512 are the waveforms of port S0 S12 K 12 0 are the values of K12 K0 KBIF is the state of the flag KBIF If K60 S4 S11 is pressed gt While scanning S4 111 0 i e K 12 0 17FF While scanning 511 K 4 0 i e K 12 0 1FEF While scanning other ports K 12 0 1FFF Shanghai SinoMCU Microelectronics Co Ltd 7 21 s nsmcu 62 19 fk 2 Single key one of ports if GND is pressed e g K82 S3 GND is pressed OUT 12 0 S12 MC10P11B User Manual V1 1 511 510 59 58 57 56 55 54 5377 52 51 50 K 12 0 KBIF If K82 S3 GND is pressed While scanning S3 K 12 0 1FFF While scanning other ports K 3 0 i e K 12 0 1FF7 3 Double keys no reused port and not include GND are pressed e g K60 S4 S11 and K47 S1 S10 are both pressed OUT 12 0 m 12
14. MC10P11B User Manual V1 1 8 Bit MCU designed by SinoMCU 2013 4 28 lt s nsmcu P IIS fi EB 52 Z LUT RAR Shanghai SinoMCU Microelectronics Co Ltd SinoMCU reserves the right to make changes without further notice to any products herein The information contained in this document may subsequently be updated or withdrawn so the customer should ensure that it has the most up to date version Should there be any inconsistencies between Chinese and English versions the Chinese version shall prevail s nsmcu Be 19 fn EB 10 11 12 13 MC10P11B User Manual V1 1 Contents ry ass i UO oaa qu ER ERE RO NU GERE oe KY ETE EE EE NE NER ER 1 12 Erod ct Cure uiu T Tu s ns 1 2 Block Diagram baa Abd dnb aed doh lc3 issigiment eu a eR a a a DE EE EE l d E 1 4 Pin Description 5 54 sa adal woe eh AD A cod dd OA DA sa ode d 0 Sarena wei Sate Zub nstructiton set barlar 2 4 Address Spa66 u a daa aaa ap La iS 2522 Program Memory ROM q qaq usaq wa cac 2 4 User Data Memory RE em neka asa Ru l
15. P11B User Manual V1 1 l 51 52 F 9 9 5 0 1 K4 K5 K6 53 0 0 4 o 4 4 KS 4 K9 1 55 0 4 0 4 0 4 o o 4 16 17 4 KIS H K 9 4 K0 1 o or o oF o o o o e o 56 K gt t K23 l K4 t K5 i K6 4 7 28 o o o o o o m 4 K 4 KT KES 1 K 58 o o o 0 o o or K37 K3 4 K39 4 K40 i 4 K42 i H K44 K45 o o oF o o 0 o E 4 K46 H K47 4 Kas K49 4 K50 H KSI K52 H K53 K54 1 K55 si 2 eto ene a wp e uu vo S11 o 0 0 4 0 lt o 5 H K68 4 K69 11 K70 4 H K72 t H K74 H K75 H K76 H 77 1 Ks 512 o o o O o o 4 H KS0 4 1534 H K82 H 54 4 85 H KS6 H KS H K 8 Tn KS9 H K90 1 GND 4 I o 4 n o o 4 o o i o o n o o i o I o i o O o 4 1 Principle of Scanning The structure of Keyboard scanning ports is shown below OUTn Sn Data Bus Kn 7 RD Before
16. WAIT gt mode Any type of interrupt request occur lt Any type of system reset occurs While MCU works under WAIT mode activities of CPU stop but the system primary oscillator still works so the power dissipation is lower than under normal mode Shanghai SinoMCU Microelectronics Co Ltd 14 21 s nsmcu Be 19 fn FB MC10P11B User Manual V1 1 9 Electrical Specification 9 1 Absolute Rating Rating Symbol Value Unit Supply Voltage VDD 0 3 6 5 V nput Voltage VIN VSS 0 3 VDD 0 3 V Operating Temperature TA 40 85 C Storage Temperature Tstg 65 150 9 2 Electrical Characteristics VDD 3V 25 Characteristics Symbol Pin Condition Min Max Unit Operating Voltage VDD 1 8 5 5 V nput Leakage Current Vieak 7 VIN VDD 0 1 uA Input High Voltage Vin 01 0 7VDD VDD V Input Low Voltage Vi P01 P00 0 0 3VDD V Pull up Resistance Ru P01 P00 100 Kohm Output High Current lon P01 P00 Von 2 7V 3 5 mA Output Low Current lon 01 Vo 0 3V 10 14 mA Output Low Current s IROUT 1 5 300 400 mA VDD 3V Idle Supply Current laas VDD in STOP 1 3 uA mode VDD 3V Dynamic Supply Current laac VDD load 3 mA LVR Voltage Vive T 0 C 40 C 1 25 1 5 1 75 V 9 3 AC Electrical Characteristics VDD 3V 25 Characteristics Symbol Pin Condition Min Typ Max 25 5 R
17. as ER PIE 2 5 Control Registers i da a tee Pe does bn Re aye Wb ces System Clock 4004535 hae se RR Ee bea SS EL G T shape Keyboard Scanning Circuit SER 4 1 Principle of Scanning 5 REPE 4 2 Explanation about Combination of Pressed Keys 4 3 Relative Registers _ x HM ECCO TROUT Port PL nterr pt BE dene a 7 1 General Description 7 2 Keyboard Interrupt NER System Operation Modes CEN 8 1 STOP Mode 42777 47 8 2 WAIT Mola CEA Electrical Spem cat oM u355 9 1 MnE OS TD likctrilF Uharacteristics 9 3 Characteristics
18. scanning 0UT0 0UT12 of ports 50 512 are all maintained high level so all the ports are pulled up Writing the register KEY will let OUTO low and make S enter scanning status Writing KEY again will let OUTO high and make S exit from scanning status Continuously writing KEY will make 51 enter scanning status and writing KEY again will make 51 exit from scanning status So repeatly writing KEY can realize scanning SO to 512 sequentially To scan all ports S0 512 it is necessary to write KEY 26 times In an entire sequence of scanning writing KBIF in MCR will terminate and reset the process which means a new scanning sequence will restart from 50 if writing KEY again In the process of scanning you can determine which key is pressed through reading the value of K 12 0 which is stored in the register KEY and MCR When the system found any key is pressed the flag KBIF will be set and the keyboard interrupt KBI will be requested Refer to 37 2 Shanghai SinoMCU Microelectronics Co Ltd 6 21 s nsmcu Be 19 fa EB In addition while MCIOPIIB working in STOP mode the system will scanning keyboard MC10P11B User Manual V1 1 automatically If any key is pressed KBI is triggered and the system will be awaked from STOP mode Refer to 58 1 4 2 Explanation about Combination of Pressed Keys This section describes the scanning process with waveform diagrams It is a guide to determine which key is pressed 1 Single
19. which is used to store instructions is an ROM with size of 1K bytes The highest address 1FF0 1FFF area of program memory is reset interrupt vector area 2 4 User Data Memoty RAM User data memory of MCIOPIIB has 32 bytes which are shared with stack For more information about stack please refer to the datasheet HC05 Instruction Set 2 5 Control Registers All the registers of 1 11 are listed below Detail functions of these registers are described in the following contents Address Name R W Bit7 Bit6 Bit5 Bit4 Bit2 Bit1 Bit O Initial Value 00 KEY RW 7 K6 K5 K4 K3 K2 K1 KO uuuu uuuu 01 MCR R W OUTC K12 K11 K10 K9 K8 001u uuuu 02 RW P01M 1 PO1D PO1 POOM POOU POOD 0000 0000 Note u means the initial value is indefinite 3 System Clock Internal high accuracy RC oscillator generates signal Fosc The primary system clock Fsys is 1 2 frequency division of the signal Fosc The frequency of MCIOPIIB s RC oscillator is 4MHz 4 T shape Keyboard Scanning Circuit Comparing vith regular mode T shape keyboard mode can scan more keys using the same number of pins The pin 50 512 and GND of 1 11 can scan the maximum of 91 keys The schematic is shown bellow Shanghai SinoMCU Microelectronics Co Ltd 5 21 s nsmcu Be 19 fn EB 50 MC10

Download Pdf Manuals

image

Related Search

Related Contents

UDC-ACE - IKONICS      Panasonic PV-L657 Camcorder User Manual  Trust 20394 screen protector  Manual - Tramsoft  MANUAL DEL USUARIO  Operação - McElroy  T-Comfort 730 Systemtelefon  M-Avax XC3-II-A  

Copyright © All rights reserved.
Failed to retrieve file