Existing sockets have shown a trend of diversification in terms of their usage, functions, and appearance features. Some have added insurance functions, power indication functions, and switch functions, and some have added voltage regulation functions. No matter what the functions of these sockets are, they can only have a single purpose: to provide a power interface for electrical equipment. Their common defect is that they do not have information and intelligent functions. In order to realize the informatization and intelligence of the socket, we will combine the intelligent information system we have studied and designed with the socket, integrate the intelligent device with the power socket, and design it into a multifunctional intelligent monitoring socket. Since the socket is fixed once during the electrical installation of the building and is powered by lighting power, people use it just like using an ordinary power socket, eliminating the need for excessive connecting wires.
Interface chip and its working principle
In this article, we use the PDIUSBD12 chip launched by Philips, which is a cheap and fully functional parallel interface chip that supports multiplexing, non-multiplexing and DMA parallel transmission. The PDIUSBD12 interface chip complies with the USB1.1 protocol and is suitable for transmission types for different purposes. PDIUSBD12 requires an external microcontroller (MCU) for protocol processing and data exchange. It has no special requirements for the MCU, and the interface is convenient and flexible. Therefore, designers can choose the MCU they are familiar with to control the chip, or use Philips' firmware structure to shorten development time, reduce risks, and reduce investment.
Performance characteristics: In addition to the general characteristics of USB devices, PDIUSBD12 also has the following characteristics: (1) It is a high-performance USB interface chip that integrates SIE (Serial Interface Engine), 320-byte FIFO, transceiver and voltage regulator. (2) It is applicable to most device class specifications. It can realize high-speed parallel interface with any external microcontroller/microprocessor, and its speed can be as high as 2Mbit/s. (3) It can perform completely independent DMA operations. (4) The master endpoint is configured with double buffering, which can improve data throughput, reduce data transmission time, and easily realize real-time data transmission. (5) When using synchronous transmission mode, the data transmission speed is 1Mbit/s; while the speed of bulk transmission mode is 1Mbyte/s. When using the above methods for data transmission, multiple interrupt modes can be conveniently used. (6) It has a programmable clock output, and the connection with the USB bus can be controlled by software (Soft Connect TM). (7) There are two operating voltages to choose from: 3.3±0.3V and 3.6~5.5V. (8) Output and data transfer status can be monitored via the USB connection indicator.
Communication hardware circuit design
In this paper, we choose 89C52 single-chip microcomputer as the microcontroller of the system. The circuit connection between PDIUSBD12 and 89C52 is shown in Figure 1:
Figure 1 USB interface communication circuit
Converter card circuit design
The design includes the MCU software (firmware) design and the host software design. The MCU software is developed using the WAVE simulation software provided by Weifu Company and debugged online through its simulator. The host software includes two parts: the driver and the application, which are generated using DDK and VC6.0 respectively.
Figure 3 USB interface conversion card circuit diagram
The research on the intelligent monitoring socket is still in the theoretical conception and design process. There is still a long way to go to make a product, and more people need to invest more energy. Especially in the use of USB communication, the writing of USB driver is a difficult point. With the continuous updating, improvement and development of technology, I believe that the realization of the multi-functional socket will become easier and easier.
Previous article:A Novel and Simple Multi-channel Virtual Oscilloscope System Circuit Design
Next article:A simple RS232 to RS485 converter circuit design
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- Dear experts, please tell me how to use 51 MCU PWM to control 5 gear motors
- ADC resolution and accuracy considerations
- Help! STM32F407 SWD circuit problem?
- Introduction to the automotive-grade three-axis acceleration sensor AIS25BA
- Giant Board in crowdfunding
- Blue pipe solution
- If you don't understand this (Martian text), just look at the pictures
- Seeking distance or speed on an RS-485 bus?
- [Small home weather station] Get ESP8266 weather data through UART
- [2022 Digi-Key Innovation Design Competition] 2-DOF Pan-Tilt Robot Control Platform