CN205405170U - Towards low -power consumption MCU -SOC system that keying class was used - Google Patents

Towards low -power consumption MCU -SOC system that keying class was used Download PDF

Info

Publication number
CN205405170U
CN205405170U CN201620170187.4U CN201620170187U CN205405170U CN 205405170 U CN205405170 U CN 205405170U CN 201620170187 U CN201620170187 U CN 201620170187U CN 205405170 U CN205405170 U CN 205405170U
Authority
CN
China
Prior art keywords
keyboard scan
module
cpu
scan module
power consumption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201620170187.4U
Other languages
Chinese (zh)
Inventor
万上宏
叶媲舟
黎冰
涂柏生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Bojuxing Microelectronics Technology Co., Ltd.
Original Assignee
SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd filed Critical SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Priority to CN201620170187.4U priority Critical patent/CN205405170U/en
Application granted granted Critical
Publication of CN205405170U publication Critical patent/CN205405170U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The utility model relates to a does MCU technical field specifically disclose a low -power consumption MCU who uses towards the keying class the SOC system comprises with the outside on & off switch disk array of chip CPU, clock control module, keyboard scan module, clock control module is connected with CPU, keyboard scan module respectively, and the keyboard scan module is connected with the outside on & off switch disk array of chip, and CPU is still connected to the keyboard scan module. Whether the keyboard scan module is arranged in constantly monitoring the outside on & off switch disk array of chip has the button to be triggered, when a certain button in the outside on & off switch disk array of chip is effectively triggered, and keyboard scan module production interrupt request to to awaken CPU up. The user only need read the code that the key value register can obtain the corresponding switch button of being pressed. User interface is succinct, provides succinct button code, and only need read the key value register can.

Description

A kind of low-power consumption MCU-SOC system towards the application of keying class
Technical field
The utility model relates to MCU technical field, a kind of low-power consumption towards the application of keying class MCU-SOC system.
Background technology
Micro-control unit (Microcontroller Unit;MCU), also known as one chip microcomputer (Single Chip Microcomputer) or single-chip microcomputer, it is central processing unit (Central Process Unit;CPU) frequency Do suitably reduction with specification, and by internal memory (memory), counter (Timer), USB, A/D conversion, UART, The perimeter interfaces such as PLC, DMA, even LCD drive circuit is all incorporated on one chip, forms chip-scale Computer, do various combination control for different application scenarios.Such as mobile phone, PC are peripheral, remote controller, To automotive electronics, industrial stepper motor, the control etc. of robotic arm, the figure of the most visible MCU.
Towards the application of keying class MCU application in electronic product widely, nearly all relating to needs Key scan logic is arrived by the electronic product of key control being required for use.Common product is such as us at one's side Various remote controllers, the physical button on PC keyboard, mouse, mobile phone.Because the monitoring of button needs one straight OK, thus in a lot of products application, the most battery powered use occasion, how to accomplish that low-power consumption is one Individual very important problem.
Utility model content
The purpose of this utility model is to provide a kind of low-power consumption MCU-SOC system towards the application of keying class, With the problem solving to propose in above-mentioned background technology.
For achieving the above object, the following technical scheme of the utility model offer:
A kind of towards keying class application low-power consumption MCU-SOC system, by CPU, clock control module, Keyboard scan module forms with chip exterior switchboards array;Clock control module respectively with CPU, keyboard Scan module connects, and keyboard scan module is connected with chip exterior switchboards array, and keyboard scan module also connects Meet CPU.
As further program of the utility model: keyboard scan module is by keyboard scan state judging module and key Dish scanning sequence control module forms.
As further program of the utility model: chip exterior switchboards array is provided with I/O port, IO The number of port is no less than 1.
As further program of the utility model: be additionally provided with and encode for memorization COMS clip external switch keyboard array The register of key assignments.
Compared with prior art, the beneficial effects of the utility model are:
The utility model provides a kind of low-power consumption MCU-SOC system towards the application of keying class.Apply this During MCU SOC, it is only necessary at the external succinct chip exterior switchboards array of chip exterior.Chip By relatively low power consumption monitoring chip exterior switchboards array whether built-in low-power consumption key scan module, can Switch key is had to connect.When there being switch key to press, chip internal produces key scan to interrupt, by MCU Wake up up from low-power consumption mode.User has only to read the key assignments register in chip, and i.e. available correspondence is pressed Under the coding of switch key.
The utility model has the advantages that: one, a kind of low-power consumption MCU-SOC system towards the application of keying class is provided System;Two, user interface is succinct, it is provided that succinct keyboard-coding, it is only necessary to read key assignments register.
Accompanying drawing explanation
Fig. 1 is system block diagram of the present utility model;
Fig. 2 is clock control module schematic diagram;
Fig. 3 is the chip exterior switchboards array example of 5 port compositions;
Fig. 4 is the simplification figure of the chip exterior switchboards array example of 5 port compositions;
Fig. 5 is the simplification figure of the chip exterior switchboards array example of n port composition;
Fig. 6 is key scan module operation principle schematic diagram A;
Fig. 7 is key scan module operation principle schematic diagram B.
Fig. 8 is the logic realization schematic diagram of key scan module.
Detailed description of the invention
Below in conjunction with the utility model embodiment, the technical scheme in the utility model embodiment is carried out clearly Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the utility model, and not It it is whole embodiments.Based on the embodiment in the utility model, those of ordinary skill in the art are not making The every other embodiment obtained under creative work premise, broadly falls into the scope of the utility model protection.
Embodiment 1
In the utility model embodiment, a kind of low-power consumption MCU-SOC system towards the application of keying class. The main functional component of MCU-SOC system is as shown in Figure 1.Including CPU, clock control module, Keyboard scan module and chip exterior switchboards array.Keyboard scan module is by keyboard scan state judging module Form with keyboard scan sequence control module.Clock control module is adjudicated with CPU, keyboard scan state respectively Module, keyboard scan sequence control module connect, and keyboard scan state judging module, keyboard scan sequence control Module is all connected with chip exterior switchboards array, and keyboard scan state judging module is also connected with CPU.
Wherein keyboard scan module needs whether have button to be touched in moment monitoring chip exterior switchboards array Send out, when a certain button in chip exterior switchboards array is effectively triggered, during keyboard scan module produces Disconnected request (KSI), by CPU from the sleep mode wakeup of low-power consumption.CPU is according to the work pre-set Different buttons is made corresponding process by program.Chip exterior switchboards array as shown in Figure 3 is one Simple exemplary applications.In this example, 5 I/O port (being not limited to the situation of 5 I/O port) are had to be used for Arrange chip exterior switchboards array, have unique switch key between each two I/O port with relative Should.By the switch number on Fig. 3 chip exterior switchboards array, and simplify as shown in Figure 4.
In the utility model embodiment, only to have 5 I/O port for arranging chip exterior switchboards battle array It is classified as example.But the utility model is not limited to the situation of only 5 I/O port.When the more I/O port of needs is used In time arranging chip exterior switchboards array (as shown in Figure 5), principle is the same.
Key scan sequential in keyboard scan module produces the I/O scan that submodule is responsible for producing as shown in Figure 6 Sequential, keyboard scan state judging module is responsible for judging I/O port state.Between P0 and P5 When switch key is pressed, P0 with P5 is connected, their level state i.e. identical.Keyboard scan When module is operated in scan pattern, keyboard scan sequence control module participate in scanning I/O port one of them Being set to output low level, remaining all I/O port participating in scanning is set to the input pattern with pull-up resistor. So cyclically scan.Keyboard scan sequence control module can detect these I/O port states being set to input, If the state of these input I/O port has low level, button is i.e. had to press (as shown in Figure 7);If these When the state of input I/O port is all high level, i.e. it is pressed without button.
User has only to read key assignments register, i.e. can obtain the triggering shape of chip exterior switchboards array State.The rule of keyboard-coding is as shown in table 1.Table is listed two kinds of keyboard-coding relations.As keyboard-coding CODE When being configured to 0, selection key coding C0.When keyboard-coding CODE is configured to 1, selection key encodes C1.Table only lists the coding (from port 0~port 4) of 5 I/O port composition switch keys, as needed Use more port composition chip exterior switchboards array, can be analogized by the coding rule of table 1.
Table 1 keyboard-coding list
The work clock (CLK_CPU) of high frequency CPU and the clock (CLK_SCAN) of low frequency keyboard scan module It both is from clock control module.When keyboard scan module works, when clock control module is by CLK_SCAN Clock is opened, and is closed by CLK_CPU.I.e. keyboard scan module normally works, and CPU will not work, The clock network relevant to its work also will not produce upset power consumption.Because the logic function phase of keyboard scan module For CPU very simple, its power consumption for CPU the least, so in keyboard scan During module work, whole CPU-SOC system is in low-down power consumption levels.The power consumption of keyboard scan module with Its working clock frequency is directly proportional.In the utility model, the working clock frequency of keyboard scan module is low frequency 10KHz, and in the case of application scenario is less demanding to scan frequency, it is configurable to minimum work Frequency is 16 frequency dividings of 10KHz, can be substantially reduced the power consumption in the scanning work engineering of keyboard scan module.
The logic realization schematic diagram of key scan module is as shown in Figure 8.Key scan module is responsible for producing IO and is swept Retouch sequential, judge whether button is effectively triggered by the I/O state when scanning.Key scan module works When scan pattern, " I/O scan shift register " control the direction of IO in switch key array. The IO participating in scanning, one of them is set to output and is low level state key scan module, and remaining owns The IO participating in scanning is set to the input pattern with pull-up resistor.After scanning through an IO, then by " IO Scan shift register " move to left one, ensuing IO is set to output and for low level state, remaining All IO participating in scanning are set to the input pattern with pull-up resistor.So cyclically scan.Key scan Module is by a series of logical operations (as shown in Figure 8), it is therefore an objective to detect these IO shapes being set to input State, if the state of these inputs IO has low level, i.e. has button to press (as shown in Figure 7), and generation is pressed Key triggers and interrupts.If the state of these inputs IO is all high level, i.e. it is pressed without button.
Table 2 user interface register list
Name Address Dir Default Description
SCANCON 4CH R/W 00000000 Key scan controls register
SCANSP 4DH R/W 00000000 Scanning port enables register
KEY 4EH R 00000000 Scanning key assignments register
Table 3SCANCON (key scan control register) 4CH
4CH Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
SCANCON KSIF - - CODE SCANCK[1] SCANCK[0] KSIE SCANEN
Read/write R - - R/W R/W R/W R/W R/W
Initial value 0 - - 0 0 0 0 0
User interface register description
Bit0 SCANEN: key scan enables control bit
1=opens key scan
0=forbids key scan
Bit1 KSIE: key scan interrupts enabling position
1=enables key scan to interrupt
0=forbids that key scan interrupts
Bit2~Bit3 SCANCK: key scan clock division selects
Key scan clock division selects as follows with the relation of configuration:
00:Fsck/1;
01:Fsck/2;
10:Fsck/4;
11:Fsck/16;
Bit4 CODE: key assignments codes selection position
In 1=scanning key assignments register, logic 1 represents that button is effective
In 0=scanning key assignments register, logical zero represents that button is effective
Bit7KSIF: key scan interrupt flag bit
1=key scan interrupt flag bit is effective
0=key scan interrupt flag bit is invalid
Table 4SCANSP (scanning port enable register) 4DH
Note: which port is set for chip exterior switchboards array by this register.Such as SCANSP0 Being set to 1 i.e., port p0 is used for chip exterior switchboards array, and otherwise port p0 is defeated as common input Go out port.
Table 5KEY (scanning key assignments register) 4EH
User operation flow process:
Open
Configuration scan clock frequency dividing selects (SCANCK);
Open key scan to interrupt enabling (KSIE);
The work opening key scan enables (SCANEN=1).
Perform STOP instruction, enter low-power consumption mode;
Wait that key scan interrupts waking up system up from low-power consumption mode, then read key assignments register (KEY) (user program, according to the corresponding relation of coding, obtains the information which button is pressed, then according to this information Run corresponding user-written subroutine).
Close
Close scan clock and enable (SCKEN=0 in CLKCON register);
The work closing key scan enables (SCANEN=0).
It is obvious to a person skilled in the art that the utility model is not limited to the thin of above-mentioned one exemplary embodiment Joint, and in the case of without departing substantially from spirit or essential attributes of the present utility model, it is possible to other concrete shape Formula realizes the utility model.Therefore, no matter from the point of view of which point, embodiment all should be regarded as exemplary, And be nonrestrictive, scope of the present utility model is limited by claims rather than described above, because of This is intended to include in this practicality new by all changes fallen in the implication of equivalency and scope of claim In type.
Moreover, it will be appreciated that although this specification is been described by according to embodiment, but the most each embodiment party Formula only comprises an independent technical scheme, and this narrating mode of specification is only for clarity sake, ability Field technique personnel should be using specification as an entirety, and the technical scheme in each embodiment can also be through suitable group Close, form other embodiments that it will be appreciated by those skilled in the art that.

Claims (4)

1. the low-power consumption MCU-SOC system towards the application of keying class, it is characterised in that be made up of with chip exterior switchboards array CPU, clock control module, keyboard scan module;Clock control module is connected with CPU, keyboard scan module respectively, and keyboard scan module is connected with chip exterior switchboards array, and keyboard scan module is also connected with CPU.
Low-power consumption MCU-SOC system towards the application of keying class the most according to claim 1, it is characterised in that keyboard scan module is made up of with keyboard scan sequence control module keyboard scan state judging module.
Low-power consumption MCU-SOC system towards the application of keying class the most according to claim 1, it is characterised in that chip exterior switchboards array is provided with I/O port, the number of I/O port is no less than 1.
Low-power consumption MCU-SOC system towards the application of keying class the most according to claim 1, it is characterised in that be additionally provided with the register for memorization COMS clip external switch keyboard array coding key assignments.
CN201620170187.4U 2016-03-03 2016-03-03 Towards low -power consumption MCU -SOC system that keying class was used Active CN205405170U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620170187.4U CN205405170U (en) 2016-03-03 2016-03-03 Towards low -power consumption MCU -SOC system that keying class was used

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620170187.4U CN205405170U (en) 2016-03-03 2016-03-03 Towards low -power consumption MCU -SOC system that keying class was used

Publications (1)

Publication Number Publication Date
CN205405170U true CN205405170U (en) 2016-07-27

Family

ID=56441965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620170187.4U Active CN205405170U (en) 2016-03-03 2016-03-03 Towards low -power consumption MCU -SOC system that keying class was used

Country Status (1)

Country Link
CN (1) CN205405170U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549499A (en) * 2016-03-03 2016-05-04 深圳市博巨兴实业发展有限公司 Low-power-consumption MCU-SOC system for keyed application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549499A (en) * 2016-03-03 2016-05-04 深圳市博巨兴实业发展有限公司 Low-power-consumption MCU-SOC system for keyed application

Similar Documents

Publication Publication Date Title
CN101477350B (en) Function-adjustable intelligent switch and its implementing method
CN105549499A (en) Low-power-consumption MCU-SOC system for keyed application
CN205405170U (en) Towards low -power consumption MCU -SOC system that keying class was used
CN106166048A (en) A kind of Intelligent cleaning robot based on ARM7 microprocessor technology
CN105183509A (en) Apparatus and method for realizing shutdown of system power after soft-off
CN201569497U (en) Control system for temperature measurement and alarm
CN201035573Y (en) Flash memory microcontroller
CN102455032A (en) Air purifier based on 51 type singlechip
CN203117727U (en) Multifunctional controller
CN102468842A (en) Synchronous counter circuit and realization method thereof
CN201974664U (en) LCD (liquid crystal display) electronic manipulator of novel revolving door control system
CN202886924U (en) Miniature PLC controller
CN206099829U (en) Stepper motor controller of low energy consumption
CN206741570U (en) A kind of 4 line electric capacity door handle Acquisition Circuits
CN106775395B (en) Voice touch screen equipment with single key and method for realizing state switching and identity verification by using key
CN201725187U (en) Automatic control system of microcomputer
CN110308707A (en) Controller, intelligentized Furniture and key control method
CN202947803U (en) Monobus temperature routing inspection device
CN205620995U (en) Enhancement mode combination treater based on FPGA
CN205193738U (en) Support PS2 and USB double nip keyboard of special function key
CN209674423U (en) A kind of door lock assembly of view-based access control model detection two dimensional code unlock transmitting signal
CN204791712U (en) Experimental development board based on singlechip
CN205665638U (en) Server mainboard convenient to BIOS sets up
CN217932476U (en) Electronic cam controller based on PLC
CN201373994Y (en) Intelligent switch with adjustable function

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518051 Shenzhen Nanshan District, Guangdong Province, Guangdong Province, Yuehai Street High-tech Zone Community Science and Technology South Road 18 Shenzhen Bay Science and Technology Eco-Park 12 Skirt Building 732

Patentee after: Shenzhen Bojuxing Microelectronics Technology Co., Ltd.

Address before: 518000 4th Floor, New Material Port D(4) Building, No.2 Changyuan New Material Port, Zhongxin Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen Bojuxing Industrial Development Co., Ltd.