CN205594383U - Microcontroller and input/output pin mapping circuit thereof - Google Patents

Microcontroller and input/output pin mapping circuit thereof Download PDF

Info

Publication number
CN205594383U
CN205594383U CN201620372730.9U CN201620372730U CN205594383U CN 205594383 U CN205594383 U CN 205594383U CN 201620372730 U CN201620372730 U CN 201620372730U CN 205594383 U CN205594383 U CN 205594383U
Authority
CN
China
Prior art keywords
input
module
mapping
output pin
control
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
CN201620372730.9U
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 CN201620372730.9U priority Critical patent/CN205594383U/en
Application granted granted Critical
Publication of CN205594383U publication Critical patent/CN205594383U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

The utility model belongs to the technical field of the circuit, a microcontroller and input/output pin mapping circuit thereof is provided. The utility model discloses in, control information storage module receives and saves control information to send control information to decoder module, decoder module is to control information decode and export a control signal and reflect the injection die piece to the pin, and the pin reflects the 2nd control signal that the injection die root tuber exported according to the control end of a control signal and functional module and shines upon a plurality of inputs and a plurality of output correspondence of functional module to a plurality of decoder module 1 pins of pin decoder module 0. This input/output pin mapping circuit can be according to control signal's difference and produce different pin mapping relation, consequently can make the position of microcontroller's special function input/output pin follow control signal's change and change, has solved to make the problem that printed circuit board's volume is difficult to to reduce because of MCU's special function input/output pin rigidity.

Description

A kind of microcontroller and input and output pin mapping circuit thereof
Technical field
This utility model belongs to circuit engineering field, particularly relates to a kind of microcontroller and input and output pin thereof Mapping circuit.
Background technology
Microcontroller (Microcontroller Unit, MCU) is in various electronic product, industrial control system Indispensable circuit control core unit, generally comprises several functions unit, wherein function list inside MCU Unit can be timer counter unit, PWM generation unit, infrared coding unit or infrared decoding unit etc., will The internal several functions unit comprised of MCU is referred to as functional module.In order to meet the need of different application occasion Ask, inside the MCU of different electronic products, there is different functional modules, functional module multiple defeated Enter pin and multiple output pin is respectively mapped on the different input and output pins of MCU, form MCU's Specific function input and output pin.For wearable device, it requires that the volume of printed circuit board (PCB) is the smaller the better, Wiring on printed circuit board (PCB) and the layout of device directly affect the volume of printed circuit board (PCB), and the spy of MCU The position of distinguished service energy input and output pin is the key factor affecting wiring and device layout on printed circuit board (PCB) One of.But for existing MCU, the position of its specific function input and output pin is solid on MCU Fixed, generally for avoiding on MCU on some specific function input and output pin and printed circuit board (PCB) other Line between device intersects, and has to extend connecting line or increase the spacing between MCU and other devices, Therefore, this will be difficult to reduce the volume of printed circuit board (PCB).Therefore, what prior art existed because of MCU is special Function input and output pin position is fixed and is made the volume of printed circuit board (PCB) be difficult to the problem reduced.
Utility model content
The purpose of this utility model is to provide a kind of input and output pin mapping circuit, it is intended to solve existing skill What art existed makes the volume of printed circuit board (PCB) because the specific function input and output pin position of MCU fixes It is difficult to the problem reduced.
This utility model is achieved in that the input and output pin mapping circuit of a kind of microcontroller, described Input and output pin mapping circuit is built in described microcontroller, described input and output pin mapping circuit bag Include control information storage module, decoder module and map pins module.
Described control information storage module receives the outside control information sent of described microcontroller, described control The outfan of information storage module processed is connected with the input of described decoder module, described decoder module defeated Go out end to be connected with the first control end of described map pins module, the second control of described map pins module End is connected with the control end of functional module in described microcontroller, multiple connections of described map pins module End is connected with multiple inputs and multiple outfan of described functional module respectively, described map pins module Multiple mapping ends be connected with multiple input and output pins of pin interface module in described microcontroller respectively Connect.
Described control information storage module stores described control information, and sends described control information to described Decoder module, described decoder module described control information is decoded and export first control signal to described Map pins module, described map pins module is according to described first control signal and the control of described functional module The second control signal that end processed is exported is reflected corresponding with multiple outfans for multiple inputs of described functional module It is incident upon multiple input and output pins of described pin interface module.
Another object of the present utility model also resides in and provides a kind of and include above-mentioned input and output pin mapping circuit Microcontroller.
In this utility model, input and output pin mapping circuit is built in microcontroller, and includes controlling Information storage module, decoder module and map pins module.Control information storage module receive and store micro-control The outside control information sent of device processed, and send control information to decoder module, decoder module is to control Information is decoded and exports first controlling signal to map pins module, and map pins module is according to the first control Second control signal controlling end output of signal processed and functional module is by multiple inputs of functional module and many Individual outfan correspondence mappings is to multiple input and output pins of pin interface module.This input and output pin maps Circuit can produce different map pins relations according to the difference of control signal, therefore can make microcontroller The change of the location following control signal of specific function input and output pin and change, solve because of MCU's Specific function input and output pin position is fixed and is made the volume of printed circuit board (PCB) be difficult to the problem reduced.
Accompanying drawing explanation
Fig. 1 is the structural representation of the input and output pin mapping circuit that this utility model embodiment provides;
Fig. 2 is the structural representation of the input and output pin mapping circuit that another embodiment of this utility model provides Figure;
Fig. 3 is the structural representation of the input and output pin mapping circuit that another embodiment of this utility model provides Figure.
Detailed description of the invention
In order to make the purpose of this utility model, technical scheme and advantage clearer, below in conjunction with accompanying drawing And embodiment, this utility model is further elaborated.Should be appreciated that described herein specifically Embodiment, only in order to explain this utility model, is not used to limit this utility model.
Fig. 1 shows the structure of the input and output pin mapping circuit that this utility model embodiment provides, in order to Being easy to explanation, illustrate only the part relevant to this utility model embodiment, details are as follows:
Input and output pin mapping circuit is built in microcontroller, and input and output pin mapping circuit includes control Information storage module 100 processed, decoder module 200 and map pins module 300.
Controlling information storage module 100 and receive the outside control information sent of microcontroller, control information is deposited The outfan of storage module 100 is connected with the input of decoder module 200, the outfan of decoder module 200 Be connected with the first of map pins module 300 the control end, the second control end of map pins module 300 with In microcontroller, the control end of functional module 10 is connected, and multiple connection ends of map pins module 300 are respectively Being connected with multiple inputs and multiple outfan of functional module 10, the multiple of map pins module 300 are reflected Penetrate end to be connected with multiple input and output pins of pin interface module 20 in microcontroller respectively.
Control information storage module 100 and store control information, and send control information to decoder module 200, Control information is decoded and exports first controlling signal to map pins module 300 by decoder module 200, The second control that map pins module 300 is exported according to the control end of the first control signal and functional module 10 Signal by multiple inputs of functional module 10 and multiple outfan correspondence mappings to pin interface module 20 Multiple input and output pins.
Concrete, pin interface module 20 is universal input/output (the General Purpose in microcontroller Input Output, GPIO) module.Functional module 10 is the multiple functional units included in microcontroller General name, wherein functional unit can be timer counter unit, PWM generation unit, watchdog unit, red Outer coding unit or infrared decoding unit etc., multiple inputs of functional module 10 are the defeated of multiple functional unit Enter the summation of end, the summation of the outfan that multiple outfans are multiple functional unit of functional module 10.
Concrete, the outside control information sent of microcontroller is transmitted extremely by the burning interface of microcontroller Control information storage module 100;Control information storage module 100 the control information received is stored And it is forwarded to decoder module 200;Control information is resolved by decoder module 200, and parsing is obtained First control signal sends to map pins module 300, and wherein, the first control signal is used for controlling function mould The multiple inputs of block 10 mapping relations respectively and between multiple input and output pins of pin interface module 20, And the multiple outfans multiple input and output with pin interface module 20 respectively controlling functional module 10 draw Mapping relations between foot;The control end output second of functional module 10 controls signal to map pins module 300, Wherein, the second control signal is used for selecting the multiple outfans mapped on same input and output pin, To ensure only to be mapped with functional module 10 on each input and output pin of each moment pin interface module 20 An outfan.When the control information sent when microcontroller is outside changes or functional module 10 Control the second control signal of being exported of end when changing, multiple inputs of functional module 10 and multiple Outfan mapping relations respectively and between multiple input and output pins of pin interface module 20 change.
As this utility model one embodiment, as in figure 2 it is shown, control information storage module 100 to include programming Unit 101 and memory element 102;Programming unit 101 receives the outside control information sent of microcontroller, The outfan of programming unit 101 is connected with the input of memory element 102, the output of memory element 102 End is for controlling the outfan of information storage module 100.
Programming unit 101 will control programming information and control letter to memory element 102, memory element 102 storage Cease and send control information to decoder module 200.
Concrete, programming unit 101 will control programming information extremely according to the sequential required by memory element 102 Memory element 102.Memory element 102 is nonvolatile memory, deposits in the case of microcontroller power-off The content stored in storage unit 102 is not lost.
As this utility model one embodiment, as in figure 2 it is shown, map pins module 300 includes input pin Map unit 301 and output pin map unit 302.
Multiple connection ends of input pin map unit 301 and multiple connections of output pin map unit 302 End collectively constitutes multiple connection ends of map pins module 300, multiple companies of input pin map unit 301 Connect end to be connected with multiple inputs of functional module 10 respectively, multiple companies of output pin map unit 302 Connect end to be connected with multiple outfans of functional module 10 respectively;The multiple of input pin map unit 301 are reflected The multiple mapping ends penetrating end and output pin map unit 302 are multiple mappings of map pins module 300 End;The first control end that control end is map pins module 300 of input pin map unit 301, output First control end of map pins unit 302 and second controls end and is respectively the first of map pins module 300 Control end and second and control end.
As this utility model one embodiment, as it is shown on figure 3, input pin map unit 301 includes multiple MUX Q.
The end that controls of each MUX Q connects the control end forming input pin map unit 301, often altogether Multiple inputs of individual MUX Q are multiple mapping ends of input pin map unit 301, Mei Geduo Outfan is input pin map unit 301 connection end of road selector Q.
Concrete, the number of MUX Q is identical with the number of the input of functional module 10, each The outfan of MUX Q is connected with an input of functional module 10, each MUX Q The first control signal of being exported by decoder module 200 of control signal, each MUX Q is according to Certain input and output pin in one control signal selection pin interface module 20 is defeated with MUX Q Go out end to be connected, i.e. select certain input and output pin corresponding to functional module 10 according to the first control signal Input between formed mapping relations.When the first control signal changes, pin interface module 20 Multiple input and output pins and multiple inputs of functional module 10 between mapping relations also change.
As this utility model one embodiment, as it is shown on figure 3, output pin map unit 302 includes multiple Map subelement (Z1~Zn).Of each mapping subelement in multiple mapping subelements (Z1~Zn) One controls end connects the first control end forming output pin map unit 302, the of each mapping subelement altogether Two control end connects the second control end forming output pin map unit 302 altogether, and each mapping subelement is many Individual connection end is multiple connection ends of output pin map unit 302, and the mapping end of each mapping subelement is One mapping end of output pin map unit 302.
Concrete, the number of multiple mapping subelements (Z1~Zn) and the input and output of pin interface module 20 The number of pin is identical.
As it is shown on figure 3, the structure of each mapping subelement in multiple mapping subelements (Z1~Zn) is identical, And each mapping subelement includes the first MUX Q1 and the second MUX Q2;
The control end controlling end and the second MUX Q2 of the first MUX Q1 respectively maps son First control end of unit and second controls end, and multiple inputs of the first MUX Q1 are for mapping son Multiple connection ends of unit, the outfan of the first MUX Q1 and the first of the second MUX Q2 Input is connected, an input in multiple inputs of the first MUX Q1 and the second multichannel Second input of selector Q2 is connected, and the outfan of the second MUX Q2 is to map subelement Map end.
Concrete, an input in multiple inputs of the first MUX Q1 and the choosing of the second multichannel The second input selecting device Q2 is connected, wherein, and multiple inputs of specifically chosen first MUX Q1 Which input and the second input of the second MUX Q2 in end are connected, can by user according to Demand unrestricted choice.The outfan of the second MUX Q2 is defeated with pin interface module 20 input Go out pin to be connected.
The operation principle of each mapping subelement is identical, and concrete operation principle is: the first MUX Q1 An outfan in multiple outfans of functional module 10 and the first multichannel is selected according to the first control signal The outfan of selector Q1 is connected, and i.e. selects an outfan in multiple outfans of functional module 10 Being connected with the first input end of the second MUX Q2, the second MUX Q2 controls according to second Its first input end of signal behavior or the second input are connected with its outfan, i.e. select functional module 10 Multiple outfans in an outfan map on an input and output pin of pin interface module 20.
Based on above-mentioned input and output pin mapping circuit application advantage in the microcontroller, this utility model is also Provide a kind of microcontroller including above-mentioned input and output pin mapping circuit.
In this utility model, control information storage module and receive and store control information, and information will be controlled Sending to decoder module, control information is decoded and exports first controlling signal to pin and reflecting by decoder module Penetrating module, map pins module is according to the first control signal and second control controlling end output of functional module Signal is multiple defeated by multiple inputs of functional module and multiple outfan correspondence mappings to pin interface module Enter output pin.This input and output pin mapping circuit can produce different drawing according to the difference of control signal Foot mapping relations, therefore can make the location following control signal of the specific function input and output pin of microcontroller Change and change, solve make because the specific function input and output pin position of MCU fixes printing The volume of circuit board is difficult to the problem reduced.
The foregoing is only preferred embodiment of the present utility model, not in order to limit this utility model, All any amendment, equivalent and improvement etc. made within spirit of the present utility model and principle, all should Within being included in protection domain of the present utility model.

Claims (7)

1. an input and output pin mapping circuit for microcontroller, in described input and output pin mapping circuit It is placed in described microcontroller, it is characterised in that described input and output pin mapping circuit includes control information Memory module, decoder module and map pins module;
Described control information storage module receives the outside control information sent of described microcontroller, described control The outfan of information storage module processed is connected with the input of described decoder module, described decoder module defeated Go out end to be connected with the first control end of described map pins module, the second control of described map pins module End is connected with the control end of functional module in described microcontroller, multiple connections of described map pins module End is connected with multiple inputs and multiple outfan of described functional module respectively, described map pins module Multiple mapping ends be connected with multiple input and output pins of pin interface module in described microcontroller respectively Connect;
Described control information storage module stores described control information, and sends described control information to described Decoder module, described decoder module described control information is decoded and export first control signal to described Map pins module, described map pins module is according to described first control signal and the control of described functional module The second control signal that end processed is exported is reflected corresponding with multiple outfans for multiple inputs of described functional module It is incident upon multiple input and output pins of described pin interface module.
2. input and output pin mapping circuit as claimed in claim 1, it is characterised in that described pin reflects Penetrate module and include input pin map unit and output pin map unit;
Multiple connection ends of described input pin map unit and multiple connections of described output pin map unit End collectively constitutes multiple connection ends of described map pins module, multiple companies of described input pin map unit Connect end to be connected with multiple inputs of described functional module respectively, described output pin map unit multiple Connect end to be connected with multiple outfans of described functional module respectively;Described input pin map unit is many Multiple mapping ends of individual mapping end and described output pin map unit are the multiple of described map pins module Map end;The first control end that control end is described map pins module of described input pin map unit, First control end of described output pin map unit and second controls end and is respectively described map pins module First controls end and second controls end.
3. input and output pin mapping circuit as claimed in claim 2, it is characterised in that described input is drawn Foot map unit includes multiple MUX;
The end that controls of each described MUX connects the control end forming described input pin map unit altogether, Multiple inputs of each described MUX are multiple mapping ends of described input pin map unit, often The outfan of individual described MUX is a connection end of described input pin map unit.
4. input and output pin mapping circuit as claimed in claim 2, it is characterised in that described output is drawn Foot map unit includes multiple mapping subelement;
First control end of each described mapping subelement connects altogether and forms the first of described output pin map unit Controlling end, the second control end of each described mapping subelement connects altogether and forms described output pin map unit Second controls end, and multiple connection ends of each described mapping subelement are that described output pin map unit is many Individual connection end, the mapping that mapping end is described output pin map unit of each described mapping subelement End.
5. input and output pin mapping circuit as claimed in claim 4, it is characterised in that reflect described in each The structure penetrating subelement is identical, and each described mapping subelement includes the first MUX and the second multichannel Selector;
The control end controlling end and described second MUX of described first MUX is respectively described The the first control end and second mapping subelement controls end, and multiple inputs of described first MUX are Multiple connection ends of described mapping subelement, the outfan of described first MUX and described second multichannel The first input end of selector is connected, an input in multiple inputs of described first MUX End is connected with the second input of described second MUX, the outfan of described second MUX Mapping end for described mapping subelement.
6. input and output pin mapping circuit as claimed in claim 1, it is characterised in that described control is believed Breath memory module includes programming unit and memory element;Described programming unit receives the outside institute of described microcontroller The control information sent, the outfan of described programming unit is connected with the input of described memory element, institute State the outfan that outfan is described control information storage module of memory element;
Described control programming information to described memory element, described memory element are stored institute by described programming unit State control information and described control information is sent to described decoder module.
7. a microcontroller, it is characterised in that described microcontroller includes any one of claim 1 to 6 Described input and output pin mapping circuit.
CN201620372730.9U 2016-04-28 2016-04-28 Microcontroller and input/output pin mapping circuit thereof Active CN205594383U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620372730.9U CN205594383U (en) 2016-04-28 2016-04-28 Microcontroller and input/output pin mapping circuit thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620372730.9U CN205594383U (en) 2016-04-28 2016-04-28 Microcontroller and input/output pin mapping circuit thereof

Publications (1)

Publication Number Publication Date
CN205594383U true CN205594383U (en) 2016-09-21

Family

ID=56933165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620372730.9U Active CN205594383U (en) 2016-04-28 2016-04-28 Microcontroller and input/output pin mapping circuit thereof

Country Status (1)

Country Link
CN (1) CN205594383U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329417A (en) * 2016-04-28 2017-11-07 深圳市博巨兴实业发展有限公司 A kind of microcontroller and its input and output pin mapping circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329417A (en) * 2016-04-28 2017-11-07 深圳市博巨兴实业发展有限公司 A kind of microcontroller and its input and output pin mapping circuit
CN107329417B (en) * 2016-04-28 2023-08-15 深圳市博巨兴微电子科技有限公司 Microcontroller and input/output pin mapping circuit thereof

Similar Documents

Publication Publication Date Title
CN102495565B (en) Phased array radar antenna beam control device
CN103677671B (en) Data reading-writing method and system of electrical port module
CA2446983A1 (en) Programmable logic device including programmable interface core and central processing unit
CN205450909U (en) BMC based on FPGA realizes
CN103098039B (en) High-speed peripheral device interconnection bus port collocation method and equipment
CN104008082A (en) Converter of 1553B bus remote terminal (RT) node and controller area network (CAN) bus
CN205594383U (en) Microcontroller and input/output pin mapping circuit thereof
CN106598895A (en) Small function board recognition system and method
CN107329417A (en) A kind of microcontroller and its input and output pin mapping circuit
CN100533424C (en) Single line transmission interface and single byte operational keyboard display module
CN210954663U (en) Cluster type lock control system
CN206961114U (en) Pin time-sharing multiplex circuit, motherboard circuit and the electronic equipment of programmable chip
CN103809769A (en) BLOCKRAM cascade connection achieving structure
CN205608716U (en) Multiunit optical module communication interface switching circuit
CN203038265U (en) General-purpose input/output (GPIO) multiplex circuit
CN205210574U (en) Two obs core control modules based on microcontroller realizes FPGA data configuration
CN203596840U (en) Decimal system coding address conversion device
CN107918593A (en) The expansion interface circuit and communication means of the one-to-many universal serial bus of near-end
CN202886025U (en) Intelligent pressure transmitter
CN209015139U (en) A kind of I2C bus circuit, chip and system
CN205229717U (en) A man -machine interface device for industrial equipment
CN202948445U (en) Universal serial bus (USB) interface expansion circuit
CN101621549B (en) LonWorks node multi-I/O device based on nerve cell chip
CN205384494U (en) Parallel bus backplate of PLC controller
CN205540143U (en) Communication control unit of main website

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, Building D, New Material Port, No. 2 Changyuan, Zhongxin Road, Nanshan District, Shenzhen City, Guangdong Province

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