CN101750993A - System debugging method and system of positive-impedance converter (PIC) controller - Google Patents

System debugging method and system of positive-impedance converter (PIC) controller Download PDF

Info

Publication number
CN101750993A
CN101750993A CN200810240052A CN200810240052A CN101750993A CN 101750993 A CN101750993 A CN 101750993A CN 200810240052 A CN200810240052 A CN 200810240052A CN 200810240052 A CN200810240052 A CN 200810240052A CN 101750993 A CN101750993 A CN 101750993A
Authority
CN
China
Prior art keywords
interface
pic controller
programming
pic
controller
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
Application number
CN200810240052A
Other languages
Chinese (zh)
Other versions
CN101750993B (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.)
Beijing Aeonmed Co Ltd
Original Assignee
Beijing Aeonmed 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 Beijing Aeonmed Co Ltd filed Critical Beijing Aeonmed Co Ltd
Priority to CN200810240052.0A priority Critical patent/CN101750993B/en
Publication of CN101750993A publication Critical patent/CN101750993A/en
Application granted granted Critical
Publication of CN101750993B publication Critical patent/CN101750993B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides system debugging method and system of a positive-impedance converter (PIC) controller. The system debugging method of the PIC controller comprises the steps of: carrying out system programming on the PIC controller through a programming interface of the PIC controller to enable at least two interfaces of the PIC controller to be used as communication interfaces; and carrying out system debugging on the PIC controller through the communication interfaces of the PIC controller. The invention improves the interface utilization ratio of the PIC controller, reduces the required interface resources, and is beneficial to the popularization of debugging codes.

Description

The PIC controller is in system debug method and system
Technical field
The present invention relates to the Single-chip Controlling field, particularly PIC controller (PeripheralInterface Controller, peripheral interface controller) is in system debug method and system.
Background technology
The all middle-grade chips of PIC controller all are provided at the systems programming function, and in-system programming can reduce a large amount of development times, and product is pushed to the market faster.The in-system programming function need realize that wherein, two main lines comprise clock line (CLOCK) and data line (DATA) by two main lines and three auxiliary lines; Article three, auxiliary line comprises program voltage line (Programming voltage), power lead (POWER) and ground wire (GROUND).
The Microchip of manufacturer of PIC controller provides emulator, is used for the DLL (dynamic link library) by the PIC controller: Mbus interface (PGC), programming data interface (PGD), program voltage interface (VPP), power interface (VDD), interface of the ground wire (VSS) are realized the PIC controller is carried out in-system programming and debugging.And this emulator is transparent to the user, by this emulator the PIC controller is carried out in system debug, and debugging code does not have versatility for the user.
The emulator that provides except the manufacturer that adopts the PIC controller in the prior art to the PIC controller system debug, can also by the PIC controller can use in the interface any available I/O interface to the PIC controller in system debug.But the I/O interface of PIC controller is limited, can occur the phenomenon of the I/O interface resource shortage of PIC controller in some cases.
Summary of the invention
In order to address the above problem, the invention provides the PIC controller in system debug method and system, purpose is the versatility that strengthens debugging code, improves the interface utilization factor of PIC controller.
One aspect of the present invention provides the PIC controller at system debug method, and this method comprises: the DLL (dynamic link library) by the PIC controller is carried out in-system programming to described PIC controller, makes in the interface of described PIC controller at least two interfaces as communication interface; And described PIC controller is carried out in system debug by the described communication interface of described PIC controller.
More excellent, communication interface is the Mbus interface and the programming data interface of described PIC controller.
More excellent, the programming data interface of PIC controller is during as communication interface, and the programming data interface is by the PIC controller drives.
More excellent, the Mbus interface of PIC controller carries out when the system debug the PIC controller as communication interface, be used to receive the external debug instruction, the programming data interface of PIC controller carries out when the system debug the PIC controller as communication interface, is used for the information when the outside sends the operation of PIC controller.
The present invention provides realization PIC controller in the system debug system on the other hand, comprise PIC controller, programming/debugging unit and the in-system programming connector that connects PIC controller and programming/debugging unit, programming/debugging unit is by the in-system programming connector, utilize the DLL (dynamic link library) of PIC controller that the PIC controller is carried out in-system programming, at least two interfaces that make the PIC controller are as communication interface; And the PIC controller receives from the debug command of programming/debugging unit by described at least two interfaces and carries out this debug command, and will export to described programming/debugging unit according to the information that this debug command moves by at least two interfaces.
More excellent, also comprise: first diode, second diode, resistance, first electric capacity and second electric capacity.Wherein, the in-system programming interface programming voltage interface of described PIC controller, power interface, interface of the ground wire, Mbus interface, programming data interface are respectively with 1# interface, 3# interface, 5# interface, the 7# interface of described in-system programming connector with the 9# interface is corresponding is connected.
More excellent, connecting line one end between the 3# interface of program voltage interface and described in-system programming connector links to each other with extraneous power supply by first diode, and the other end links to each other with ground wire by first electric capacity.Wherein, the resistance and second electric capacity that are connected in series are arranged between connecting line between the 3# interface of program voltage interface and described in-system programming connector and the ground wire, the described resistance that is connected in series and second electric capacity and first electric capacity are connected in parallel.
The resistance and second diode are connected in series between the connecting line between the 1# interface of connecting line between the 3# interface of described program voltage interface and described in-system programming connector and described program voltage interface and described in-system programming connector.
Beneficial effect of the present invention: the present invention has improved the interface utilization factor of PIC controller, has reduced the interface resource of demand, and helps the general of debugging code.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is that PIC controller according to the present invention is at the system debug method process flow diagram;
Fig. 2 is according to the PIC controller of the embodiment of the invention process flow diagram at system debug method;
Fig. 3 is the structured flowchart of PIC controller according to the present invention in the system debug system;
Fig. 4 is according to the PIC controller of the embodiment of the invention connection layout in the system debug system.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Basic thought of the present invention is: by PIC controller in-system programming being made in the PIC controller at least 2 interfaces as communication interface, realize debugging to the PIC controller by this communication interface.
Fig. 1 is that PIC controller according to the present invention is at the system debug method process flow diagram.As shown in Figure 1, the PIC controller is carried out may further comprise the steps in system debug:
S110: the DLL (dynamic link library) by the PIC controller is carried out in-system programming to described PIC controller, and at least two interfaces that make described PIC controller are as communication interface; The DLL (dynamic link library) of PIC controller comprises: program voltage interface, power interface, interface of the ground wire, Mbus interface and programming data interface, these interfaces are the programming interface, the asynchronous receiving-transmitting function that does not possess communication interface and had, the interface conversion that in-system programming makes in the PIC controller at least two scripts not have the communication interface function becomes communication interface, makes it to possess the asynchronous receiving-transmitting function.
S120: the communication interface by the PIC controller that produces among the step S110 is carried out in system debug described PIC controller.Can be by one in the above-mentioned communication interface as transmission interface, be used for the information when the external world sends the operation of PIC controller, another is as receiving interface, be used to receive the debug command of extraneous input, the PIC controller moves according to debug command, and then will send by transmission interface according to the information of debug command operation, and so forth, information when analyzing the operation of sending before and after the PIC controller relatively can reach the purpose of debugging.
Fig. 2 is the structured flowchart of PIC controller according to the present invention in the system debug system.As shown in Figure 2, PIC controller of the present invention comprises in the system debug system: PIC controller 200, programming/debugging unit 202 and the in-system programming connector 204 that connects PIC controller 200 and programming/debugging unit 202.Programming/debugging unit 202 utilizes the DLL (dynamic link library) of PIC controller 200 that the PIC controller is carried out in-system programming by in-system programming connector 204, and at least two interfaces that make the PIC controller are as communication interface; And PIC controller 200 receives from the debug command of programming/debugging unit 202 by described at least two interfaces and carries out this debug command, and will export to described programming/debugging unit 202 according to the information that this debug command moves by at least two interfaces.
Fig. 3 is that PIC controller according to the embodiment of the invention is at the system debug method process flow diagram.As shown in Figure 3, the PIC controller is carried out may further comprise the steps in system debug:
S310: the DLL (dynamic link library) by the PIC controller is carried out in-system programming to described PIC controller, makes Mbus interface in the DLL (dynamic link library) of PIC controller and programming data interface as communication interface.Wherein, when the programming data interface of PIC controller was used as communication interface, the programming data interface was by this PIC controller drives.The programming data interface that can make the PIC controller makes the Mbus interface as receiving interface as transmission interface.
S320:, and, this PIC controller is carried out in system debug as the Mbus interface of the PIC controller of receiving interface by programming data interface as the PIC controller of transmission interface.During debugging, the programming data interface is used for the information when the external world sends the operation of PIC controller, and the Mbus interface is used to receive the debug command of extraneous input, and the PIC controller moves according to debug command.Operation information when moving according to debug command by using programming data interface and Mbus interface to send debug command to the PIC controller respectively repeatedly, connecing the PIC controller by analyzing relatively, can reach the purpose of debugging.
Fig. 4 is according to the PIC controller of the embodiment of the invention connection layout in the system debug system.As shown in Figure 4, the PIC controller of this example comprises PIC controller 400, in-system programming connector 402, programming/debugging unit 403, the first diode D1, the second diode D2, resistance R, first capacitor C 1 and second capacitor C 2 in the system debug system.
Wherein, program voltage interface 401-1, the power interface 401-2 of the in-system programming interface 401 of PIC controller 400, interface of the ground wire 401-3, Mbus interface 401-4, programming data interface 401-5 respectively with 1# interface 402-1,3# interface 402-2,5# interface 402-3,7# interface 402-4 and corresponding connection of 9# interface 402-5 of described in-system programming connector 402.
Connecting line one end between the 3# interface 402-2 of power interface 401-2 and in-system programming connector links to each other with extraneous power vd D by the first diode D1, and the other end links to each other with ground wire by first capacitor C 1.
The resistance R and second capacitor C 2 that are connected in series are arranged between connecting line between the 3# interface 402-2 of power interface 401-2 and in-system programming connector and the ground wire, and the described resistance R that is connected in series and second capacitor C 2 and first capacitor C 1 are connected in parallel.
The resistance R and the second diode D2 are connected in series between the connecting line between the 1# interface 402-1 of connecting line between the 3# interface 402-2 of power interface 401-2 and in-system programming connector and program voltage interface 401-1 and described in-system programming connector.
Programming/debugging unit 403 is by 1# interface 402-1,3# interface 402-2,5# interface 402-3,7# interface 402-4 and the 9# interface 402-5 of systems programming connector, utilize 401 pairs of PIC controllers of in-system programming interface 400 of PIC controller 400 to carry out in-system programming, make the Mbus interface 401-4 and the programming data interface 401-5 of PIC controller 400 be used as communication interface, concrete, Mbus interface 401-4 is as receiving interface, and programming data interface 401-5 is as transmission interface.
PIC controller 400 receives from the debug command of programming/debugging unit 403 by the Mbus interface 401-4 that is connected with the 7# interface 402-4 of in-system programming connector and carries out this debug command, will export to described programming/debugging unit 403 according to the information that this debug command moves by the programming data interface 401-5 that is connected with the 9# interface 402-5 of in-system programming connector.
The interface utilization factor that Mbus interface and the programming data interface of present embodiment by multiplexing PIC controller has improved the PIC controller has reduced the interface resource of demand, and has helped the general of debugging code.
In sum, the present invention is by making in the PIC controller at least 2 interfaces as communication interface to the PIC controller programming, and by the debugging of this communication interface realization to the PIC controller, improved the interface utilization factor of PIC controller, reduce the interface resource of demand, and helped the general of debugging code.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1.PIC controller at system debug method, is characterized in that, comprising:
DLL (dynamic link library) by the PIC controller is carried out in-system programming to described PIC controller, and at least two interfaces that make described PIC controller are as communication interface;
And
Described communication interface by described PIC controller is carried out in system debug described PIC controller.
2. PIC controller according to claim 1 is characterized in that at system debug method described at least two interfaces comprise Mbus interface and programming data interface.
3. PIC controller according to claim 2 is characterized in that at system debug method, the programming data interface of described PIC controller during as communication interface by described PIC controller drives.
4. PIC controller according to claim 3 is characterized in that at system debug method, and the Mbus interface of described PIC controller carries out being used to receive the external debug instruction when the system debug to described PIC controller as communication interface; And
The programming data interface of described PIC controller carries out when the system debug described PIC controller as communication interface, is used for the information when the outside sends described PIC controller operation.
5.PIC the in-system programming connector that controller, comprises PIC controller, programming/debugging unit in the system debug system and connects described PIC controller and described programming/debugging unit is characterized in that:
Described programming/debugging unit utilizes the DLL (dynamic link library) of described PIC controller that described PIC controller is carried out in-system programming by described in-system programming connector, and at least two interfaces that make described PIC controller are as communication interface; And
Described PIC controller receives from the debug command of described programming/debugging unit by described at least two interfaces and carries out this debug command, and will export to described programming/debugging unit according to the information of this debug command operation by described at least two interfaces.
6. PIC controller according to claim 5 is characterized in that in the system debug system, also comprises first diode, second diode, resistance, first electric capacity and second electric capacity,
Wherein, the in-system programming interface programming voltage interface of described PIC controller, power interface, interface of the ground wire, Mbus interface, programming data interface are respectively with 1# interface, 3# interface, 5# interface, the 7# interface of described in-system programming connector with the 9# interface is corresponding is connected
Connecting line one end between the 3# interface of described power interface and described in-system programming connector links to each other with extraneous power supply by first diode, and the other end links to each other with ground wire by first electric capacity,
The resistance and second electric capacity that are connected in series are arranged between connecting line between the 3# interface of described power interface and described in-system programming connector and the ground wire, and the described resistance that is connected in series and second electric capacity and first electric capacity are connected in parallel,
The described resistance and second diode are connected in series between the connecting line between the 1# interface of connecting line between the 3# interface of described power interface and described in-system programming connector and described program voltage interface and described in-system programming connector.
CN200810240052.0A 2008-12-17 2008-12-17 System debugging method and system of positive-impedance converter (PIC) controller Expired - Fee Related CN101750993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810240052.0A CN101750993B (en) 2008-12-17 2008-12-17 System debugging method and system of positive-impedance converter (PIC) controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810240052.0A CN101750993B (en) 2008-12-17 2008-12-17 System debugging method and system of positive-impedance converter (PIC) controller

Publications (2)

Publication Number Publication Date
CN101750993A true CN101750993A (en) 2010-06-23
CN101750993B CN101750993B (en) 2014-04-02

Family

ID=42478064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810240052.0A Expired - Fee Related CN101750993B (en) 2008-12-17 2008-12-17 System debugging method and system of positive-impedance converter (PIC) controller

Country Status (1)

Country Link
CN (1) CN101750993B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271306A (en) * 2016-12-30 2018-07-10 河北英照照明科技有限公司 A kind of ballast for reducing programming port and improving interference free performance

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李荣正 等: "《PIC单片机原理及应用》", 31 December 2005, 北京航空航天大学出版社 *
杨升春等: "基于PIC单片机的调试器系统", 《计算机与数字工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271306A (en) * 2016-12-30 2018-07-10 河北英照照明科技有限公司 A kind of ballast for reducing programming port and improving interference free performance
CN108271306B (en) * 2016-12-30 2020-11-03 河北英照照明科技有限公司 Ballast capable of reducing programming port and improving anti-interference performance

Also Published As

Publication number Publication date
CN101750993B (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN201035568Y (en) USB equipment logical numbering and physical numbering mapping device
CN205450909U (en) BMC based on FPGA realizes
CN105446930A (en) Single selection end SPI (Serial Peripheral Interface) master-slave multi-machine bidirectional communication method
CN102637453B (en) Phase change memory including serial input/output interface
CN102981827A (en) Display interface data treatment method and platform based on middle piece
CN104834620A (en) SPI (serial peripheral interface) bus circuit, realization method and electronic equipment
CN102088384B (en) Standardized multifunctional LXI (LAN based extensions for instrumentation) equipment
CN107526614B (en) Communication method of FPGA development board
CN103279436A (en) Configuration method of functions of chip pin and chip
CN102291337A (en) Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
CN102981858B (en) Integrated circuit programming system and method based on mobile device
CN103677917A (en) Customizable embedded processing system based on FPGA reconfiguration technology
CN101750993B (en) System debugging method and system of positive-impedance converter (PIC) controller
CN110753424B (en) Driving circuit defined by pins based on LED driving chip
CN201993633U (en) Complete bus controller for electric bus based on PLC technology
CN115134427B (en) Communication protocol coordination method, device, computer equipment and storage medium
CN207586900U (en) Remote update system based on ZYNQ
CN103150952B (en) Reconfigurable electronic design automation (EDA) experimental platform
CN103488601B (en) A kind of clock delay, data access method, system and equipment
CN205210574U (en) Two obs core control modules based on microcontroller realizes FPGA data configuration
CN202353595U (en) Gateway for EtherCAT (Ethernet for control and automation technology) and RS485 communication switching
CN103150280A (en) Bus interface patch board and data transmission system
CN202693677U (en) Three-phase electronic electric energy meter
CN100518122C (en) Communication and display method of LonWorks I/O object under different transmission condition
CN203084708U (en) Integrated circuit programming system based on mobile device

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

Granted publication date: 20140402

Termination date: 20181217

CF01 Termination of patent right due to non-payment of annual fee