CN103389959A - Modular multi-data conversion device and conversion method thereof - Google Patents
Modular multi-data conversion device and conversion method thereof Download PDFInfo
- Publication number
- CN103389959A CN103389959A CN2013103011785A CN201310301178A CN103389959A CN 103389959 A CN103389959 A CN 103389959A CN 2013103011785 A CN2013103011785 A CN 2013103011785A CN 201310301178 A CN201310301178 A CN 201310301178A CN 103389959 A CN103389959 A CN 103389959A
- Authority
- CN
- China
- Prior art keywords
- module
- arm cortex
- core microprocessor
- cortex core
- data
- 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.)
- Granted
Links
Images
Landscapes
- Microcomputers (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a modular multi-data conversion device and a conversion method thereof. The modular multi-data conversion device consists of a core control module based on an ARM Cortex core microprocessor, a power supply module, a keyboard setting module, an LED (Liquid Crystal Display) module and selectable communication modules including a bluetooth module, a Zigbee module, a CAN (Controller Area Network) module, an RS485 module and a Profibus module. The modular multi-data conversion device is characterized in that the selectable communication modules can be plugged in the communication interfaces of the core control module of the ARM Cortex core microprocessor according to actual needs to realize data format conversion and data transmission among various communication data. By adopting the design scheme that the high-performance processor based on an ARM Cortex core as a core control chip, by adopting a tailorable modular installation method in the aspect of hardware and by using the high-speed processing characteristic of the ARM Cortex core microprocessor, the functions of data conversion and transmission among various communication data are realized very conveniently and the modular multi-data conversion device has the advantages of high processing response speed, small size, higher flexibility, higher environmental adaptability and the like.
Description
Technical field
The invention belongs to the technical field of a kind of majority based on ARM Cortex core microprocessor according to the communication conversion.Particularly a kind of modular installation, majority are according to device and the data transfer device changed.
Background technology
Fieldbus be applied between commercial production in-site measurement opertaing device, bidirectional linked list multinode digital communication system between in-site measurement opertaing device and pulpit.Field bus technique, Industrial Ethernet and wireless communication technique are widely used in field of industrial production at present, the industrial field control network has now become requisite ingredient in the industrial control process system, but this problem of bringing multiple communication bus agreement in the commercial production scene, multiple industry communication standard and depositing.
the data converter product of existing difference in functionality on present domestic and international market, as the ADAM-4520 isolated form RS232/RS485 converter of Yanhua Co., Ltd, the RS232/485 of Beijing D﹠S FieldBus Technology Co., Ltd. turns Profibus and RS232/485 and turns the bus interface product of CAN, " a kind of double on-site bus interface converter " technology (CN200810048932.8), " the two-way communication conversion method of HBS bus communication protocol and RS-485 bus communication protocol " technology (CN201010140325.1), " a kind of intelligent switch power source communication protocols converter " technology (CN200620155551.6), " communication protocol interface systems and method " technology (CN200610003054.9), " based on the multi-serial communication protocol converter of ARM " technology (CN201220398667.8), " the gateway communication protocol conversion method of wireless sensor network access Modbus bus " technology (CN201010529440.8) etc.These technical research and product make some progress in the data-switching application, but its interface multi-fieldbus in translation function still can not meet the industrial process control field is controlled the demand of network data conversion.
Summary of the invention
the purpose of this invention is to provide a kind of based on ARM Cortex core microprocessor, but the modular of hardware using cutting is installed, the little modular majority of volume is according to conversion equipment and conversion method thereof, the present invention is based on the hardware Scalability of the high performance processing power of ARM Cortex core microprocessor chip and communication module, can suitably increase or reduce the quantity of communication module according to the needs of translation function, realize conversion and the data transmission of different communications protocol equipment room communication datas, with network management and the resource sharing that realizes the different bus network equipment, reach the purpose of saving fund.
in order to realize above-mentioned purpose, technical scheme of the present invention is: by the kernel control module based on ARM Cortex core microprocessor, power module, Keysheet module is set, LCD display module and communication module form, described communication module is bluetooth module, the Zigbee module, the CAN module, two or more modules in RS485 module and Profibus module, this conversion equipment can be as required patches optional communication module on the communication interface of the kernel control module of ARM Cortex core microprocessor, realize easily Data Format Transform between multiple communication data and the function of data transmission.Wherein:
The voltage input end of the kernel control module of ARM Cortex core microprocessor is connected with the voltage output end of power module; The keyboard output end that Keysheet module is set is connected with the keyboard input I/O end of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor; The LCD control end of LCD display module, LCD data terminal are controlled the I/O end with the LCD of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor respectively, the LCD data terminal is connected; The Bluetooth control end of bluetooth module is connected the kernel control module of ARM Cortex core microprocessor with the blue-teeth data end blue tooth interface is connected with the blue-teeth data end with the Bluetooth control I/O end of ARM Cortex core microprocessor respectively; The Zigbee control end of Zigbee module is connected the kernel control module of ARM Cortex core microprocessor with the Zigbee data terminal Zigbee interface is controlled the I/O end with the Zigbee of ARM Cortex core microprocessor respectively and is connected O with the Zigbee data I and holds and be connected; The CAN data terminal of CAN module is connected with the CAN data terminal of ARM Cortex core microprocessor respectively by the CAN interface of the kernel control module of ARM Cortex core microprocessor; The RS485 data terminal of RS485 module is connected the kernel control module of ARM Cortex core microprocessor with the RS485 control end RS485 interface is connected I/O end with the RS485 data terminal of ARM Cortex core microprocessor respectively and is connected with RS485; The Profibus control end of Profibus module is connected the Profibus interface of the kernel control module of Profibus address end by ARM Cortex core microprocessor and is controlled I/O port, Profibus data terminal, Profibus address end with the Profibus of ARM Cortex core microprocessor respectively and be connected with the Profibus data terminal; The serial data end of ARM Cortex core microprocessor is connected with the serial data end of RS232 serial port module, and the serial data end of RS232 serial port module is connected with the serial data end of RS232 equipment; The EEPROM data terminal of ARM Cortex core microprocessor, EEPROM control end are connected with EEPROM data, the EEPROM control end of eeprom memory; The SRAM data terminal of ARM Cortex core microprocessor, SRAM address end, SRAM control the I/O port and are connected with SRAM data, SRAM address end, the SRAM control end of SRAM storer respectively.
ARM Cortex core microprocessor of the present invention is ARM Cortex-M4 32-bit microprocessor or ARM Cortex-M3 32-bit microprocessor.
The concrete syndeton of conversion equipment of the present invention is:
Voltage output end VDD, the VCC of power module is connected with voltage input end VCC_5, the VCC_3.3 of the kernel control module of ARM Cortex core microprocessor respectively; The voltage output end VCC_3.3 of the kernel control module of ARM Cortex core microprocessor is connected with voltage input end VCC_3.3, the voltage input end VCC_3.3 of bluetooth module, voltage input end VCC_3.3, the voltage input end VCC_3.3 of CAN module of Zigbee module, the voltage input end VCC_3.3 of RS485 module, the voltage input end VCC_3.3 of Profibus module of LCD display module respectively; The voltage output end VCC_5 of the kernel control module of ARM Cortex core microprocessor is connected with the voltage input end VCC_5 of LCD display module; The earth terminal GND of power module is connected with the earth terminal GND of the kernel control module of ARM Cortex core microprocessor; The earth terminal GND of the kernel control module of ARM Cortex core microprocessor is connected with earth terminal GND, the earth terminal GND of bluetooth module, earth terminal GND, the earth terminal GND of CAN module of Zigbee module, the earth terminal GND of RS485 module, the earth terminal GND of Profibus module of LCD display module respectively;
The LCD of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor controls I/O port PD3, PD4, PD5 and is connected with LCD instruction control end RS, LCD read-write control end R/W, the LCD sheet choosing end CE of LCD display module respectively; The LCD data terminal PC[0:7 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor] with the LCD data terminal DB[0:7 of LCD display module] be connected;
The keyboard of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor input I/O port PC10, PC11, PC12, PC13, PC14 are connected with move to left key K1, the key K2 that moves to right, upper page key K3, Page Down keys K4, setting key K5 of the keyboard output end that Keysheet module is set respectively; The RESET input Reset of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with the reset output terminal Reset that Keysheet module is set;
Blue-teeth data RXD1, the TXD1 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with blue-teeth data end RXD1, the TXD1 of blue tooth interface respectively, and blue-teeth data end RXD1, the TXD1 of blue tooth interface is connected with blue-teeth data end RXD1, the TXD1 of bluetooth module respectively; Bluetooth control I/O port PD0, the PD1 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with Bluetooth control I/O port PD0, the PD1 of blue tooth interface respectively, and Bluetooth control I/O port PD0, the PD1 of blue tooth interface is connected with Bluetooth stream control end CTS1, the RTS1 of bluetooth module respectively; The bluetooth of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor I/O port PC8 and the bluetooth of the blue tooth interface I/O port PC8 that resets that resets is connected, and the bluetooth of the blue tooth interface I/O port PC8 that resets is connected with the bluetooth reseting controling end BL_RESET of bluetooth module;
the Zigbee data I of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor/O port PA4, PA5 is connected with the Zigbee data I of Zigbee interface/O port PA4, PA5 respectively, and the Zigbee data I of Zigbee interface/O port PA4, PA5 is connected with Zigbee data output end SO1, the Zigbee data input pin SI1 of Zigbee module respectively, the Zigbee of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor controls I/O port PA2, PD2, PD8, PD9, PC15 controls I/O port PA2 with the Zigbee of Zigbee interface respectively, PD2, PD8, PD9, PC15 connects, the Zigbee of Zigbee interface controls I/O port PA2, PD2, PD8, PD9, PC15 respectively with the Zigbee input end of clock SCLK1 of Zigbee module, the Zigbee sheet selects control end CSn1, Zigbee sends buffering control end FIFO, Zigbee accepts buffering control end FIFOA, Zigbee reset terminal ZG_RESET connects,
CAN data terminal CANTX, the CANRX of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with CAN data terminal CANTX, the CANRX of CAN interface respectively, and CAN data terminal CANTX, the CANRX of CAN interface is connected with CAN data terminal CANRX, the CANTX of CAN module respectively;
RS485 data terminal RXD2, the TXD2 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with RS485 data terminal RXD2, the TXD2 of RS485 interface respectively, and RS485 data terminal RXD2, the TXD2 of RS485 interface is connected with RS485 data terminal RXD2, the TXD2 of RS485 module respectively; The RS485 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor controls I/O port PB13, PB14 and is connected with RS485 control I/O port PB13, the PB14 of RS485 interface respectively, and the RS485 of RS485 interface controls I/O port PB13, PB14 and sends Enable Pin TE2 and be connected with RS485 reception Enable Pin RE2, the RS485 of RS485 module respectively;
the data terminal of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] respectively with the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] be connected the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] respectively with the Profibus data terminal DB[0:7 of Profibus module], address end AB[8:15] be connected, the Profibus control signal I/O port PD15 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 respectively with the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 connects, the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 reads control end RD3 with the Profibus of Profibus module respectively, Profibus writes control end WR3, address latch control end ALE3, Profibus interrupt output end XINT, Profibus reset terminal PF_RESET connects.
Serial data end TXD0, the RXD0 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with serial data end TXD0, the RXD0 of RS232 serial port module respectively; Data terminal TXD02, the RXD02 of RS232 serial port module is connected with the serial data end of RS232 equipment respectively; The earth terminal GND of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor and RS232 serial port module earth terminal GND be connected, the earth terminal GND of RS232 serial port module is connected with the earth terminal GND of RS232 equipment.
I2C port SCL, the SDA of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with I2C port SCL, the SDA of eeprom memory respectively.
The data of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor/address end PIE[0:7] respectively with the data input pin D[0:7 of latch], the data terminal DB[0:7 of SRAM storer] be connected; The data output end Q[0:7 of latch] with the address end AB[0:7 of SRAM storer] be connected; The address end PIE[8:15 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor] with the address end AB[8:15 of SRAM storer] be connected; The address latch I/O control end PJ6 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor is connected with the address latch control end LE of latch; The SRAM of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor controls I/O port PH6, PH7, PJ4, PJ5 and enables control end SCE1, sheet with the sheet of SRAM storer respectively and enable control end SCE2, output enable control end SOE, write and enable control end SWE and be connected.
The structure of bluetooth module of the present invention is:
Blue-teeth data end RXD1, the TXD1 of the bluetooth controller of bluetooth module is connected with blue-teeth data end RXD1, the TXD1 of the blue tooth interface of the kernel control module of ARM Cortex core microprocessor respectively, and blue-teeth data end RXD1, the TXD1 of blue tooth interface is connected with blue-teeth data end RXD1, the TXD1 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor respectively; Bluetooth stream control end CTS1, the RTS1 of the bluetooth controller of bluetooth module is connected with Bluetooth control I/O port PD0, the PD1 of the blue tooth interface of the kernel control module of ARM Cortex core microprocessor respectively, and Bluetooth control I/O port PD0, the PD1 of blue tooth interface is connected with Bluetooth control I/O port PD0, the PD1 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor respectively; The bluetooth reseting controling end BL_RESET of the bluetooth controller of bluetooth module and the bluetooth of the blue tooth interface of the kernel control module of the ARM Cortex core microprocessor I/O port PC8 that resets is connected, and the bluetooth of blue tooth interface I/O port PC8 and the bluetooth of the ARM Cortex core microprocessor of the kernel control module of the ARM Cortex core microprocessor I/O port PC8 that resets that resets is connected; Antenna input RF_IN, the antenna output end RF_OUT of bluetooth module are connected with antenna; The voltage input end VCC_3.3 of bluetooth module is connected with the voltage output end VCC_3.3 of the kernel control module of ARM Cortex core microprocessor; The earth terminal GND of bluetooth module is connected with the earth terminal GND of the kernel control module of ARM Cortex core microprocessor.
The structure of Zigbee module of the present invention is:
the Zigbee data output end SO1 of the Zigbee controller of Zigbee module, Zigbee data input pin SI1 are connected with the Zigbee data I of the Zigbee interface of the kernel control module of ARM Cortex core microprocessor/O port PA4, PA5 respectively, and the Zigbee data I of Zigbee interface/O port PA4, PA5 is connected with the Zigbee data I of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor/O port PA4, PA5 respectively, the Zigbee input end of clock SCLK1 of the Zigbee controller of Zigbee module, the Zigbee sheet selects control end CSn1, Zigbee sends buffering control end FIFO, Zigbee accepts buffering control end FIFOA, Zigbee reset terminal ZG_RESET controls I/O port PA2 with the Zigbee of the Zigbee interface of the kernel control module of ARM Cortex core microprocessor respectively, PD2, PD8, PD9, PC15 connects, the Zigbee of Zigbee interface controls I/O port PA2, PD2, PD8, PD9, PC15 controls I/O port PA2 with the Zigbee of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor respectively, PD2, PD8, PD9, PC15 connects, antenna input RF_IN, the antenna output end RF_OUT of Zigbee module are connected with antenna, the voltage input end VCC_3.3 of Zigbee module is connected with the voltage output end VCC_3.3 of the kernel control module of ARM Cortex core microprocessor, the earth terminal GND of Zigbee module is connected with the earth terminal GND of the kernel control module of ARM Cortex core microprocessor.
The structure of CAN module of the present invention is:
CAN data terminal CANTX, the CANRX of the CAN driver of CAN module is connected with CAN data terminal CANTX, the CANRX of the CAN interface of the kernel control module of ARM Cortex core microprocessor respectively, and CAN data terminal CANTX, the CANRX of CAN interface is connected with CAN data terminal CANTX, the CANRX of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor respectively; The voltage input end VCC_3.3 of CAN module is connected with the voltage output end VCC_3.3 of the kernel control module of ARM Cortex core microprocessor; The earth terminal GND of CAN module is connected with the earth terminal GND of the kernel control module of ARM Cortex core microprocessor.
The structure of RS485 module of the present invention is:
RS485 data terminal TXD2, the RXD2 of the RS485 driver of RS485 module is connected with RS485 data terminal RXD2, the TXD2 of the RS485 interface of the kernel control module of ARM Cortex core microprocessor respectively, and RS485 data terminal RXD2, the TXD2 of RS485 interface is connected with RS485 data terminal RXD2, the TXD2 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor respectively; The RS485 of the RS485 driver of RS485 module receives Enable Pin RE2, RS485 and sends Enable Pin TE2 and control I/O port PB13, PB14 with the RS485 of the RS485 interface of the kernel control module of ARM Cortex core microprocessor respectively and is connected, and the RS485 of RS485 interface controls I/O port PB13, PB14 and is connected with RS485 control I/O port PB13, the PB14 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor respectively; The voltage input end VCC_3.3 of RS485 module is connected with the voltage output end VCC_3.3 of the kernel control module of ARM Cortex core microprocessor; The earth terminal GND of RS485 module is connected with the earth terminal GND of the kernel control module of ARM Cortex core microprocessor.
The structure of Profibus module of the present invention is:
the Profibus data terminal DB[0:7 of the Profibus controller of Profibus module], address end AB[8:15] respectively with the Profibus data terminal of the Profibus interface of the kernel control module of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] be connected the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] respectively with the Profibus data terminal of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] be connected, the Profibus of the Profibus controller of Profibus module reads control end RD3, Profibus writes control end WR3, Profibus address latch control end ALE3, Profibus interrupt output end XINT, Profibus reset terminal PF_RESET respectively with the Profibus control signal I/O port PD15 of the Profibus interface of the kernel control module of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 connects, the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 respectively with the Profibus control signal I/O port PD15 of the ARM Cortex core microprocessor of the kernel control module of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 connects, the voltage input end VCC_3.3 of Profibus module is connected with the voltage output end VCC_3.3 of the kernel control module of ARM Cortex core microprocessor, the earth terminal GND of Profibus module is connected with the earth terminal GND of the kernel control module of ARM Cortex core microprocessor.
A kind of modular majority comprises the following steps according to the conversion method of conversion equipment:
1) the kernel control module power-up initializing of ARM Cortex core microprocessor, complete the loading of modular majority according to initialize routine and the data of conversion equipment, and the storage space of SRAM storer is divided into: the buffer area of the data communication transceiver channels such as bluetooth, Zigbee, CAN, RS485, Profibus, RS232;
2) user, by Keysheet module is set, is configured the hardware parameter of modular majority according to each communication module of conversion equipment, and carries out enabling or masking operation of corresponding communication subroutine;
3) configuration parameter of each communication module is stored in eeprom memory;
4) carry out the initialization subroutine that enables communication module, complete the setting of its hardware configuration parameter;
5) the modular majority according to the data-switching of conversion equipment and control program by the interruption of Frame receive subroutine, most three parts such as transmission subroutine that forward according to conversion process subroutine and polling data form, wherein interrupting receiving subroutine is responsible for the Frame of the communication modules such as bluetooth module, Zigbee module, CAN module, RS485 module, Profibus module, RS232 is received, priority level according to the interruption of each module in ARM Cortex core microprocessor, realize the processing of the reception data of corresponding each communication module; Majority is responsible for the Frame that receives is detected according to destination-address according to the conversion process subroutine, and according to the address that sends, the Frame that will accept successively stores in the buffer area of each corresponding data communication sendaisle of SRAM storer; Polling data forward the transmission subroutine be responsible for to the buffer area of each data communication sendaisle in the SRAM storer head, whether tail pointer equates detects,, if head, the tail pointer of the buffer area of data communication sendaisle are unequal, successively the data in the buffer area of data communication sendaisle are sent in the transmission buffer zone of each communication module.
Owing to adopting technique scheme, the present invention adopts the modular mounting means that has Scalability on hardware, utilize simultaneously ARM Cortex core microprocessor treatment characteristic at a high speed, realize easily data-switching and data-transformation facility between multiple communication data.Therefore, the present invention has the dirigibility that processing response speed is fast, volume is little, higher, the stronger advantages such as environmental suitability.
Description of drawings
Fig. 1 is the structural representation of modular majority of the present invention according to conversion equipment;
Fig. 2 is the circuit diagram of the kernel control module of ARM Cortex core microprocessor of the present invention;
Fig. 3 is the circuit diagram of bluetooth module of the present invention;
Fig. 4 is the circuit diagram of Zigbee module of the present invention;
Fig. 5 is the circuit diagram of CAN module of the present invention;
Fig. 6 is the circuit diagram of RS485 module of the present invention;
Fig. 7 is the circuit diagram of Profibus module of the present invention;
Fig. 8 is the main program flow chart of modular majority according to conversion equipment.
Fig. 9 interrupts receiving subroutine flow chart;
Figure 10 is most according to processing subroutine flow chart;
Figure 11 is that polling data forwards subroutine flow chart;
In figure: 1, kernel control module, 2, bluetooth module, 3, the Zigbee module, 4, the CAN module, 5, the RS485 module, 6, the Profibus module.
Embodiment
The invention will be further described below in conjunction with embodiment:
the present embodiment as shown in Figure 1, a kind of modular is most is by the kernel control module 1 based on ARM Cortex core microprocessor according to the device of walking around, power module, Keysheet module is set, LCD display module and communication module form, described communication module is bluetooth module 2, Zigbee module 3, CAN module 4, two or more modules in RS485 module 5 and Profibus module 6, this conversion equipment can be as required patches optional communication module on the communication interface of the kernel control module 1 of ARM Cortex core microprocessor, realize easily Data Format Transform between multiple communication data and the function of data transmission.Wherein:
The voltage input end of the kernel control module 1 of ARM Cortex core microprocessor is connected with the voltage output end of power module; The keyboard output end that Keysheet module is set is connected with the keyboard input I/O end of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor; The LCD control end of LCD display module, LCD data terminal are controlled the I/O end with the LCD of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor respectively, the LCD data terminal is connected; The Bluetooth control end of bluetooth module 2 is connected the kernel control module 1 of ARM Cortex core microprocessor with the blue-teeth data end blue tooth interface is connected with the blue-teeth data end with the Bluetooth control I/O end of ARM Cortex core microprocessor respectively; The Zigbee control end of Zigbee module 3 is connected the kernel control module 1 of ARM Cortex core microprocessor with the Zigbee data terminal Zigbee interface is controlled the I/O end with the Zigbee of ARM Cortex core microprocessor respectively and is connected O with the Zigbee data I and holds and be connected; The CAN data terminal of CAN module 4 is connected with the CAN data terminal of ARM Cortex core microprocessor respectively by the CAN interface of the kernel control module 1 of ARM Cortex core microprocessor; The RS485 data terminal of RS485 module 5 is connected the kernel control module 1 of ARM Cortex core microprocessor with the RS485 control end RS485 interface is connected I/O end with the RS485 data terminal of ARM Cortex core microprocessor respectively and is connected with RS485; The Profibus control end of Profibus module 6 is connected the Profibus interface of the kernel control module 1 of Profibus address end by ARM Cortex core microprocessor and is controlled I/O port, Profibus data terminal, Profibus address end with the Profibus of ARM Cortex core microprocessor respectively and be connected with the Profibus data terminal; The serial data end of ARM Cortex core microprocessor is connected with the serial data end of RS232 serial port module, and the serial data end of RS232 serial port module is connected with the serial data end of RS232 equipment; The EEPROM data terminal of ARM Cortex core microprocessor, EEPROM control end are connected with EEPROM data, the EEPROM control end of eeprom memory; The SRAM data terminal of ARM Cortex core microprocessor, SRAM address end, SRAM control the I/O port and are connected with SRAM data, SRAM address end, the SRAM control end of SRAM storer respectively.
In this device, the kernel control module 1 of ARM Cortex core microprocessor as shown in Figure 2,
Voltage output end VDD, the VCC of power module is connected with voltage input end VCC_5, the VCC_3.3 of the kernel control module 1 of ARM Cortex core microprocessor respectively; The voltage output end VCC_3.3 of the kernel control module 1 of ARM Cortex core microprocessor is connected with voltage input end VCC_3.3, the voltage input end VCC_3.3 of bluetooth module 2, voltage input end VCC_3.3, the voltage input end VCC_3.3 of CAN module 4 of Zigbee module 3, the voltage input end VCC_3.3 of RS485 module 5, the voltage input end VCC_3.3 of Profibus module 6 of LCD display module respectively; The voltage output end VCC_5 of the kernel control module 1 of ARM Cortex core microprocessor is connected with the voltage input end VCC_5 of LCD display module; The earth terminal GND of power module is connected with the earth terminal GND of the kernel control module 1 of ARM Cortex core microprocessor; The earth terminal GND of the kernel control module 1 of ARM Cortex core microprocessor is connected with earth terminal GND, the earth terminal GND of bluetooth module 2, earth terminal GND, the earth terminal GND of CAN module 4 of Zigbee module 3, the earth terminal GND of RS485 module 5, the earth terminal GND of Profibus module 6 of LCD display module respectively;
The LCD of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor controls I/O port PD3, PD4, PD5 and is connected with LCD instruction control end RS, LCD read-write control end R/W, the LCD sheet choosing end CE of LCD display module respectively; The LCD data terminal PC[0:7 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor] with the LCD data terminal DB[0:7 of LCD display module] be connected;
The keyboard of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor input I/O port PC10, PC11, PC12, PC13, PC14 are connected with move to left key K1, the key K2 that moves to right, upper page key K3, Page Down keys K4, setting key K5 of the keyboard output end that Keysheet module is set respectively; The RESET input Reset of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with the reset output terminal Reset that Keysheet module is set;
Blue-teeth data RXD1, the TXD1 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with blue-teeth data end RXD1, the TXD1 of blue tooth interface respectively, and blue-teeth data end RXD1, the TXD1 of blue tooth interface is connected with blue-teeth data end RXD1, the TXD1 of bluetooth module 2 respectively; Bluetooth control I/O port PD0, the PD1 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with Bluetooth control I/O port PD0, the PD1 of blue tooth interface respectively, and Bluetooth control I/O port PD0, the PD1 of blue tooth interface is connected with Bluetooth stream control end CTS1, the RTS1 of bluetooth module 2 respectively; The bluetooth of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor I/O port PC8 and the bluetooth of the blue tooth interface I/O port PC8 that resets that resets is connected, and the bluetooth of the blue tooth interface I/O port PC8 that resets is connected with the bluetooth reseting controling end BL_RESET of bluetooth module 2;
the Zigbee data I of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor/O port PA4, PA5 is connected with the Zigbee data I of Zigbee interface/O port PA4, PA5 respectively, and the Zigbee data I of Zigbee interface/O port PA4, PA5 is connected with Zigbee data output end SO1, the Zigbee data input pin SI1 of Zigbee module 3 respectively, the Zigbee of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor controls I/O port PA2, PD2, PD8, PD9, PC15 controls I/O port PA2 with the Zigbee of Zigbee interface respectively, PD2, PD8, PD9, PC15 connects, the Zigbee of Zigbee interface controls I/O port PA2, PD2, PD8, PD9, PC15 respectively with the Zigbee input end of clock SCLK1 of Zigbee module 3, the Zigbee sheet selects control end CSn1, Zigbee sends buffering control end FIFO, Zigbee accepts buffering control end FIFOA, Zigbee reset terminal ZG_RESET connects,
CAN data terminal CANTX, the CANRX of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with CAN data terminal CANTX, the CANRX of CAN interface respectively, and CAN data terminal CANTX, the CANRX of CAN interface is connected with CAN data terminal CANRX, the CANTX of CAN module 4 respectively;
RS485 data terminal RXD2, the TXD2 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with RS485 data terminal RXD2, the TXD2 of RS485 interface respectively, and RS485 data terminal RXD2, the TXD2 of RS485 interface is connected with RS485 data terminal RXD2, the TXD2 of RS485 module 5 respectively; The RS485 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor controls I/O port PB13, PB14 and is connected with RS485 control I/O port PB13, the PB14 of RS485 interface respectively, and the RS485 of RS485 interface controls I/O port PB13, PB14 and sends Enable Pin TE2 and be connected with RS485 reception Enable Pin RE2, the RS485 of RS485 module 5 respectively;
the data terminal of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] respectively with the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] be connected the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] respectively with the Profibus data terminal DB[0:7 of Profibus module 6], address end AB[8:15] be connected, the Profibus control signal I/O port PD15 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 respectively with the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 connects, the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 reads control end RD3 with the Profibus of Profibus module 6 respectively, Profibus writes control end WR3, address latch control end ALE3, Profibus interrupt output end XINT, Profibus reset terminal PF_RESET connects.
Serial data end TXD0, the RXD0 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with serial data end TXD0, the RXD0 of RS232 serial port module respectively; Data terminal TXD02, the RXD02 of RS232 serial port module is connected with the serial data end of RS232 equipment respectively; The earth terminal GND of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor and RS232 serial port module earth terminal GND be connected, the earth terminal GND of RS232 serial port module is connected with the earth terminal GND of RS232 equipment.
I2C port SCL, the SDA of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with I2C port SCL, the SDA of eeprom memory respectively.
The data of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor/address end PIE[0:7] respectively with the data input pin D[0:7 of latch], the data terminal DB[0:7 of SRAM storer] be connected; The data output end Q[0:7 of latch] with the address end AB[0:7 of SRAM storer] be connected; The address end PIE[8:15 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor] with the address end AB[8:15 of SRAM storer] be connected; The address latch I/O control end PJ6 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor is connected with the address latch control end LE of latch; The SRAM of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor controls I/O port PH6, PH7, PJ4, PJ5 and enables control end SCE1, sheet with the sheet of SRAM storer respectively and enable control end SCE2, output enable control end SOE, write and enable control end SWE and be connected.
In this device, bluetooth module 2 as shown in Figure 3, blue-teeth data end RXD1, the TXD1 of the bluetooth controller of bluetooth module 2 is connected with blue-teeth data end RXD1, the TXD1 of the blue tooth interface of the kernel control module 1 of ARM Cortex core microprocessor respectively, and blue-teeth data end RXD1, the TXD1 of blue tooth interface is connected with blue-teeth data end RXD1, the TXD1 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor respectively; Bluetooth stream control end CTS1, the RTS1 of the bluetooth controller of bluetooth module 2 is connected with Bluetooth control I/O port PD0, the PD1 of the blue tooth interface of the kernel control module 1 of ARM Cortex core microprocessor respectively, and Bluetooth control I/O port PD0, the PD1 of blue tooth interface is connected with Bluetooth control I/O port PD0, the PD1 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor respectively; The bluetooth reseting controling end BL_RESET of the bluetooth controller of bluetooth module 2 and the bluetooth of the blue tooth interface of the kernel control module 1 of the ARM Cortex core microprocessor I/O port PC8 that resets is connected, and the bluetooth of blue tooth interface I/O port PC8 and the bluetooth of the ARM Cortex core microprocessor of the kernel control module 1 of the ARM Cortex core microprocessor I/O port PC8 that resets that resets is connected; Antenna input RF_IN, the antenna output end RF_OUT of bluetooth module 2 are connected with antenna; The voltage input end VCC_3.3 of bluetooth module 2 is connected with the voltage output end VCC_3.3 of the kernel control module 1 of ARM Cortex core microprocessor; The earth terminal GND of bluetooth module 2 is connected with the earth terminal GND of the kernel control module 1 of ARM Cortex core microprocessor.
in this device, Zigbee module 3 as shown in Figure 4, the Zigbee data output end SO1 of the Zigbee controller of Zigbee module 3, Zigbee data input pin SI1 are connected with the Zigbee data I of the Zigbee interface of the kernel control module 1 of ARM Cortex core microprocessor/O port PA4, PA5 respectively, and the Zigbee data I of Zigbee interface/O port PA4, PA5 is connected with the Zigbee data I of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor/O port PA4, PA5 respectively, the Zigbee input end of clock SCLK1 of the Zigbee controller of Zigbee module 3, the Zigbee sheet selects control end CSn1, Zigbee sends buffering control end FIFO, Zigbee accepts buffering control end FIFOA, Zigbee reset terminal ZG_RESET controls I/O port PA2 with the Zigbee of the Zigbee interface of the kernel control module 1 of ARM Cortex core microprocessor respectively, PD2, PD8, PD9, PC15 connects, the Zigbee of Zigbee interface controls I/O port PA2, PD2, PD8, PD9, PC15 controls I/O port PA2 with the Zigbee of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor respectively, PD2, PD8, PD9, PC15 connects, antenna input RF_IN, the antenna output end RF_OUT of Zigbee module 3 are connected with antenna, the voltage input end VCC_3.3 of Zigbee module 3 is connected with the voltage output end VCC_3.3 of the kernel control module 1 of ARM Cortex core microprocessor, the earth terminal GND of Zigbee module 3 is connected with the earth terminal GND of the kernel control module 1 of ARM Cortex core microprocessor.
In this device, CAN module 4 as shown in Figure 5, CAN data terminal CANTX, the CANRX of the CAN driver of CAN module 4 is connected with CAN data terminal CANTX, the CANRX of the CAN interface of the kernel control module 1 of ARM Cortex core microprocessor respectively, and CAN data terminal CANTX, the CANRX of CAN interface is connected with CAN data terminal CANTX, the CANRX of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor respectively; The voltage input end VCC_3.3 of CAN module 4 is connected with the voltage output end VCC_3.3 of the kernel control module 1 of ARM Cortex core microprocessor; The earth terminal GND of CAN module 4 is connected with the earth terminal GND of the kernel control module 1 of ARM Cortex core microprocessor.
In this device, RS485 module 5 as shown in Figure 6, RS485 data terminal TXD2, the RXD2 of the RS485 driver of RS485 module 5 is connected with RS485 data terminal RXD2, the TXD2 of the RS485 interface of the kernel control module 1 of ARM Cortex core microprocessor respectively, and RS485 data terminal RXD2, the TXD2 of RS485 interface is connected with RS485 data terminal RXD2, the TXD2 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor respectively; The RS485 of the RS485 driver of RS485 module 5 receives Enable Pin RE2, RS485 and sends Enable Pin TE2 and control I/O port PB13, PB14 with the RS485 of the RS485 interface of the kernel control module 1 of ARM Cortex core microprocessor respectively and is connected, and the RS485 of RS485 interface controls I/O port PB13, PB14 and is connected with RS485 control I/O port PB13, the PB14 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor respectively; The voltage input end VCC_3.3 of RS485 module 5 is connected with the voltage output end VCC_3.3 of the kernel control module 1 of ARM Cortex core microprocessor; The earth terminal GND of RS485 module 5 is connected with the earth terminal GND of the kernel control module 1 of ARM Cortex core microprocessor.
in this device, Profibus module 6 as shown in Figure 7, the Profibus data terminal DB[0:7 of the Profibus controller of Profibus module 6], address end AB[8:15] respectively with the Profibus data terminal of the Profibus interface of the kernel control module 1 of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] connect, the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] respectively with the Profibus data terminal of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] connect, the Profibus of the Profibus controller of Profibus module 6 reads control end RD3, Profibus writes control end WR3, Profibus address latch control end ALE3, Profibus interrupt output end XINT, Profibus reset terminal PF_RESET respectively with the Profibus control signal I/O port PD15 of the Profibus interface of the kernel control module 1 of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 connects, the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 respectively with the Profibus control signal I/O port PD15 of the ARM Cortex core microprocessor of the kernel control module 1 of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 connects, the voltage input end VCC_3.3 of Profibus module 6 is connected with the voltage output end VCC_3.3 of the kernel control module 1 of ARM Cortex core microprocessor, the earth terminal GND of Profibus module 6 is connected with the earth terminal GND of the kernel control module 1 of ARM Cortex core microprocessor.
In this device, the modular majority according to the data of conversion equipment process, forwarding process figure as shown in Fig. 8,9,10,11, the steps include:
1) kernel control module 1 power-up initializing of ARM Cortex core microprocessor, complete the loading of modular majority according to initialize routine and the data of conversion equipment, and the storage space of SRAM storer is divided into: the buffer area of the data communication transceiver channels such as bluetooth, Zigbee, CAN, RS485, Profibus, RS232;
2) user, by Keysheet module is set, is configured the hardware parameter of modular majority according to each communication module of conversion equipment, and carries out enabling or masking operation of corresponding communication subroutine;
3) configuration parameter of each communication module is stored in eeprom memory;
4) carry out the initialization subroutine that enables communication module, complete the setting of its hardware configuration parameter;
5) the modular majority according to the data-switching of conversion equipment and control program by the interruption of Frame receive subroutine, most three parts such as transmission subroutine that forward according to conversion process subroutine and polling data form, wherein interrupting receiving subroutine is responsible for the Frame of the communication modules such as bluetooth module 2, Zigbee module 3, CAN module 4, RS485 module 5, Profibus module 6, RS232 is received, priority level according to the interruption of each module in ARM Cortex core microprocessor, realize the processing of the reception data of corresponding each communication module; Majority is responsible for the Frame that receives is detected according to destination-address according to the conversion process subroutine, and according to the address that sends, the Frame that will accept successively stores in the buffer area of each corresponding data communication sendaisle of SRAM storer; Polling data forward the transmission subroutine be responsible for to the buffer area of each data communication sendaisle in the SRAM storer head, whether tail pointer equates detects,, if head, the tail pointer of the buffer area of data communication sendaisle are unequal, successively the data in the buffer area of data communication sendaisle are sent in the transmission buffer zone of each communication module.
This embodiment adopts the modular mounting means that has Scalability on hardware, utilizes simultaneously ARM Cortex core microprocessor treatment characteristic at a high speed, realizes easily data-switching, data-transformation facility between many communication datas.Therefore, the present invention has the dirigibility that processing response speed is fast, volume is little, higher, the stronger advantages such as environmental suitability.
Claims (9)
1. a modular majority is according to conversion equipment, it is characterized in that: by the kernel control module (1) based on ARM Cortex core microprocessor, power module, Keysheet module is set, LCD display module and communication module form, described communication module is bluetooth module (2), Zigbee module (3), CAN module (4), two or more modules in RS485 module (5) and Profibus module (6), this conversion equipment can be as required patches optional communication module on the communication interface of the kernel control module (1) of ARM Cortex core microprocessor, to realize Data Format Transform between multiple communication data and the function of data transmission, wherein:
The voltage input end of the kernel control module (1) of ARM Cortex core microprocessor is connected with the voltage output end of power module; The keyboard output end that Keysheet module is set is connected with the keyboard input I/O end of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor; The LCD control end of LCD display module, LCD data terminal are controlled the I/O end with the LCD of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor respectively, the LCD data terminal is connected; The Bluetooth control end of bluetooth module (2) is connected the kernel control module (1) of ARM Cortex core microprocessor with the blue-teeth data end blue tooth interface is connected with the blue-teeth data end with the Bluetooth control I/O end of ARM Cortex core microprocessor respectively; The Zigbee control end of Zigbee module (3) is connected the kernel control module (1) of ARM Cortex core microprocessor with the Zigbee data terminal Zigbee interface is controlled the I/O end with the Zigbee of ARM Cortex core microprocessor respectively and is connected O with the Zigbee data I and holds and be connected; The CAN data terminal of CAN module (4) is connected with the CAN data terminal of ARM Cortex core microprocessor respectively by the CAN interface of the kernel control module (1) of ARM Cortex core microprocessor; The RS485 data terminal of RS485 module (5) is connected the kernel control module (1) of ARM Cortex core microprocessor with the RS485 control end RS485 interface is connected I/O end with the RS485 data terminal of ARM Cortex core microprocessor respectively and is connected with RS485; The Profibus control end of Profibus module (6) is connected the Profibus interface of the kernel control module (1) of Profibus address end by ARM Cortex core microprocessor and is controlled I/O port, Profibus data terminal, Profibus address end with the Profibus of ARM Cortex core microprocessor respectively and be connected with the Profibus data terminal; The serial data end of ARM Cortex core microprocessor is connected with the serial data end of RS232 serial port module, and the serial data end of RS232 serial port module is connected with the serial data end of RS232 equipment; The EEPROM data terminal of ARM Cortex core microprocessor, EEPROM control end are connected with EEPROM data, the EEPROM control end of eeprom memory; The SRAM data terminal of ARM Cortex core microprocessor, SRAM address end, SRAM control the I/O port and are connected with SRAM data, SRAM address end, the SRAM control end of SRAM storer respectively.
2. a kind of modular majority, according to conversion equipment, is characterized in that according to claim 1: described ARM Cortex core microprocessor is ARM Cortex-M4 32-bit microprocessor or ARM Cortex-M3 32-bit microprocessor.
3. a kind of modular majority, according to conversion equipment, is characterized in that according to claim 1: the concrete syndeton of described conversion equipment is:
Voltage output end VDD, the VCC of power module is connected with voltage input end VCC_5, the VCC_3.3 of the kernel control module (1) of ARM Cortex core microprocessor respectively; The voltage output end VCC_3.3 of the kernel control module (1) of ARM Cortex core microprocessor is connected with voltage input end VCC_3.3, the voltage input end VCC_3.3 of bluetooth module (2), voltage input end VCC_3.3, the voltage input end VCC_3.3 of CAN module (4) of Zigbee module (3), the voltage input end VCC_3.3 of RS485 module (5), the voltage input end VCC_3.3 of Profibus module (6) of LCD display module respectively; The voltage output end VCC_5 of the kernel control module (1) of ARM Cortex core microprocessor is connected with the voltage input end VCC_5 of LCD display module; The earth terminal GND of power module is connected with the earth terminal GND of the kernel control module (1) of ARM Cortex core microprocessor; The earth terminal GND of the kernel control module (1) of ARM Cortex core microprocessor is connected with earth terminal GND, the earth terminal GND of bluetooth module (2), earth terminal GND, the earth terminal GND of CAN module (4) of Zigbee module (3), the earth terminal GND of RS485 module (5), the earth terminal GND of Profibus module (6) of LCD display module respectively;
The LCD of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor controls I/O port PD3, PD4, PD5 and is connected with LCD instruction control end RS, LCD read-write control end R/W, the LCD sheet choosing end CE of LCD display module respectively; The LCD data terminal PC[0:7 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor] with the LCD data terminal DB[0:7 of LCD display module] be connected;
The keyboard of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor input I/O port PC10, PC11, PC12, PC13, PC14 are connected with move to left key K1, the key K2 that moves to right, upper page key K3, Page Down keys K4, setting key K5 of the keyboard output end that Keysheet module is set respectively; The RESET input Reset of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with the reset output terminal Reset that Keysheet module is set;
Blue-teeth data end RXD1, the TXD1 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with blue-teeth data end RXD1, the TXD1 of blue tooth interface respectively, and blue-teeth data end RXD1, the TXD1 of blue tooth interface is connected with blue-teeth data end RXD1, the TXD1 of bluetooth module (2) respectively; Bluetooth control I/O port PD0, the PD1 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with Bluetooth control I/O port PD0, the PD1 of blue tooth interface respectively, and Bluetooth control I/O port PD0, the PD1 of blue tooth interface is connected with Bluetooth stream control end CTS1, the RTS1 of bluetooth module (2) respectively; The bluetooth of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor I/O port PC8 and the bluetooth of the blue tooth interface I/O port PC8 that resets that resets is connected, and the bluetooth of the blue tooth interface I/O port PC8 that resets is connected with the bluetooth reseting controling end BL_RESET of bluetooth module (2);
the Zigbee data I of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor/O port PA4, PA5 is connected with the Zigbee data I of Zigbee interface/O port PA4, PA5 respectively, and the Zigbee data I of Zigbee interface/O port PA4, PA5 is connected with Zigbee data output end SO1, the Zigbee data input pin SI1 of Zigbee module (3) respectively, the Zigbee of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor controls I/O port PA2, PD2, PD8, PD9, PC15 controls I/O port PA2 with the Zigbee of Zigbee interface respectively, PD2, PD8, PD9, PC15 connects, the Zigbee of Zigbee interface controls I/O port PA2, PD2, PD8, PD9, PC15 respectively with the Zigbee input end of clock SCLK1 of Zigbee module (3), the Zigbee sheet selects control end CSn1, Zigbee sends buffering control end FIFO, Zigbee accepts buffering control end FIFOA, Zigbee reset terminal ZG_RESET connects,
CAN data terminal CANTX, the CANRX of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with CAN data terminal CANTX, the CANRX of CAN interface respectively, and CAN data terminal CANTX, the CANRX of CAN interface is connected with CAN data terminal CANRX, the CANTX of CAN module (4) respectively;
RS485 data terminal RXD2, the TXD2 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with RS485 data terminal RXD2, the TXD2 of RS485 interface respectively, and RS485 data terminal RXD2, the TXD2 of RS485 interface is connected with RS485 data terminal RXD2, the TXD2 of RS485 module (5) respectively; The RS485 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor controls I/O port PB13, PB14 and is connected with RS485 control I/O port PB13, the PB14 of RS485 interface respectively, and the RS485 of RS485 interface controls I/O port PB13, PB14 and sends Enable Pin TE2 and be connected with RS485 reception Enable Pin RE2, the RS485 of RS485 module (5) respectively;
the data terminal of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] respectively with the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] be connected the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] respectively with the Profibus data terminal DB[0:7 of Profibus module (6)], address end AB[8:15] be connected, the Profibus control signal I/O port PD15 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 respectively with the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 connects, the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 reads control end RD3 with the Profibus of Profibus module (6) respectively, Profibus writes control end WR3, address latch control end ALE3, Profibus interrupt output end XINT, Profibus reset terminal PF_RESET connects,
Serial data end TXD0, the RXD0 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with serial data end TXD0, the RXD0 of RS232 serial port module respectively; Data terminal TXD02, the RXD02 of RS232 serial port module is connected with the serial data end of RS232 equipment respectively; The earth terminal GND of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor and RS232 serial port module earth terminal GND be connected, the earth terminal GND of RS232 serial port module is connected with the earth terminal GND of RS232 equipment;
I2C port SCL, the SDA of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with I2C port SCL, the SDA of eeprom memory respectively;
The data of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor/address end PIE[0:7] respectively with the data input pin D[0:7 of latch], the data terminal DB[0:7 of SRAM storer] be connected; The data output end Q[0:7 of latch] with the address end AB[0:7 of SRAM storer] be connected; The address end PIE[8:15 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor] with the address end AB[8:15 of SRAM storer] be connected; The address latch I/O control end PJ6 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor is connected with the address latch control end LE of latch; The SRAM of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor controls I/O port PH6, PH7, PJ4, PJ5 and enables control end SCE1, sheet with the sheet of SRAM storer respectively and enable control end SCE2, output enable control end SOE, write and enable control end SWE and be connected.
4. a kind of modular majority, according to conversion equipment, is characterized in that according to claim 2: the structure of described bluetooth module (2) is:
Blue-teeth data end RXD1, the TXD1 of the bluetooth controller of bluetooth module (2) is connected with blue-teeth data end RXD1, the TXD1 of the blue tooth interface of the kernel control module (1) of ARM Cortex core microprocessor respectively, and blue-teeth data end RXD1, the TXD1 of blue tooth interface is connected with blue-teeth data end RXD1, the TXD1 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor respectively; Bluetooth stream control end CTS1, the RTS1 of the bluetooth controller of bluetooth module (2) is connected with Bluetooth control I/O port PD0, the PD1 of the blue tooth interface of the kernel control module (1) of ARM Cortex core microprocessor respectively, and Bluetooth control I/O port PD0, the PD1 of blue tooth interface is connected with Bluetooth control I/O port PD0, the PD1 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor respectively; The bluetooth reseting controling end BL_RESET of the bluetooth controller of bluetooth module (2) and the bluetooth of the blue tooth interface of the kernel control module (1) of the ARM Cortex core microprocessor I/O port PC8 that resets is connected, and the bluetooth of blue tooth interface I/O port PC8 and the bluetooth of the ARM Cortex core microprocessor of the kernel control module (1) of the ARM Cortex core microprocessor I/O port PC8 that resets that resets is connected; Antenna input RF_IN, the antenna output end RF_OUT of bluetooth module (2) are connected with antenna; The voltage input end VCC_3.3 of bluetooth module (2) is connected with the voltage output end VCC_3.3 of the kernel control module (1) of ARM Cortex core microprocessor; The earth terminal GND of bluetooth module (2) is connected with the earth terminal GND of the kernel control module (1) of ARM Cortex core microprocessor.
5. a kind of modular majority, according to conversion equipment, is characterized in that according to claim 1: the structure of described Zigbee module (3) is:
the Zigbee data output end SO1 of the Zigbee controller of Zigbee module (3), Zigbee data input pin SI1 are connected with the Zigbee data I of the Zigbee interface of the kernel control module (1) of ARM Cortex core microprocessor/O port PA4, PA5 respectively, and the Zigbee data I of Zigbee interface/O port PA4, PA5 is connected with the Zigbee data I of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor/O port PA4, PA5 respectively, the Zigbee input end of clock SCLK1 of the Zigbee controller of Zigbee module (3), the Zigbee sheet selects control end CSn1, Zigbee sends buffering control end FIFO, Zigbee accepts buffering control end FIFOA, Zigbee reset terminal ZG_RESET controls I/O port PA2 with the Zigbee of the Zigbee interface of the kernel control module (1) of ARM Cortex core microprocessor respectively, PD2, PD8, PD9, PC15 connects, the Zigbee of Zigbee interface controls I/O port PA2, PD2, PD8, PD9, PC15 controls I/O port PA2 with the Zigbee of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor respectively, PD2, PD8, PD9, PC15 connects, antenna input RF_IN, the antenna output end RF_OUT of Zigbee module (3) are connected with antenna, the voltage input end VCC_3.3 of Zigbee module (3) is connected with the voltage output end VCC_3.3 of the kernel control module (1) of ARM Cortex core microprocessor, the earth terminal GND of Zigbee module (3) is connected with the earth terminal GND of the kernel control module (1) of ARM Cortex core microprocessor.
6. a kind of modular majority, according to conversion equipment, is characterized in that according to claim 1: the structure of described CAN module (4) is:
CAN data terminal CANTX, the CANRX of the CAN driver of CAN module (4) is connected with CAN data terminal CANTX, the CANRX of the CAN interface of the kernel control module (1) of ARM Cortex core microprocessor respectively, and CAN data terminal CANTX, the CANRX of CAN interface is connected with CAN data terminal CANTX, the CANRX of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor respectively; The voltage input end VCC_3.3 of CAN module (4) is connected with the voltage output end VCC_3.3 of the kernel control module (1) of ARM Cortex core microprocessor; The earth terminal GND of CAN module (4) is connected with the earth terminal GND of the kernel control module (1) of ARM Cortex core microprocessor.
7. a kind of modular majority, according to conversion equipment, is characterized in that the structure of described RS485 module (5) is according to claim 1:
RS485 data terminal TXD2, the RXD2 of the RS485 driver of RS485 module (5) is connected with RS485 data terminal RXD2, the TXD2 of the RS485 interface of the kernel control module (1) of ARM Cortex core microprocessor respectively, and RS485 data terminal RXD2, the TXD2 of RS485 interface is connected with RS485 data terminal RXD2, the TXD2 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor respectively; The RS485 of the RS485 driver of RS485 module (5) receives Enable Pin RE2, RS485 and sends Enable Pin TE2 and control I/O port PB13, PB14 with the RS485 of the RS485 interface of the kernel control module (1) of ARM Cortex core microprocessor respectively and is connected, and the RS485 of RS485 interface controls I/O port PB13, PB14 and is connected with RS485 control I/O port PB13, the PB14 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor respectively; The voltage input end VCC_3.3 of RS485 module (5) is connected with the voltage output end VCC_3.3 of the kernel control module (1) of ARM Cortex core microprocessor; The earth terminal GND of RS485 module (5) is connected with the earth terminal GND of the kernel control module (1) of ARM Cortex core microprocessor.
8. a kind of modular majority, according to conversion equipment, is characterized in that according to claim 1: the structure of described Profibus module (6) is:
the Profibus data terminal DB[0:7 of the Profibus controller of Profibus module (6)], address end AB[8:15] respectively with the Profibus data terminal of the Profibus interface of the kernel control module (1) of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] connect, the data terminal of Profibus interface/address end PIE[0:7], address end PIE[8:15] respectively with the Profibus data terminal of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor/address end PIE[0:7], address end PIE[8:15] connect, the Profibus of the Profibus controller of Profibus module (6) reads control end RD3, Profibus writes control end WR3, Profibus address latch control end ALE3, Profibus interrupt output end XINT, Profibus reset terminal PF_RESET respectively with the Profibus control signal I/O port PD15 of the Profibus interface of the kernel control module (1) of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 connects, the Profibus control signal I/O port PD15 of Profibus interface, PD14, PD13, PE4, PA0 respectively with the Profibus control signal I/O port PD15 of the ARM Cortex core microprocessor of the kernel control module (1) of ARM Cortex core microprocessor, PD14, PD13, PE4, PA0 connects, the voltage input end VCC_3.3 of Profibus module (6) is connected with the voltage output end VCC_3.3 of the kernel control module (1) of ARM Cortex core microprocessor, the earth terminal GND of Profibus module (6) is connected with the earth terminal GND of the kernel control module (1) of ARM Cortex core microprocessor.
9. a kind of modular majority, according to conversion equipment and conversion method thereof, is characterized in that according to claim 1: this conversion method comprises the following steps:
1) kernel control module (1) power-up initializing of ARM Cortex core microprocessor, complete the loading of modular majority according to initialize routine and the data of conversion equipment, and the storage space of SRAM storer is divided into: the buffer area of the data communication transceiver channels such as bluetooth, Zigbee, CAN, RS485, Profibus, RS232;
2) user, by Keysheet module is set, is configured the hardware parameter of modular majority according to each communication module of conversion equipment, and carries out enabling or masking operation of corresponding communication subroutine;
3) configuration parameter of each communication module is stored in eeprom memory;
4) carry out the initialization subroutine that enables communication module, complete the setting of its hardware configuration parameter;
5) the modular majority receives subroutine according to the data-switching of conversion equipment and control program by the interruption of Frame, most according to the conversion process subroutine, and polling data forwards the three parts compositions such as transmission subroutine, wherein interrupting receiving subroutine is responsible for bluetooth module (2), Zigbee module (3), CAN module (4), RS485 module (5), Profibus module (6), the Frame of the communication modules such as RS232 receives, priority level according to the interruption of each module in ARM Cortex core microprocessor, realize the processing of the reception data of corresponding each communication module, majority is responsible for the Frame that receives is detected according to destination-address according to the conversion process subroutine, and according to the address that sends, the Frame that will accept successively stores in the buffer area of each corresponding data communication sendaisle of SRAM storer, polling data forward the transmission subroutine be responsible for to the buffer area of each data communication sendaisle in the SRAM storer head, whether tail pointer equates detects,, if head, the tail pointer of the buffer area of data communication sendaisle are unequal, successively the data in the buffer area of data communication sendaisle are sent in the transmission buffer zone of each communication module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310301178.5A CN103389959B (en) | 2013-07-18 | 2013-07-18 | A kind of Modular multi-data conversion equipment and conversion method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310301178.5A CN103389959B (en) | 2013-07-18 | 2013-07-18 | A kind of Modular multi-data conversion equipment and conversion method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103389959A true CN103389959A (en) | 2013-11-13 |
CN103389959B CN103389959B (en) | 2015-09-30 |
Family
ID=49534236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310301178.5A Expired - Fee Related CN103389959B (en) | 2013-07-18 | 2013-07-18 | A kind of Modular multi-data conversion equipment and conversion method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103389959B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106059817A (en) * | 2016-06-18 | 2016-10-26 | 青岛中云数据信息科技有限公司 | General wireless data management system |
CN108712265A (en) * | 2018-03-14 | 2018-10-26 | 哈尔滨电工仪表研究所有限公司 | A kind of multifunctional communication interface adapter |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201029023Y (en) * | 2006-12-30 | 2008-02-27 | 黄尚南 | Intelligent switch power source communication protocol converter |
CN101197067A (en) * | 2007-12-28 | 2008-06-11 | 上海电力学院 | Wireless remote monitoring system based on built-in platform |
CN101345629A (en) * | 2008-08-21 | 2009-01-14 | 武汉科技大学 | Double on-site bus interface converter |
US7698405B2 (en) * | 2005-01-07 | 2010-04-13 | Lantronix, Inc. | MILARRS systems and methods |
CN101834769A (en) * | 2010-03-31 | 2010-09-15 | 青岛海信日立空调***有限公司 | Two-way communication switching method of HBS (High Byte Strobe) bus communication protocol and RS-485 bus communication protocol |
CN203455839U (en) * | 2013-07-18 | 2014-02-26 | 洛阳理工学院 | Modular multi-data conversion device |
-
2013
- 2013-07-18 CN CN201310301178.5A patent/CN103389959B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7698405B2 (en) * | 2005-01-07 | 2010-04-13 | Lantronix, Inc. | MILARRS systems and methods |
CN201029023Y (en) * | 2006-12-30 | 2008-02-27 | 黄尚南 | Intelligent switch power source communication protocol converter |
CN101197067A (en) * | 2007-12-28 | 2008-06-11 | 上海电力学院 | Wireless remote monitoring system based on built-in platform |
CN101345629A (en) * | 2008-08-21 | 2009-01-14 | 武汉科技大学 | Double on-site bus interface converter |
CN101834769A (en) * | 2010-03-31 | 2010-09-15 | 青岛海信日立空调***有限公司 | Two-way communication switching method of HBS (High Byte Strobe) bus communication protocol and RS-485 bus communication protocol |
CN203455839U (en) * | 2013-07-18 | 2014-02-26 | 洛阳理工学院 | Modular multi-data conversion device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106059817A (en) * | 2016-06-18 | 2016-10-26 | 青岛中云数据信息科技有限公司 | General wireless data management system |
CN108712265A (en) * | 2018-03-14 | 2018-10-26 | 哈尔滨电工仪表研究所有限公司 | A kind of multifunctional communication interface adapter |
Also Published As
Publication number | Publication date |
---|---|
CN103389959B (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108011814B (en) | Multi-protocol intelligent gateway based on narrowband Internet of things and implementation method thereof | |
CN202748785U (en) | Double-channel 1553B and RS422 converting card | |
CN103425611B (en) | For the serial port communication method of metering field | |
CN102722126A (en) | Four-roll plate bending machine control system based on advanced RISC machine (ARM) and Wince | |
EP2972925B1 (en) | Two-wire serial interface and protocol | |
CN103389959B (en) | A kind of Modular multi-data conversion equipment and conversion method thereof | |
CN211981910U (en) | Internet of things control module based on RISCV (computer-aided design) framework and Internet of things system | |
CN203455839U (en) | Modular multi-data conversion device | |
CN205049925U (en) | Novel robot control system based on etherCAT bus | |
CN204390023U (en) | A kind of industrial control system | |
CN107040461A (en) | Ethernet gateway, ethernet gateway equipment and system | |
CN202583967U (en) | LBE (Location Based Entertainment) bus monoboard computer based on processor MPC5200B | |
CN207995122U (en) | A kind of multi-protocols intelligent gateway based on narrowband Internet of Things | |
CN203490567U (en) | Intelligent control circuit of breeding environment | |
CN206162511U (en) | Adjustable serial module of multichannel of compatible X86 and ARM framework platform | |
CN204480463U (en) | A kind of Multi-functional data collector | |
CN112333067B (en) | Communication system and method for parallel operation of multiple controller systems | |
CN206775525U (en) | Ethernet gateway, ethernet gateway equipment and system | |
CN210691255U (en) | Synchronous awakening device | |
CN203630563U (en) | Remote intelligent measurement and control unit | |
CN107508737A (en) | Radio communication device and its communication means based on EtherCAT | |
CN203241752U (en) | Digital analog conversion CAN bus control transmit-receive system connected with multipath-sensor | |
CN202799185U (en) | WiFi router possessing ZigBee communication function | |
CN204721371U (en) | A kind of things-internet gateway device being applied to Industry Control | |
CN201107618Y (en) | Digital type multifunctional touch controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150930 Termination date: 20160718 |