CN103777542B - Communication method for ARM processor and DSP on seamless knitting machine computer mainboard - Google Patents

Communication method for ARM processor and DSP on seamless knitting machine computer mainboard Download PDF

Info

Publication number
CN103777542B
CN103777542B CN201210409168.9A CN201210409168A CN103777542B CN 103777542 B CN103777542 B CN 103777542B CN 201210409168 A CN201210409168 A CN 201210409168A CN 103777542 B CN103777542 B CN 103777542B
Authority
CN
China
Prior art keywords
data
dsp
arm
arm processor
hardware
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
CN201210409168.9A
Other languages
Chinese (zh)
Other versions
CN103777542A (en
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 Easydrive Electric Co., Ltd.
Original Assignee
SHENZHEN EASYDRIVE ELECTRIC 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 EASYDRIVE ELECTRIC CO Ltd filed Critical SHENZHEN EASYDRIVE ELECTRIC CO Ltd
Priority to CN201210409168.9A priority Critical patent/CN103777542B/en
Publication of CN103777542A publication Critical patent/CN103777542A/en
Application granted granted Critical
Publication of CN103777542B publication Critical patent/CN103777542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a communication method for an ARM processor and a DSP on a seamless knitting machine computer mainboard. An McBSP module on the ARM is connected with the McBSP module on the DSP. The method comprises that: S1: an ARM application level program packages command frame data and transmits the data to an ARM driving program; S2: the ARM driving program transmits the data to the DSP: S3: a DSP driving program receives the data, and a hardware is disconnected through trigger when a threshold value is reached; S4: the DSP driving program reads the data, and verification is performed; if the verification is passed, a hardware action command is transmitted and the data are packaged into a correct response data frame; or the data are packaged into a false response data frame and transmitted to the ARM processor; and S5: the ARM driving program receives response data, and the hardware is disconnected through trigger when the threshold value is reached; the data are read by the ARM application level program, and verification is performed; if the verification is passed, the data are analyzed and displayed; and if the verification fails, no processing is performed. The beneficial effects of the method are that: communication between the ARM and the DSP on the seamless knitting machine computer mainboard can be realized, communication speed is faster, structure and configuration are simple and use is more flexible and convenient.

Description

The means of communication of arm processor and DSP on a kind of seamless knitter computer main board
【Technical field】
The present invention relates to weaving loom computerized control system field, in more particularly to a kind of weaving loom computerized control system The means of communication between arm processor and dsp chip.
【Background technology】
I2C, CAN is typically adopted, the mode such as dual port RAM is communicated, I2C bus is only in current weaving loom control system Serial communication can be carried out, real-time is not high, the baud rate that CAN sends and receives node must be consistent, otherwise mess code, And real-time is also restrained.Although dual port RAM mode real-time is very high, but occupancy mouth line is more and configures more multiple Miscellaneous, lack motility.
【Content of the invention】
It is an object of the invention to effectively overcoming the shortcomings of above-mentioned technology, provide on a kind of seamless knitter computer main board Arm processor and the means of communication of DSP, this invention carries out data transfer using the McBSP module that arm processor and DSP carry, Its communication speed is faster.
The technical scheme is that and be achieved in that:On a kind of seamless knitter computer main board, arm processor is with DSP's The means of communication, the McBSP module on described arm processor is connected with the McBSP module by signal on described DSP, and its method includes Following steps:
S1, the application layer program of arm processor according to order to be executed, according to protocol format, Envelope command frame data, And send to ARM bsp driver;
S2, the bsp driver of arm processor configure to the McBSP module related register of arm processor, and In units of a WORD length, data is sent to one by one by DSP by the hardware pin of arm processor;
After S3, DSP driver configures to the McBSP module related register of its own, the data receiving is put into In relief area, after the data amount check in relief area reaches the threshold values of setting, trigger hardware interrupts;
S4, DSP driver is had no progeny in receiving, and reads the data in relief area, and carries out effect;
If effect is passed through, according to data protocol form, the data receiving is parsed, then send hardware action Order carrys out control device device, and hardware data information is packaged into correct reply data frame according to data protocol form;
Otherwise, according to data protocol form encapsulation error reply data frame, and ARM process is sent to by its hardware pin Device;
S5, arm processor driver one by one WORD receive reply data in relief area, the data in relief area reaches To after threshold values, trigger hardware interrupts, the application layer program of arm processor reads the data in relief area, and is verified;
If verification is passed through, data is analyzed, and analysis result is shown on screen;
If effect failure, do not deal with.
Described arm processor adopts the AM3505 chip of TI company, and DSP adopts the TMS320F28232 model of TI company Digital processing chip.
The beneficial effects of the present invention is:The McBSP module that the present invention is carried using arm processor and DSP carry McBSP module carries out Direct Communication, has advantages below:1st, adopt full duplex communication, the both sides of communication can send simultaneously and Receive information;2nd, have two-stage buffering to send and three-level buffering received data depositor;3rd, allow continuous data streaming;4th, it is Data is activation and reception provide independent frame-synchronizing impulse and clock signal;5th, support that multichannel sends and receives;6th, serial word Length is optional, including 8,12,16,20,24,32;7th, the generation of internal clocking and frame-synchronizing impulse is programmable, has quite big Motility;8th, simple and compact for structure, working stability is it is easy to implement;9th, communication speed can reach more than 50M, and real-time is very High.
【Brief description】
Fig. 1 is the flow chart of the inventive method;
Fig. 2 is the structural representation that on seamless knitter computer main board in the present invention, arm processor is connected with DSP;
Fig. 3 is the connection diagram of arm processor pin of the present invention and dsp chip pin.
【Specific embodiment】
The invention will be further described with reference to the accompanying drawings and examples.
With reference to shown in Fig. 1, present invention is disclosed on a kind of seamless knitter computer main board arm processor and DSP communication Method, the McBSP module on described arm processor is connected with the McBSP module by signal on described DSP, and arm processor is as master Equipment, as from equipment, ARM program sends order frame data to DSP to DSP, sends response to ARM after DSP program receiving data Frame, described McBSP is the contracting of English MultichannelBuffered Serial Port (multichannel buffer serial port) Write.The method specifically includes following steps:
S1, the application layer program of arm processor according to order to be executed, according to protocol format, Envelope command frame data, And send to ARM bsp driver;
S2, the bsp driver of arm processor configure to the McBSP module related register of arm processor, and With WORD(16bits)For unit, data is sent to one by one by DSP by the hardware pin of arm processor;
After S3, DSP driver configures to the McBSP module related register of its own, the WORD receiving is put into In relief area, after the data amount check in relief area reaches the threshold values of setting, triggering hardware interrupts data transmission;
After S4, DSP driver receives interrupt signal, read the data in relief area, and carry out effect;
If effect is passed through, according to data protocol form, the data receiving is parsed, then send hardware action Order carrys out control device device, meanwhile, obtains hardware status information, and hardware data information is encapsulated according to data protocol form Become correct reply data frame, send to arm processor;
Otherwise, according to data protocol form encapsulation error reply data frame, and ARM process is sent to by its hardware pin Device;
S5, arm processor driver one by one WORD receive reply data frame in relief area, when the data of relief area After reaching the threshold values of setting, triggering hardware interrupts transmission, the application layer program of arm processor reads the data in relief area, and Verified;
If verification is passed through, data is analyzed, and analysis result is shown to screen(Man machine interface)On;
If effect failure, do not deal with.
It can thus be appreciated that:By the method for the invention, arm processor and DSP on achievable seamless knitter computer main board Between communication, arm processor transmitting control commands, DSP receives control command responsing control command so that corresponding hardware is made Go out corresponding execution action, its communication speed, with respect to I2C, CAN, the mode such as dual port RAM, is greatly improved, and this Bright structure and configuration are simple, using also more flexible and convenient.
Further, in the specific embodiment of the invention, its data protocol form is as follows:
Each section of its agreement is defined as follows:
With reference to shown in Fig. 2, Fig. 2 is the structural representation that on seamless knitter computer main board, arm processor is connected with DSP, Two core processor chips of DSP and ARM are had on seamless knitter computerized control system mainboard, dsp chip adopts TI company TMS320F28232, ARM chip adopts the AM3505 of TI company, by configuring to two chip McBSP module registers, enters The setting of row communications parameter.
With reference to shown in Fig. 3, Fig. 3 is the connection diagram of arm processor pin and dsp chip pin;The McBSP of DSP draws Foot is joined directly together with the McBSP pin of ARM, and the CLKR pin of DSP connects the CLKX pin of ARM, and the CLKX pin of DSP connects The CLKR pin of ARM, the FSR pin of DSP connects the FSX pin of ARM, and the FSX pin of DSP connects the FSR pin of ARM, DSP's DX pin connects the DR pin of ARM, and the DR pin of DSP connects the DX pin of ARM.
At DSP end, CLKR is the clock signal of DSP receiving data, and CLKX is the clock signal that DSP sends data, and FSR is The frame synchronizing signal of DSP receiving data, FSX is the frame synchronizing signal that DSP sends data, and DX is that DSP sends data pin, and DR is DSP receiving data pin;At ARM end, CLKR is the clock signal of ARM receiving data, and CLKX is the clock letter that ARM sends data Number, FSR is the frame synchronizing signal of ARM receiving data, and FSX is the frame synchronizing signal that ARM sends data, and DX is that ARM sends data Pin, DR is ARM receiving data pin.When sending data, the relief area of data-pushing to McBSP, when valid data reach When sending threshold values, send data.
Described above is only presently preferred embodiments of the present invention, and above-mentioned specific embodiment is not limitation of the present invention. In the technological thought category of the present invention, various modifications and modification can occur, all those of ordinary skill in the art according to Retouching, modification or equivalent that upper description is made, belong to the scope that the present invention is protected.

Claims (2)

1. on a kind of seamless knitter computer main board the means of communication of arm processor and DSP it is characterised in that described ARM process McBSP module on device is connected with the McBSP module by signal on described DSP, and its method comprises the following steps:
S1, the application layer program of arm processor according to order to be executed, according to protocol format, Envelope command frame data, concurrently Deliver to ARM bsp driver;
S2, the bsp driver of arm processor configure to the McBSP module related register of arm processor, and with WORD is unit, by the hardware pin of arm processor, data is sent to DSP one by one;
After S3, DSP driver configures to the McBSP module related register of its own, the data receiving is put into buffering Qu Zhong, after the data amount check in relief area reaches the threshold value of setting, triggers hardware interrupts;
S4, DSP driver is had no progeny in receiving, and reads the data in relief area, and is verified;
If verification is passed through, according to data protocol form, the data receiving is parsed, then sends hardware action order, And hardware data information is packaged into correct reply data frame according to data protocol form;
Otherwise, according to data protocol form encapsulation error reply data frame, and arm processor is sent to by its hardware pin;
S5, arm processor driver one by one WORD receive reply data in relief area, the data in relief area reaches threshold After value, trigger hardware interrupts, the application layer program of arm processor reads the data in relief area, and is verified;
If verification is passed through, data is analyzed, and analysis result is shown on screen;
If verifying unsuccessfully, do not deal with.
2. on seamless knitter computer main board according to claim 1 arm processor and DSP the means of communication, its feature It is:Described arm processor adopts the AM3505 chip of TI company, and DSP adopts the number of the TMS320F28232 model of TI company Word processing chip.
CN201210409168.9A 2012-10-24 2012-10-24 Communication method for ARM processor and DSP on seamless knitting machine computer mainboard Active CN103777542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210409168.9A CN103777542B (en) 2012-10-24 2012-10-24 Communication method for ARM processor and DSP on seamless knitting machine computer mainboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210409168.9A CN103777542B (en) 2012-10-24 2012-10-24 Communication method for ARM processor and DSP on seamless knitting machine computer mainboard

Publications (2)

Publication Number Publication Date
CN103777542A CN103777542A (en) 2014-05-07
CN103777542B true CN103777542B (en) 2017-02-08

Family

ID=50569919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210409168.9A Active CN103777542B (en) 2012-10-24 2012-10-24 Communication method for ARM processor and DSP on seamless knitting machine computer mainboard

Country Status (1)

Country Link
CN (1) CN103777542B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10024322C1 (en) * 2000-05-17 2001-09-27 Duerkopp Adler Ag Sewing machine control, comprises a remote central computer with a terminal linked to the sewing machine terminal by a data transmission link, to give a data dialog between them for stitching/operating program data
CN201269992Y (en) * 2008-09-25 2009-07-08 浙江恒强科技有限公司 Computer control system for flat knitting machine
CN201408361Y (en) * 2009-05-08 2010-02-17 宇恒电控装置(上海)有限公司 Glove machine control device applying CAN bus
CN101968642B (en) * 2010-08-26 2012-11-14 浙江理工大学 Flat machine numerical control system based on field programmable gate array (FPGA) high-speed communication method
CN201812165U (en) * 2010-09-19 2011-04-27 东华大学 Computerized flat knitting machine control device using USB

Also Published As

Publication number Publication date
CN103777542A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
CN101788972B (en) System and method for transmitting data
CN102449614B (en) Packetized interface for coupling agents
CN111656336B (en) PCIE sending and receiving method, device, equipment and system
CN202870808U (en) FPGA realization device of SPI serial port module
CN102780705B (en) Ethernet-(controller area network) CAN protocol converter
CN101957808B (en) Communication method among various CPUs (Central Processing Units), system and CPU
CN102664779B (en) CAN bus data transmitting method
CN103095703B (en) A kind of method, equipment and system realizing network and serial port data interactive
CN106598889A (en) SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate
CN101620551A (en) Network card interrupt control method for a plurality of virtual machines
CN105975424A (en) Master-slave serial communication protocol
CN101222430A (en) High-speed multi-protocol data transmission system and method
CN106487721A (en) The network equipment and the message forwarding method being used in the network equipment
CN102546542B (en) Electronic system and embedded device and transit device of electronic system
CN103825768B (en) Message transmitting method and device
US20060195645A1 (en) Interface for prototyping integrated systems
CN111026691B (en) OWI communication equipment based on APB bus
CN103777542B (en) Communication method for ARM processor and DSP on seamless knitting machine computer mainboard
CN104144137B (en) A kind of high speed LVDS serial synchronous communication controllers
CN111666238A (en) Data transmission device and method
CN100493018C (en) Communication method via bus interface of network and and system thereof
CN201576187U (en) Electronic jacquard control system
CN103577368B (en) A kind of IIC communication extension method and device based on SPI protocol
CN102420734A (en) System for realizing topological structure of controller area network (CAN) bus
CN101425877A (en) Method for inter-module communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN EASYDRIVE ELECTRIC CO., LTD.

Free format text: FORMER OWNER: SHENZHEN SUNAI TECHNOLOGY CO., LTD.

Effective date: 20150908

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150908

Address after: Shenzhen City, Guangdong province Futian District 518000 North Road 7008, room 908 South Building Industry

Applicant after: Shenzhen Easydrive Electric Co., Ltd.

Address before: 518000, Shenzhen, Guangdong, Baoan District province Longhua Street Industrial East Road, Jincheng science and Technology Industrial Park, No. 2 workshop on the eastern side of the 2 floor compartment (office space)

Applicant before: Shenzhen Sanai Technology Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant