CN1588550A - USB general programing device - Google Patents

USB general programing device Download PDF

Info

Publication number
CN1588550A
CN1588550A CN 200410054033 CN200410054033A CN1588550A CN 1588550 A CN1588550 A CN 1588550A CN 200410054033 CN200410054033 CN 200410054033 CN 200410054033 A CN200410054033 A CN 200410054033A CN 1588550 A CN1588550 A CN 1588550A
Authority
CN
China
Prior art keywords
circuit
usb
control
data
signal
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
CN 200410054033
Other languages
Chinese (zh)
Other versions
CN100341072C (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.)
Fudan University
Original Assignee
Fudan University
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 Fudan University filed Critical Fudan University
Priority to CNB2004100540330A priority Critical patent/CN100341072C/en
Publication of CN1588550A publication Critical patent/CN1588550A/en
Application granted granted Critical
Publication of CN100341072C publication Critical patent/CN100341072C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention is a universal USB programmer. The existing programmer is simple so that the variety of programmable devices is relatively single or complex in adopting CPLD, triode, etc, so that the variety of programmable devices is multiple but the circuit cost is high. The invention advances a project that adopts USB, MCU and analog switch array and has the flexibility of universal programmer and its control circuit is simple so as to reduce the hardware cost. The invention also gives a standard of data transmission between a computer and the universal USB programmer.

Description

A kind of USB universal programmer
Technical field
The invention belongs to technical field of integrated circuits, be specifically related to a kind of USB universal programmer.
Technical background
Modern industry be unable to do without integrated circuit (be called for short IC), and quite a few highly versatile among the IC is programmed at specific (special) requirements and just to be competent at different work, so produced programmable device.Weigh the quality of a programmable device, two important characteristic indexs are arranged.Whether one is for needing external power supply, and the programmable device with USB interface directly utilizes the power supply of computing machine USB interface, has reduced annex, has alleviated weight; Whether it two for having versatility, and elementary programmable device is generally only supported same a series of programmable chip of specific IC producer, and benefit is that price is lower, and harm is the improvement that is unfavorable for product and reduce cost.Trace sth. to its source, chip programming generally needs 3 kinds of voltages: ground, 5 volts, 12 volts, generally fix with 12 volts the Pin locations of a series of IC, so corresponding programmable device is easy to design.Reach versatility requirement, should consider the keeping on vacillating property of 12 volts of programming Pin locations during the design programming device, complex scenarios such as the more universal programmable device employing CPLD of design corporation, triode, advantage is flexibly, and program speed is fast, and shortcoming is expensive.
Summary of the invention
The objective of the invention is to propose the USB universal programmer that a kind of dirigibility is good, speed very fast, price is lower.
The USB universal programmer of the present invention design, by USB interface and power generation circuit, oscillatory circuit, usb communication circuit, DC-DC booster circuit, host scm control circuit, signal voltage transitions circuit, go here and there also change-over circuit, select 1 switch arrays circuit, double socket programmed circuit to be formed by connecting from mcu programming control circuit, 2 through circuit.Its structured flowchart as shown in figure 11.Wherein, USB interface and power generation circuit provide the USB interface with the usb communication circuit, and derive (5 volts) power supply for remaining circuit work from USB interface; Oscillatory circuit drives the usb communication circuit working; The usb communication circuit is responsible for the transmitting-receiving of usb data bag; The effect of DC-DC booster circuit is that DC-DC gives birth to pressure, to the circuit supply that works in 12 volts of voltages; The host scm control circuit has 3 effects: produce pulsed drive DC-DC booster circuit, go here and there and change-over circuit and 2 selects 1 switch arrays circuit by the control of signal voltage transitions circuit, with the control of principal and subordinate's serial communication mode from the mcu programming control circuit; The signal voltage transitions circuit converts 5 volts of control signals to 12 volts of control signals; Go here and there and change-over circuit becomes the data-switching of serial input and the data of line output, remove to control 2 switches that select 1 switch arrays circuit as switching signal; On the one hand by the 2 part pins that select the indirect double socket programmed circuit of 1 switch arrays circuit, directly control all the other pins of double socket programmed circuit from the mcu programming control circuit on the other hand; 2 switches that select 1 switch arrays circuit are by going here and there and change-over circuit provides, and 2 select the 1 part pin that connects from mcu programming control circuit or 12 vor signals to double socket programmed circuit; Double socket programmed circuit is used to connect chip to be programmed.
The present invention designs above-mentioned USB universal programmer, has wherein adopted single-chip microcomputer 89C2051, by USB interface and computing machine swap data; Adopt some pieces of single-chip microcomputer MDT2005 that the required ground of USB universal programmer, (5 volts) VCC power supply and control signal directly are provided; Adopt some pieces of MC14054 chips to form 2 and select 1 switch arrays, adopt some pieces of MC14094 chips to realize going here and there and changing, and produce control signal row control MC14054 array, form thus flexibly that 12 volts of program voltages apply circuit, thereby make the USB universal programmer have versatility.
The present invention gives the transmission specification of USB universal programmer, and its primary structure is:
The USB universal programmer of the present invention design, highly versatile, dirigibility are good, and its control circuit is directly perceived, and hardware cost is lower.
Description of drawings
Fig. 1 is USB interface and power generation circuit.
Fig. 2 is a crystal oscillating circuit.
Fig. 3 is the usb communication circuit.
Fig. 4 is the DC-DC booster circuit.
Fig. 5 is the host scm control circuit.
Fig. 6 is the signal voltage transitions circuit.
Fig. 7 is from the mcu programming control circuit.
Fig. 8 is for going here and there and change-over circuit.
Fig. 9 is double socket programmed circuit.
Figure 10 is the either-or switch array circuit.
Figure 11 is this USB universal programmer general structure block diagram.
Figure 12 is this USB universal programmer Control Software structured flowchart.
Number in the figure: 1 is usb circuit and power generation circuit, 2 is the usb communication circuit, 3 is oscillatory circuit, 4 is the host scm control circuit, and 5 is the signal voltage transitions circuit, and 6 is the DC-DC booster circuit, 7 is the mcu programming control circuit, 8 for going here and there and change-over circuit, and 9 is double socket programmed circuit, and 10 is 2 to select 1 switch arrays circuit.
Embodiment
Further describe the present invention below by embodiment and accompanying drawing.
USB interface shown in Figure 1 and power generation circuit provide the USB interface with the usb communication circuit, and derive the work of 5 volts power supplys confession remaining circuits from USB interface.Socket J3 is a USB interface, and 1 pin of J3 is ground, and 2,3 pin are respectively DP, the DN differential signal of USB, is that difference build-out resistor R15, the R16 of 18 Ω is connected with signals DP, DN by size.4 pin of J4 are 5 volts of USB power supplys, introduce this power supply as the required VCC signal of USB universal programmer.D1 is a germanium diode, and forward voltage drop is approximately 0.2 volt, and its effect is to provide power supply by it to the V12 signal when V12 voltage signal<5 volt, guarantees that the circuit that 12 vor signals drive can work this moment.
Crystal oscillating circuit shown in Figure 2 produces oscillator signal and drives the usb communication circuit working.Y1 forms by ceramic resonator, and there are two electric capacity stable oscillation stationary vibration waveforms this crystal resonator inside, and an end of electric capacity is through J6 ground connection.
Usb communication circuit shown in Figure 3 is responsible for the transmitting-receiving of usb data bag.Adopt USB interface device PDIUSB12D, this chip meets the USB1.1 standard, has the full speed usb communication function of 12Mbit/s, and 8 bit parallel interfaces are arranged, and makes things convenient for Single-chip Controlling.The mode of operation 0 of this chip provides end points 0 and end points 2, and end points 0 has the I/O function, and the maximum data packet length is 16 bytes, is used for the control transmission of USB; End points 2 has the I/O function, and the maximum data packet length is 64 bytes, and the data buffer of dual 64 bytes is arranged, and is fit to piece transmission at full speed.Its pin connects as follows:
(1) 5,24 pin are its supply pins, 5 pin ground connection, and 24 pin are connected on the VCC signal.
(2) 22,23 pin are its vibration pin, the two ends of receiving the ceramic resonator Y1 of built-in stable electric capacity on request, and the frequency of Y1 is 6MHz, as shown in Figure 2.
(3) 25,26 pin are respectively usb signal DN, the DP pin of this chip, are connected to DN, DP.
The (4) 1,2,3,4,6,7,8, the 9th, its parallel interface is received 8 bit data bus AD[0..7 of USB universal programmer] on, by this bus, single-chip microcomputer can control this chip and with this chip swap data.
So (5) 10 pin are address latch input signals, need not be ground connection; 14 pin are data transmit-receive interrupt identification output signals, need not, so unsettled; 12 pin are to make chip enter the suspended state input signal, open leakage, and this chip never enters suspended state among the design, so can be unsettled; 17,18,19 pin be respectively chip DMA request output, admit input, interrupt input signal that the design does not use the DMA function, so unsettled respectively, receive on the V3.3 signal; Vout33 is 3.3 volts of power supply output pins of chip, need not, can be unsettled, or receive on the V3.3 signal; 11 pin are chip chip selection signals, and are effectively low.Because bus AD[0..7] only connect MCU single-chip microcomputer and this chip, thus chip selection signal ground connection, permanent gating.
(6) 28 pin are address bit input signals, and signal is that what represented in 0 o'clock to import is data on this pin, otherwise is command instruction, so receive on the CASEL signal, is controlled by single-chip microcomputer.
(7) 13 pin are oscillator signal output pins able to programme, and frequency is 48MHz/ (n+1), and wherein n is the positive number between 1 to 11, are 11 during beginning.This signal is connected on the clock, is used to drive the MCU single-chip microcomputer.
(8) 15,16 pin are reading and writing control input pin respectively, and are effectively low, receive on nRD, the nWR signal, controlled by the MCU single-chip microcomputer.
(9) 21 pin are USB connection status pilot lamp, and are effectively low, can absorb the electric current of 8mA, so be connected with light emitting diode LP1 by resistance R 10, the other end of diode is received on the V3.3 signal, and the effect of R10 is the size of Control current, and the direction of diode can not connect instead.
DC-DC booster circuit shown in Figure 4 obtains 12 volts voltages from 5 volts of voltages through boosting, and selects 1 switch arrays circuit supply to the string that works in 12 volts of voltages to change-over circuit, 2 also.Constitute by inductance EL1, metal-oxide-semiconductor Q5, germanium diode ED1 and pull-up resistor R14, electric capacity of voltage regulation EC2.The effect of inductance EL1 is energy storage, and when Q5 connected, VCC charged to EL1; When Q5 disconnected, EL1 discharged to V12 by ED1.The effect of ED1 is to isolate V12 and ground.The effect of R14 is to bleed off unnecessary electric charge, the upper limit of control V12.The effect of EC2 is the ripple that removes V12.Pulse signal CASEL is produced by single-chip microcomputer, and its frequency has determined the height of V12.Under the prerequisite of output 100mA electric current, V12 is generally 12 volts, in fact can change continuously in 5 volts to 18 volts, enough satisfies the demand of various popular programmable chips.
Host scm control circuit shown in Figure 5 has 3 effects: produce pulsed drive DC-DC booster circuit, go here and there and change-over circuit and 2 selects 1 switch arrays circuit by signal voltage transitions circuit control, with the control of principal and subordinate's serial communication mode from the mcu programming control circuit.Adopt the single-chip microcomputer 89C2051 of 51 compatibilities to realize, its pin connects as follows:
(1). supply pin 10,20 is ground connection, VCC signal respectively.
(2) .5 is the vibration input pin, is connected to the Clk oscillator signal that PDIUSB12D transmits, the 4th, and the vibration output pin, need not, suspend.
(3) .1 is the input pin that resets, and is high effectively, is connected on the RST signal of centre of C1 and R9.When powering on, the C1 charging, because C1 is connected on the VCC, so RST is high, chip resets; After after a while, the electric charge among the C1 flow to ground through R9, and RST is step-down thereupon, and end resets.
(4) 8 of the .P1 mouth IO pin are connected to the bus AD[0..7 of USB universal programmer as bus interface] on.Because high 6 of P1 have and draw function on weak, low 2 do not have, and for I/O neatly, need by resistance R 11, and R12 draws on it.
(5) .2,3 pin are used to control writing, reading of PDIUSB12D, are connected respectively on nWR, the nRD signal.
(6) the .11 pin is used to produce signal CASEL, notifies PDIUSB12D order and data on the one hand, is used for DC-DC on the other hand and boosts.
(7) .6,7,8,9 is connected with rD, rSTR, rCLK, rINH signal respectively.
Signal voltage transitions circuit shown in Figure 6 converts 5 vor signals to 12 vor signals.Be made of NPN triode Q1, Q2, Q3, Q4 and corresponding resistance, the conversion of signals of being responsible for rD, rSTR, rCLK, four VCC sizes of rINH is D, the STR of V12 size, CLK, INH signal.Electrical level polar before and after the conversion is opposite.
Shown in Figure 7 from the mcu programming control circuit on the one hand by 2 24 pins that select the indirect double socket programmed circuit of 1 switch arrays circuit, directly control 20 pins of double socket programmed circuit on the other hand.Control signal CTR[0..43 under the traction of 89C2051] I/O.Adopt the single-chip microcomputer MDT2005 of PIC compatibility to realize, operating voltage is between 2.3 volts to 5 volts, and port discrepancy electric current maximum can reach more than the 20mA.The pin of MDT2005 connects as follows:
(1). supply pin 5,14 is ground connection, VCC signal respectively.
(2) .16 is the vibration input pin, is connected to the clock oscillator signal that PDIUSB12D transmits, the 15th, and the vibration output pin, need not, suspend.
(3) .4 is the input pin that resets, and is effectively low, utilizes the inside electrification reset function of chip, is connected on the VCC signal without the function of this pin is former.
(4) .17,18,1,6,7,8,9,10,12,12,11 IO mouths of 13 pin are connected on the CTRx signal as bus interface, and input is during data, and these pin will be arranged to input state, during output command/data, must be arranged to output state.
(5) the .2 pin is connected to the rD signal, and 3 pin are received on the rCLK, with 89C2051 initiatively, master-slave mode that MDT2005 is passive finishes serial communication.
Shown in Figure 8 go here and there and change-over circuit becomes the data-switching of serial input and the data of line output removes to control 2 switches that select 1 switch arrays circuit as switching signal.Its supply pin 3,16 is connected on respectively on ground, the V12.Data D on the pin 2 is input on the register of MC14094 inside by serial under the effect of the CLK pulse on 3 pin, and the pulse STR on 1 pin is driven into the numerical value on the register of inside on the pin 4,5,6,7,11,12,13,14.MC14094 is configured to the permanent output state that allows, and 3 pieces have 24 output signal SEL[10..21], SEL[32..43], be operated in MC14053 on the V12 in order to driving.
44 pin of double socket programmed circuit shown in Figure 9 are used to connect chip to be programmed.44 effective pin, be arranged in 2 row, respectively with signal CTR[0..9], CTR[22..31], AD[10..21], AD[32..43] be connected, here, the CTR voltage of signals have ground, two kinds of selections of VCC, the AD signal has ground, three kinds of selections of VCC, V12.When specifically placing chip, for the V12 voltage pin that guarantees chip drops in following 24 AD pin of socket, necessary words can be rotated 18 degree placements chip to be programmed.
Shown in Figure 10 2 switches that select 1 switch arrays circuit are by going here and there and change-over circuit provides, and alternative connects 24 pin from mcu programming control circuit or 12 vor signals to double socket programmed circuit.Constitute by 8 pieces of analog switch MC14053, its supply pin 1,8,16 respectively with ground,, V12 is connected.Analog switch has less connection resistance, can flow through the above electric current of 20mA.3 groups of either-or switch are arranged among a slice MC14053, and the INH signal on 6 pin disconnects all switches when being high, connects when low.All IO mouths were for high when 89C2051 resetted, through be low after Fig. 6 circuit reversed polarity, so connect when beginning.One of two choosings of either-or switch are CTRx signal (providing ground, VCC by MDT2005), two be the V12 signal, select one of them by the SELx signal, SELx selects the former, latter when high when hanging down.Have 24 switch connections and receive signal AD[10..21], AD[32..43] on.Only during the chip sense information from socket, all SELx should be 0 to select MDT2005 directly to control all pin.
The Control Software block diagram of the USB universal programmer of the present invention's design is made of 2 parts as shown in figure 12: USB device identification, finish by 0 read-write of control end points, and meet USB standard 1.1; The control of USB universal programmer is finished by 2 read-writes of end points, meets the USB universal programmer data transmission standard that provides later.
The detailed process of first's USB device identification is as follows:
(1) initialization.The pin of main control single-chip microcomputer 89C2051 is arranged to input state;
(2) self-expression full speed USB device.Drag down the DP pin of USB interface device, tell and inserted USB device at full speed on the computing machine USB interface, and suitable output oscillation frequency is set:
1. the D12_SetMode function that is provided in the operation instruction file of this device is provided, disconnects this device.
2. wait for 50 milliseconds;
3. call the D12_SetDMA function, close the DMA function;
4. call the D12_SetMode function once more, connect this device and suitable output oscillation frequency is set;
(3) check whether end points 0 receives data.Call the D12_ReadEndpoint function, only read the length (can not clear data) of the data that end points 0 input block receives, this length illustrates that greater than 0 computing machine has sent data to USB device.Whether read data bag type identification is the SETUP bag.Remove the interrupt flag bit of USB interface device end points 0 input by function D12_ReadLastTransactionStatus, obtain the type of the packet of this end points simultaneously.If not setting up bag, spare bits is set.Otherwise, further handle.
(4) read buffer zone 8 bytes, empty buffer zone.Call the D12_ReadEndpoint function and read end points 0 buffer zone 8 bytes, clear buffer is used for reading in data next time.If the data deficiencies of reading 8 bytes illustrate that the data of passing are not right, spare bits is set, the input of call function D12_SetEndpointStatus obstruction end points 0/go out; Otherwise want further concrete condition concrete analysis.
(5) resolve the USB request.Call the input of D12_AcknowledgeEndpoint function release end points 0/go out, extract the data length (the words intercepting greater than 127 is 127) of next step operation from the length field of setting up bag.Check the direction position in the bag type field, if set, the direction of next step data transmission be equipment to computing machine, this may be GetConfiguration, Get Descriptor, Get Interface, Get status standard USB request.Otherwise be computing machine to equipment, check the data length of next step operation:
1. equaling 0, may be Set Address, Set Configuration, Set Feature, Set Interface, SetDescriptor standard USB request.
2. being not more than 8, is to the equipment output data, removes spare bits, is provided with to receive position preparation reception data.
3. greater than 8, call function D12_SetEndpointStatus blocks the input of end points 0/go out.
(6) respond all standard USB requests.According to setting up the bag request domain, make specifically corresponding:
1. GET_STATUS, setting up bag request type territory has 3 kinds of situations, returns 2 byte information respectively:
0x00:0x00 0x00 (Remote Wake Up forbid bus power source), 0x02 0x00 (permission);
0x01:0x00 0x00 (interface case);
0x02:0x01 0x00 (end points is forbidden), 0x00 0x00.
2. CLEAR_FEATURE, subset Remote Wake Up and end points are forbidden two kinds of situations, write down and call D12_SetEndpointStatus and make corresponding setting, return 0 length data and represent to finish.
3. SET_FEATURE, according to record, the data reflection apparatus remote that returns a byte wakes up with end points forbids two kinds of situations.
4. SET_ADDRESS extracts new address from the numerical value territory of bag, calls the D12_SetAddressEnable function equipment is arranged to this address, returns 0 length data and represents to finish.
5. GET_DESCRIPTOR distinguishes the Returning equipment descriptor according to circumstances, or returns all configurations, interface, class, endpoint descriptor.
6. GET_CONFIGURATION returns the configuration of a byte/clear data.
7. SET_CONFIGURATION extracts configuration/clear flag from the numerical value territory of bag, and call function D12_SetEndpointEnable setting/removing configuration is returned 0 length data and represented to finish.
8. GET_INTERFACE returns data 0 expression of a byte and finishes.
9. SET_INTERFACE returns 0 length data and represents to finish.
10. all the other situations, call function D12_SetEndpointStatus blocks the input of end points 0/go out.
(7) end points 0 has data to need to send: send data.The state of call function D12_ReadLastTransactionStatus USB interface device end points 0 output, and the interrupt flag bit of removing, if spare bits=0 and transmission position=1, expression has data to need to send.Call function D12_WriteEndpoint further sends the data of maximum 16 bytes.Must be during last the transmission less than 16 bytes, expression sends and finishes.
The detailed process of second portion USB universal programmer control is as follows:
Check whether end points 2 receives data.Read buffer zone 36 bytes, empty buffer zone, matching check begins 4 bytes, and resolves the BLOCK order.Call the D12_ReadEndpoint function, read data and clear buffer that maximum 36 byte end points 2 input blocks receive, this length is non-0, illustrates that computing machine has sent data to USB device.Whether matching check the 0th, 1,2,3 bytes are ' B ', ' L ', ' K ', ' L ', unmatched words then no longer further process.The 15th byte is the BLOCK order, abides by USB universal programmer standard and responds, and issues a series of orders in case of necessity.
(1) during .BLOCK_INQUIRY (18), return the information of 36 bytes, 4 to 18 bytes are " Programmer 1.00 ".
(2) during .BLOCK_READ (40)/BLOCK_WRITE (42), main 89C2051:
1. take out the synchronous symbol of the 16th byte, by rCLK, rD signal enabling MDT2005 synchronous operation.
2. take out the 17th, 18,19 bytes, by rCLK, rD signal enabling MC14094 exports 24 switch bit sw.
3. take out the 20th, 21 bytes, by rCLK, the PA of rD signal controlling U14, the I/O state of PB mouth, 1: input, 0: output; Similar 22,23 bytes control U12,24,25 bytes control U15,26,27 bytes control U13.
4. take out the 28th, 29 bytes during BLOCK_WRITE, by rCLK, the PA of rD signal controlling U14, the data on the PB mouth, the corresponding U12 of 30,31 bytes similarly, the corresponding U15 of 32,33 bytes, the corresponding U13 of 34,35 bytes; The time data write on the mouth, from mouth read data.
5. during BLOCK_READ by rCLK, the rD signal read U14 PA, the data on the PB mouth and be filled into the 28th, 29 bytes; U12 correspondence 30,31 bytes similarly, U15 correspondence 32,33 bytes, U13 correspondence 34,35 bytes are called D12_WriteEndpoint and are write end points 2 delivery outlets 36 byte datas.
6. take out the 12nd, 13 bytes control DC-DC pressure rising time during BLOCK_WRITE, value is in [1,255].
7. take out the 14th byte control DC-DC voltage boosting pulse width during BLOCK_WRITE.
USB universal programmer data transmission standard
(1). computing machine is by the piece transmission of USB and the main control single-chip microcomputer swap data in the USB universal programmer;
(2). support BLOCK_INQUIRY (18), BLOCK_READ (40), (42) three kinds of operational orders of BLOCK_READ;
(3). the pin coupling of socket pins and 4 pieces of MDT2005 is as follows, the numeral number of wherein inboard numeral 1 to 44 expression socket, the place that sw occurs represents to have 3 kinds of voltages to select, the carry-out bit that shows MC14094 is specifically arranged, corresponding sw=1 represents gating V12, otherwise certain IO mouth Px.n of gating piece MDT2005:
U13PA.0 44 34 U12PA.0
U13PA.1 43 33 U12PA.1
U13PA.2 42 32 U12PA.2
U13PB.0 41 31 U12PB.0
U13PB.1 40 30 U12PB.1
U13PB.2 39 29 U12PB.2
U13PB.3 38 28 U12PB.3
U13PB.4 37 27 U12PB.4
U13PB.5 36 26 U12PB.5
U13PB.6 35 25 U12PB.6
U13PB.7 sw?24 12?sw?U12PB.7
U15PA.0 sw?23 11?sw?U14PA.0
U15PA.1 sw?22 10?sw?U14PA.1
U15PA.2 sw?21 9 sw?U14PA.2
U15PB.0 sw?20 8 sw?U14PB.0
U15PB.1 sw?19 <---12V---> 7 sw?U14PB.1
U15PB.2 sw?18 6 sw?U14PB.2
U15PB.3 sw?17 5 sw?U14PB.3
U15PB.4 sw?16 4 sw?U14PB.4
U15PB.5 sw?15 3 sw?U14PB.5
U15PB.6 sw?14 2 sw?U14PB.6
U15PB.7 sw?13 1 sw?U14PB.7
(4). adopt the data layout of 36 bytes, the socket of partial data in this form and USB universal programmer has relation one to one:
1. 0,1,2,3 bytes are ' B ', ' L ', ' K ', ' L '.
2. the 12nd, 13 bytes are controlled DC-DC pressure rising time, and value is in [1,255].
3. the 14th byte is controlled DC-DC voltage boosting pulse width, and value is in [0,255].
4. the 15th byte is the BLOCK order.
5. 16 bytes are to accord with 01010100 synchronously.
6. 17,18,19 bytes are 24 of MC14094 output switch bit sw, correspond respectively to 1 to 24 pin of socket from the most significant digit of lowest order to 19 byte of 17 bytes.
8. 20,21 bytes are controlled the PA of U14, the I/O state of PB mouth, and 1: input, 0: output; Similar 22,23 bytes control U12,24,25 bytes control U15,26,27 bytes control U13.
9. the PA of the corresponding U14 of 28,29 bytes, the data on the PB mouth, the corresponding U12 of 30,31 bytes similarly, the corresponding U15 of 32,33 bytes, the corresponding U13 of 34,35 bytes.
In the implementation process of the present invention, the principle of Electronics Engineer in according to the present invention, adopt single-chip microcomputer 89C2051 as master controller, download Franklin C V3.2 SDK (Software Development Kit) from the Internet, the software flow that provides according to the present invention, design correct main control software, generate the HEX programming file of 89C2051.Adopt single-chip microcomputer MDT2005 as slave controller, download the SDK (Software Development Kit) of MDT2005 from the Internet, the software flow that provides according to the present invention is designed correctly in Control Software, generates the scale-of-two programming file of MDT2005.Shine the schematic diagram that draws shown in the accompanying drawing with PROTEL circuit diagram design software.The placement schemes that Electronics Engineer and art work personnel consult to plan jointly components and parts adopts the paster components and parts, the PCB that draws figure.From PCB figure generator device list.
1. the hardware device driver developer downloads the WinDriver device drives developing instrument of Jungo from the Internet, the USB universal programmer driver of generating run on WINDOWS; The Hardware Engineer develops the some kinds of The application of single-chip computer programs of programming; With intelligence the wrapper packing is installed and generates the SETUP.EXE installation procedure.

Claims (3)

1, a kind of USB universal programmer, it is characterized in that by USB interface and power generation circuit, oscillatory circuit, usb communication circuit, DC-DC booster circuit, host scm control circuit, signal voltage transitions circuit, go here and there and change-over circuit, select 1 switch arrays circuit, double socket programmed circuit to be formed by connecting through circuit from mcu programming control circuit, 2, wherein, USB interface and power generation circuit provide the USB interface with the usb communication circuit, and derive power supply for remaining circuit work from USB interface; Oscillatory circuit drives the usb communication circuit working; The usb communication circuit is responsible for the transmitting-receiving of usb data bag; The effect of DC-DC booster circuit is that DC-DC gives birth to pressure, to the circuit supply that works in 12 volts of voltages; The host scm control circuit has 3 effects: produce pulsed drive DC-DC booster circuit, go here and there and change-over circuit and 2 selects 1 switch arrays circuit by the control of signal voltage transitions circuit, with the control of principal and subordinate's serial communication mode from the mcu programming control circuit; The signal voltage transitions circuit converts 5 volts of control signals to 12 volts of control signals; Go here and there and change-over circuit becomes the data-switching of serial input and the data of line output, remove to control 2 switches that select 1 switch arrays circuit as switching signal; On the one hand by the 2 part pins that select the indirect double socket programmed circuit of 1 switch arrays circuit, directly control all the other pins of double socket programmed circuit from the mcu programming control circuit on the other hand; 2 switches that select 1 switch arrays circuit are by going here and there and change-over circuit provides, and 2 select the 1 part pin that connects from mcu programming control circuit or 12 vor signals to double socket programmed circuit; Double socket programmed circuit is used to connect chip to be programmed.
2, according to the described USB universal programmer of claim 1, it is characterized in that:
(1). one piece of single-chip microcomputer 89C2051 is arranged by USB interface device and computing machine swap data;
(2). there are some pieces of single-chip microcomputer MDT2005 that the required ground of USB universal programmer, VCC power supply and control signal directly are provided;
(3). have some pieces of MC14094 to realize going here and there and changing and produce 2 of some pieces of MC14053 formations of control signal row control and select 1 switch arrays, forming flexibly thus, 12 volts of program voltages apply circuit.
3, a kind of data transmission standard of USB universal programmer as claimed in claim 1 is characterized in that
(1). computing machine is by the piece transmission of USB and the main control single-chip microcomputer swap data in the USB universal programmer;
(2). support BLOCK_INQUIRY, BLOCK_READ, three kinds of operational orders of BLOCK_READ;
(3). the data layout that support has 36 bytes, the socket of partial data in this form and USB universal programmer have relation one to one.
CNB2004100540330A 2004-08-26 2004-08-26 USB general programing device Expired - Fee Related CN100341072C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100540330A CN100341072C (en) 2004-08-26 2004-08-26 USB general programing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100540330A CN100341072C (en) 2004-08-26 2004-08-26 USB general programing device

Publications (2)

Publication Number Publication Date
CN1588550A true CN1588550A (en) 2005-03-02
CN100341072C CN100341072C (en) 2007-10-03

Family

ID=34603039

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100540330A Expired - Fee Related CN100341072C (en) 2004-08-26 2004-08-26 USB general programing device

Country Status (1)

Country Link
CN (1) CN100341072C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008098426A1 (en) * 2007-02-15 2008-08-21 Shenzhen Secom Telecom Co., Ltd Hand held single chip microcomputer programmer
CN100421073C (en) * 2005-12-14 2008-09-24 英业达股份有限公司 Universal programmor and programming method
CN101576825B (en) * 2009-05-08 2012-07-04 上海耕研电子科技有限公司 Embedded integrated circuit programmer

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI653844B (en) 2016-07-27 2019-03-11 瑞昱半導體股份有限公司 Usb type-c switching circuit

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2049377U (en) * 1989-05-16 1989-12-13 珠海新电集成有限公司 Universal array logic programmer
CN1082729A (en) * 1992-07-11 1994-02-23 王邦柱 Loosely-coupled general programer
CN2256578Y (en) * 1996-04-30 1997-06-18 林桂荣 Universal recorder
CN2562245Y (en) * 2002-01-25 2003-07-23 大阳科技股份有限公司 Programming IC burn-in device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100421073C (en) * 2005-12-14 2008-09-24 英业达股份有限公司 Universal programmor and programming method
WO2008098426A1 (en) * 2007-02-15 2008-08-21 Shenzhen Secom Telecom Co., Ltd Hand held single chip microcomputer programmer
CN101576825B (en) * 2009-05-08 2012-07-04 上海耕研电子科技有限公司 Embedded integrated circuit programmer

Also Published As

Publication number Publication date
CN100341072C (en) 2007-10-03

Similar Documents

Publication Publication Date Title
CN1133946C (en) Network system, combination device, combination device control method and storage medium
CN1764847A (en) Communication interface for diagnostic circuits of an integrated circuit
CN107368441B (en) Configurable and power optimization integrated grid driver and Type-C SoC for USB transmission of electricity
CN1804799A (en) SCM online loading and updating method and system
CN1485728A (en) Display apparatus
CN1871573A (en) Peripheral device and its control method its main body device and its control method and its program
CN1163043C (en) Display unit and electronic machine using the same and detecting method of the same
CN1851681A (en) Device and method for operating USB interface device
CN1862512A (en) Single board read/writ system and method for information
CN107977212A (en) Support the high speed cd-rom recorder of multiple communication modes
CN1877552A (en) Communication apparatus, switching method, and switching program
CN1737779A (en) Method and system for expanding peripherals
CN100341072C (en) USB general programing device
CN1287259C (en) Device and method for operating multiple I2C sub device in communication equipment
CN109542465B (en) Data writing method, system, device, equipment and medium of integrated circuit chip
CN107506321A (en) A kind of COMe_nano core boards based on Godson 2H chips
CN1258699C (en) Electronic equipment and its use method
CN1490702A (en) PC card controller, computer system therewith and PC card identifying method
CN204537087U (en) The communication type LED display module screen of a kind of integrated touch and display driver
US11410711B2 (en) Data writing method and apparatus
CN103994358A (en) Non-drive LED light source structure and manufacturing method thereof
CN212112456U (en) Downloading device for FPGA configuration file
CN1521664A (en) Reduced cardbus controller
KR20060107128A (en) Usb drive having within spare battery
CN221507363U (en) Handheld debugging device for terminal control equipment

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071003

Termination date: 20100826