CN211653464U - Sent communication signal generator based on singlechip - Google Patents

Sent communication signal generator based on singlechip Download PDF

Info

Publication number
CN211653464U
CN211653464U CN202020713114.1U CN202020713114U CN211653464U CN 211653464 U CN211653464 U CN 211653464U CN 202020713114 U CN202020713114 U CN 202020713114U CN 211653464 U CN211653464 U CN 211653464U
Authority
CN
China
Prior art keywords
chip microcomputer
singlechip
peripheral control
signal generator
single chip
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
CN202020713114.1U
Other languages
Chinese (zh)
Inventor
张志辉
马毅
陈磊
刘明
秦金龙
孙一鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Automotive Engineering Research Institute Co Ltd
Original Assignee
China Automotive Engineering Research Institute 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 China Automotive Engineering Research Institute Co Ltd filed Critical China Automotive Engineering Research Institute Co Ltd
Priority to CN202020713114.1U priority Critical patent/CN211653464U/en
Application granted granted Critical
Publication of CN211653464U publication Critical patent/CN211653464U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model belongs to the technical field of signal generator, specifically provide a send communication signal generator based on singlechip, include: a single chip microcomputer and a peripheral control circuit; the number of the peripheral control circuits is not less than 2, the peripheral control circuits are respectively and electrically connected with input pins of the single chip microcomputer, and the peripheral control circuits are used for generating level signals; and a signal output pin of the singlechip is used for connecting an upper computer. By using the device, a detector can simulate the sensor by using the singlechip and simulate a detection signal of the sensor by using a digital signal output by the sensor. The application has the advantages of simple structure and low cost. The operation is simple, only a peripheral control circuit needs to be controlled, and the flexibility is excellent as the analog value of the sensor can be set in advance.

Description

Sent communication signal generator based on singlechip
Technical Field
The utility model belongs to the technical field of signal generator, especially, relate to a send communication signal generator based on singlechip.
Background
At present, the OBD system of the whole automobile adopts the national 6 regulation standard, and in order to meet the national 6 standard, most host factories add particle traps for the whole automobile, and the particle traps are all required to be provided with differential pressure sensors to monitor whether the pressure of the particle traps is normal. During the whole vehicle development process, the fault simulation of the particle catcher differential pressure sensor is required, and the process needs to send a send communication signal to a whole vehicle control unit to simulate a differential pressure signal. However, at present, no send signal generator or related equipment exists in China, the cost for purchasing the foreign equipment is high, the period is long, and the increasing requirements of the send signal generator are difficult to meet.
Therefore, a simple send communication signal generator is needed, which can reduce the equipment cost and the production period, so as to meet the test requirements of the pressure difference signal test development of the whole vehicle particle catcher and other test items requiring the send signal.
SUMMERY OF THE UTILITY MODEL
The utility model aims at providing a send communication signal generator based on singlechip can reduce equipment cost and production cycle to satisfy whole car particle catcher pressure differential signal test development and other test requirements that need the test project of send signal.
The utility model provides a basic scheme does:
the utility model provides a send communication signal generator based on singlechip, includes: a single chip microcomputer and a peripheral control circuit; the number of the peripheral control circuits is not less than 2, the peripheral control circuits are respectively and electrically connected with input pins of the single chip microcomputer, and the peripheral control circuits are used for generating level signals; and a signal output pin of the singlechip is used for connecting an upper computer.
Basic scheme theory of operation and beneficial effect:
during detection, a tester only needs to control the peripheral control circuit and send a level signal to the corresponding input pin of the single chip microcomputer through the peripheral control circuit. And after the singlechip identifies the pin receiving the level signal, the singlechip sends a corresponding digital signal to the upper computer through the output pin. The single chip microcomputer outputs corresponding digital signals according to the pins receiving the level signals, wherein related programs belong to the prior art and are not described herein again.
By the mode, a detector can simulate the sensor by using the single chip microcomputer and simulate a detection signal of the sensor by using a digital signal output by the sensor. Since the value of the sensor can be designed in advance, the value to be detected by the sensor can be accurately sent. And then the simulation test of the send signal is completed.
At least two peripheral control circuits can send level signals to at least two input pins of the single chip microcomputer, so that the single chip microcomputer outputs at least two simulated sensor detection values, and efficient send signal testing can be realized by reasonably setting the detection values (such as setting the maximum value and the minimum value in a detection range).
The application has the advantages of simple structure and low cost. And the operation is simple, and only the peripheral control circuit needs to be controlled. And since the analog value of the sensor can be set in advance, the flexibility is also excellent.
Furthermore, the peripheral control circuit comprises a key circuit, the key circuit comprises a switch key and a power supply, one end of the switch key is connected with the power supply, and the other end of the switch key is grounded and is also electrically connected with an input pin of the singlechip.
According to the structure, the received level signal of the input pin of the single chip microcomputer can be changed by changing the pressing state of the switch key, and the output sent signal can be changed by identifying the level signal and the corresponding pin.
Furthermore, the number of the keying circuits is not less than 3.
Such setting can be connected 3 at least pins, makes the singlechip can accept 3 at least model signals, and then sends out 3 at least send test signals to carry out comparatively comprehensive detection to the object to be measured.
Further, the number of the key circuits is 4.
The design of 4 key circuits can respectively correspond to four modes of minimum data value, maximum data value, signal check bit calculation error and no-signal check, and the 4 keys can be used for completely detecting a detection object.
And furthermore, the display screen is also included, and an interface of the display screen is electrically connected with an output pin of the singlechip.
Through the setting of display screen, the mode of the send signal that the display screen can show current singlechip output, the mode that the test personnel of being convenient for audio-visual understanding current send signal is located.
Further, the display screen is a 1602 liquid crystal display screen.
The 1602 liquid crystal display screen is small and exquisite in appearance, electricity-saving, extremely low in heating value during working, very light and thin and convenient to install.
Furthermore, the device also comprises a timing circuit and a counting circuit which are respectively electrically connected with the output pin of the singlechip.
Through the timing circuit and the technical circuit, the related parameters of the test such as time, frequency and the like can be known.
Further, the display screen also displays the time of the test and the number of times of sending the send signal.
The timing adopts the timing function of the STC89C52 single chip microcomputer, and the sending times and the sending time of the send signals can be counted. In this way, the transmit frequency of the send signal can be estimated, and the test results can be learned from another dimension.
Furthermore, the peripheral control circuit also comprises a pulse signal generating circuit, and the output end of the pulse signal generating circuit is electrically connected with one end of the key circuit, which is connected with the power supply.
When the same send signal needs to be simulated repeatedly for multiple times, the pulse signal generating circuit of the corresponding peripheral control circuit can be switched on, the external control circuit can send level signals at regular time according to preset frequency, and then the corresponding pin of the single chip microcomputer receives the level signals according to the preset frequency, so that the corresponding send signal is simulated according to the preset frequency.
Further, the pulse signal generating circuit is a 555 pulse signal generating circuit.
The 555 pulse signal generating circuit is mature in technology, simple in structure and convenient to operate.
Further, the model of singlechip is STC89C 52.
The STC89C52 single chip microcomputer is used as a low-power-consumption and high-performance CMOS 8-bit microcontroller, a classic MCS-51 kernel is used, and a lot of improvements are made, so that the chip has functions which are not possessed by a traditional 51 single chip microcomputer, and the requirements on a main control chip in the application can be well met; and the STC89C52 singlechip is reasonable in price, and the cost can be well controlled.
Drawings
Fig. 1 is a schematic diagram of a pin structure of a single chip microcomputer according to an embodiment of the present invention;
fig. 2 is a structure diagram of a crystal oscillator circuit of a single chip computer according to an embodiment of the present invention;
fig. 3 is a structural diagram of a key circuit according to an embodiment of the present invention;
fig. 4 is a connection diagram of the liquid crystal display and the single chip in the first embodiment of the present invention;
fig. 5 is a circuit diagram of a 555 pulse signal generating circuit in the second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a third embodiment of the present invention.
Detailed Description
The following is further detailed by way of specific embodiments:
example one
A send communication signal generator based on a single chip microcomputer comprises the single chip microcomputer, a peripheral control circuit and a display screen.
The singlechip in the embodiment is a singlechip of STC89C52 model. The single chip microcomputer STC89C52 is used as a low-power-consumption and high-performance CMOS 8-bit microcontroller, a classic MCS-51 kernel is used, and a lot of improvements are made, so that the chip has functions which are not possessed by a traditional 51 single chip microcomputer, and the requirements on a main control chip in the application can be well met; and the STC89C52 singlechip is reasonable in price, and the cost can be well controlled.
As shown in fig. 1, pin 20 of the single chip microcomputer is a ground terminal, and pin 21 is a power supply terminal. Pins 1-8 are P1.0-P1.7 quasi-bidirectional I/O ports. And a 9 th pin RST is a power-on reset end of the singlechip. The pins 10-17 are quasi-bidirectional I/O ports of P3 ports, wherein P3.7 is a send signal output interface for electrically connecting with an upper computer. As shown in fig. 2, the 18 and 19 pins are externally connected with a quartz crystal and an oscillation capacitor, in this embodiment, the oscillation capacitor adopts a capacitor with a specification of 22PF, and the crystal oscillation frequency is 12 MHz. Pin 30 is tied to a level in the system because STC89C52 has internal program memory. The 22 nd to 29 th pins are P0 port quasi-bidirectional I/O ports.
As shown in fig. 3, the peripheral control circuit includes 4 key circuits. The key circuit comprises a switch key and a power supply, one end of the switch key is connected with the power supply, and the other end of the switch key is grounded and is also electrically connected with an input pin of the singlechip. The 4 key circuits are respectively and electrically connected with pins 10-13 of the singlechip. By pressing different switch keys, different pins of the single chip microcomputer can receive level signals.
In this embodiment, the display screen is 1602 liquid crystal display, and 1602 liquid crystal display is small and exquisite, power saving, during operation calorific capacity is extremely low, and very frivolous, the installation of being convenient for. As shown in fig. 4, the data port of the display screen is electrically connected with the port P0 of the single chip microcomputer, the RS port is electrically connected with the port P3.5 of the single chip microcomputer, the R/W port is electrically connected with the port P3.6 of the single chip microcomputer, and the E port is electrically connected with the port P3.4 of the single chip microcomputer. The display also displays the time of the test and the number of times the send signal is sent.
The specific implementation process is as follows:
in this embodiment, the 4 key switches respectively correspond to four modes, i.e., minimum data value, maximum data value, error calculation of signal check bits, and no-signal check. After a certain key switch is pressed, the single chip microcomputer interrupts the current mode and enters the mode corresponding to the key switch.
When the device is just powered on, the interface for initializing the system can be displayed on the liquid crystal display screen. After a certain key switch is pressed, the liquid crystal displays a corresponding signal output MODE, if a first key is pressed, MODE 1 (or a minimum value MODE) is displayed, and when other key switches are pressed, the MODE is switched to display the MODE corresponding to the other key switches.
During detection, a tester only needs to control the peripheral control circuit and send a level signal to the corresponding input pin of the single chip microcomputer through the peripheral control circuit. Specifically, the tester only needs to select the key corresponding to the function to be tested to press in 4 key switches. The pin electrically connected with the key circuit of the singlechip receives a level signal. After the single chip microcomputer identifies the pin receiving the level, the corresponding digital signal can be sent to the upper computer through the output pin. And after the singlechip identifies the pin receiving the level signal, the singlechip sends a corresponding digital signal to the upper computer through the output pin. The single chip microcomputer outputs corresponding digital signals according to the pins receiving the level signals, wherein related programs belong to the prior art and are not described herein again.
The send communication conveys information through the duration of a square wave (duration of low level "0" and level "1"). If the duration reaches 36 μ s, corresponding to hexadecimal 0, the duration 39 μ s corresponds to hexadecimal 1, the calculation formula is T/3-12(T is square wave duration), the maximum value is 81 μ s, corresponding to hexadecimal F, namely, the duration of the send signal can be converted into corresponding data information. The square wave signals are combined according to a certain rule, and at most 24-bit data information can be transmitted in each frame of the send signal. The utility model discloses singlechip STC89C52 adopts 12MHz crystal oscillator, and machine cycle is about 1 mus, can satisfy the time delay control that the sent generated. The utility model discloses singlechip STC89C52 operating voltage is 5V, can satisfy the send signal voltage demand.
The P3.7 port of the single chip microcomputer serves as a send signal output port, corresponds to a square wave low level (0V) when being set to be 0 and corresponds to a square wave level (5V) when being set to be 1, the delay time of the high and low levels can be accurately controlled through a delay function, a periodic send signal is generated through while sentences, and finally the send signal required by people is generated.
The application has the advantages of simple structure and low cost. And the operation is simple, and only the peripheral control circuit needs to be controlled. And since the analog value (analog mode) of the sensor can be set in advance, the flexibility is also excellent.
Example two
Different from the first embodiment, the peripheral control circuit further includes a pulse signal generating circuit, as shown in fig. 5, in the present embodiment, the pulse signal generating circuit is a 555 pulse signal generating circuit. The output end of the pulse signal generating circuit is electrically connected with one end of the key circuit, which is connected with the power supply.
Such setting, when the same send signal of repeated simulation many times of needs, can switch on the pulse signal generating circuit of peripheral control circuit who corresponds, outer towards control circuit can be according to the frequency timing send level signal that predetermines, and then makes the corresponding pin of singlechip receive level signal according to predetermined frequency to simulate corresponding send signal according to predetermined frequency.
When different frequencies are needed, the frequency adjusting circuit can be realized by adjusting the resistance value of a sliding resistor in the pulse signal generating circuit or switching on different jumps in the pulse signal generating circuit. Compared with the frequency setting by using a timing circuit of the single chip microcomputer, the external pulse signal generating circuit has more stable performance and more convenient frequency adjusting mode.
EXAMPLE III
For the sake of understanding, the reference numerals of the third embodiment include: casing 1, key switch 2, connection interface 3, visor 4.
Unlike the first embodiment, as shown in fig. 6, the present embodiment further includes a housing 1; the single chip microcomputer is fixed in the shell 1, 4 switch keys of the peripheral control circuit are key switches 2, and 4 key switches 2 are fixed on the same side wall of the shell 1; the connection interface 3 of the output pin of the upper computer of the singlechip and the key switch 2 are fixed on the same side wall, one side of the side wall is rotatably connected with a protective cover 4, and the protective cover 4 can be covered with the side wall after rotating.
According to the arrangement, when the device is not used, the protective cover 4 can be rotated, the protective cover 4 is covered with the side wall, so that the connecting interface 3 of the output pin of the upper computer of the single chip microcomputer is protected, the key switch 2 is protected, the dustproof and moistureproof effects are achieved, and the service life of the device is prolonged.
The above description is only for the embodiments of the present invention, and the common general knowledge of the known specific structures and characteristics in the schemes is not described herein too much, and those skilled in the art will know all the common technical knowledge in the technical field of the present invention before the application date or the priority date, can know all the prior art in this field, and have the ability to apply the conventional experimental means before this date, and those skilled in the art can combine their own ability to perfect and implement the schemes, and some typical known structures or known methods should not become obstacles for those skilled in the art to implement the present application. It should be noted that, for those skilled in the art, without departing from the structure of the present invention, several modifications and improvements can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.

Claims (10)

1. The utility model provides a send communication signal generator based on singlechip which characterized in that includes: a single chip microcomputer and a peripheral control circuit; the number of the peripheral control circuits is not less than 2, the peripheral control circuits are respectively and electrically connected with input pins of the single chip microcomputer, and the peripheral control circuits are used for generating level signals; and a signal output pin of the singlechip is used for connecting an upper computer.
2. The single-chip microcomputer based send communication signal generator according to claim 1, wherein: the peripheral control circuit comprises a key circuit, the key circuit comprises a switch key and a power supply, one end of the switch key is connected with the power supply, and the other end of the switch key is grounded and is also electrically connected with an input pin of the singlechip.
3. The single chip microcomputer based send communication signal generator according to claim 2, wherein: the number of the keying circuits is not less than 3.
4. The single chip microcomputer based send communication signal generator according to claim 3, wherein: the number of the key circuits is 4.
5. The single-chip microcomputer based send communication signal generator according to claim 1, wherein: the display screen is electrically connected with an output pin of the single chip microcomputer through an interface.
6. The single chip microcomputer based send communication signal generator according to claim 5, wherein: the display screen is a 1602 liquid crystal display screen.
7. The single chip microcomputer based send communication signal generator according to claim 6, wherein: the display also displays the time of the test and the number of times the send signal is sent.
8. The single chip microcomputer based send communication signal generator according to claim 2, wherein: the peripheral control circuit also comprises a pulse signal generating circuit, and the output end of the pulse signal generating circuit is electrically connected with one end of the key circuit, which is connected with the power supply.
9. The single-chip microcomputer based send communication signal generator according to claim 8, wherein: the pulse signal generating circuit is a 555 pulse signal generating circuit.
10. The single-chip microcomputer based send communication signal generator according to claim 1, wherein: the model of the singlechip is STC89C 52.
CN202020713114.1U 2020-04-30 2020-04-30 Sent communication signal generator based on singlechip Active CN211653464U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202020713114.1U CN211653464U (en) 2020-04-30 2020-04-30 Sent communication signal generator based on singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202020713114.1U CN211653464U (en) 2020-04-30 2020-04-30 Sent communication signal generator based on singlechip

Publications (1)

Publication Number Publication Date
CN211653464U true CN211653464U (en) 2020-10-09

Family

ID=72689909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202020713114.1U Active CN211653464U (en) 2020-04-30 2020-04-30 Sent communication signal generator based on singlechip

Country Status (1)

Country Link
CN (1) CN211653464U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179192A (en) * 2021-04-15 2021-07-27 常州易控汽车电子股份有限公司 SENT protocol test system and method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179192A (en) * 2021-04-15 2021-07-27 常州易控汽车电子股份有限公司 SENT protocol test system and method thereof

Similar Documents

Publication Publication Date Title
CN102023912B (en) Dormancy wake-up testing system and method
CN103453985B (en) Distributed wireless light intensity measuring instrument
CN211653464U (en) Sent communication signal generator based on singlechip
CN109448184A (en) A kind of control system and its intelligent door lock of intelligent door lock
US6523111B1 (en) Remote configuration/setup of computer systems operated as embedded controllers without keyboard or video display resources
CN203606411U (en) ARM-based portable detector
CN207197684U (en) A kind of electrical equipment wireless temperature measurement system
CN102680908B (en) Battery status detection record analyzer and control method
CN205548572U (en) Hand loop
CN103142209B (en) Portable vision tester
CN104979718A (en) Power utilization monitoring type socket
CN203117961U (en) Dead halt monitoring and resetting device
CN205541377U (en) Portable hand -held type mobile data acquisition ware
CN201936523U (en) Electronic simulative multi-purpose electric energy meter and meter reading training device
CN210199664U (en) Computer host case
CN103686146A (en) Online fault diagnosis device and method
CN202661610U (en) Remote controller and detection device for electric quantity of battery thereof
CN207439444U (en) Transmission sensors detector
CN209218065U (en) A simple Baud rate generator
CN203299301U (en) Detection device of remote controller
CN208187447U (en) A kind of pipeline gas parameter measuring instrument
CN202931467U (en) Television remote controller and television set
CN202305754U (en) Capacitance touch button detector
CN210487938U (en) Special setting instrument for battery management
CN109270417A (en) A kind of extra-high video sensor of the GIS partial discharge on-line checking of wireless transmission

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant