This design applies ADI's unique 1-Wire® technology to the TWS headset solution for the first time. It uses the 1-Wire bidirectional bridge DS2488. On the basis of meeting the requirements of energy transmission and data communication, it has many advantages such as low cost, low power consumption, high precision, small size, and high efficiency. It is an ideal solution for TWS headsets.
Introduction
The most striking feature of TWS earphones is the convenience of wireless wearing. Compared with traditional Bluetooth earphones, TWS earphones have many advantages such as small size, good sound quality, high stability, etc. They also have certain waterproofness and intelligence, which quickly attracted the attention of consumers. At present, the shipment volume and overall market size of TWS earphones are constantly expanding, and it is currently a hot research and development field in consumer electronics.
System Architecture
The 1-Wire TWS headset solution MAXREFDES1302 introduced in this article consists of two parts: a charging box and headset. The overall hardware architecture of the system is shown in Figure 1.
Figure 1. 1-Wire TWS charging box and earphone system architecture.
The charging box uses a 3.7V 1500mAh single-cell lithium battery to power the system, and uses the MAX77651 charger that supports the USB Type-C protocol to charge the lithium battery. Users only need to use a single USB Type-C data cable to charge the entire device. In terms of power rails, the charging box uses the MAX17224 boost module to boost the charger's system voltage to 5V. The 5V voltage generates a 3.3V voltage through the MAX38640 buck module to power the microcontroller MAX32655. At the same time, the 5V voltage is also transmitted to the earphones through the 1-Wire control circuit as a charging power supply for the earphone system. In terms of power monitoring, the charging box uses a MAX17262 fuel gauge with a built-in current sensing resistor to monitor the battery. The fuel gauge combines the traditional coulomb counting method with the innovative ModelGauge™ m5 EZ algorithm, does not require battery feature analysis, is flexible in configuration, and is easy to use. In terms of microcontroller, the charging box uses a microprocessor MAX32655 with a BLE 5.2 module and a built-in SIMO power module. The processor is rich in resources. In addition to the commonly used communication interface, its GPIO can also be configured as a 1-Wire communication interface, which can read and write the DS2488 on the earphone side, providing great convenience for 1-Wire communication and charging. The SWD interface of the charging box can be connected to the MAX32625PICO downloader, which can update the firmware for the MAX32655 of the charging box and display the battery information on the computer through the virtual serial port. The battery information can also be displayed on the OLED screen on the charging box.
The headset uses a 3.7V 130mAh single-cell lithium battery to power the system, and uses the DS2488 bidirectional 1-Wire bridge to realize data interaction between the headset and the charging box, and at the same time realize the control of the 5V charging power from the charging box. In terms of the controller, the headset also uses the MAX32655 as a microcontroller. The microcontroller uses the UART interface to simulate the 1-Wire timing to read and write control of the DS2488, and also uses the SWD interface to connect the MAX32625PICO downloader to download the program. In terms of the power rail, the headset uses the charger MAX77734 with a 3.3V LDO output to power the microcontroller MAX32655. At the same time, the 3.3V and the 1.8V and 1.2V power generated by the built-in SIMO module of the MAX32655 together form the power rail of the audio codec MAX98050. In terms of power monitoring, the headset also uses the fuel gauge MAX17262 to monitor the battery.
Figure 2 shows the physical picture of the 1-Wire TWS charging box and earphones. The actual size of the charging box is 10.20cm × 5.80cm, and the actual size of the earphones is 10.20cm × 6.50cm. Since this design is a prototype to assist customers in design, testing and research, the size of the actual product can be greatly compressed by streamlining the test points to meet the size requirements of the actual application of TWS earphones.
Figure 2. 1-Wire TWS charging box and earphone PCBA physical picture.
1-Wire Data Communication and Power Transfer
In TWS earphone applications, it is crucial to use a reliable and convenient method to achieve data communication and energy transmission between the charging box and the earphone. The common TWS earphones on the market usually use 3 or more contacts to connect to the charging box to achieve data communication and energy transmission functions. However, too many contacts usually lead to an increase in system cost, which is extremely unfavorable for low-cost wearable product design. In addition, more contacts usually require more space, which is contrary to the small size requirement of TWS earphones. In addition, more contacts tend to increase the possibility of failure. This design uses ADI's proprietary 1-Wire bidirectional bridge DS2488 designed for TWS solutions to achieve energy transmission and data interaction between the earphone and the charging box. DS2488 supports the 1-Wire bus protocol and can achieve communication and charging functions with a single wire. Since the system requires an additional contact to connect the ground of the earphone and the charging box, the overall solution only needs to use two contacts, which can greatly improve system reliability and reduce size and cost. The block diagram of the 1-Wire communication charging circuit used in this design is shown in Figure 3.
Figure 3. 1-Wire communication charging circuit block diagram.
How the DS2488 Works
As shown in Figure 3, the DS2488 is a 1-Wire bidirectional bridge with two 1-Wire communication pins, IOA and IOB, for control by the microcontrollers on both sides, where IOA is controlled by the microcontroller of the charging box and IOB is controlled by the microcontroller of the headset. IOA supports an input voltage of up to 5.5V and supports the transmission of different communication and charging levels on the 1-Wire bus (IOA). As a 1-Wire device, each DS2488 device also has a unique 64-bit ROM ID for user identification and authentication. The DS2488 also has an 8-byte buffer inside that can be read and written by the microcontroller to update the battery information on both sides in real time. In this design, the information stored in the buffer is shown in Table 1.
Table 1. Information stored in the DS2488 buffer
The TOKEN pin of DS2488 indicates the control status of DS2488: when TOKEN is low, it indicates that the microcontroller of the charging box has obtained the control authority of DS2488; when TOKEN is high, it indicates that the microcontroller on the earphone side has obtained the control authority of DS2488. The CD/PIOC pin of DS2488 controls whether the charging box charges the earphone: when the voltage on the 1-Wire bus (IOA) is less than 4V, CD/PIOC is in high impedance state, the transistor is turned off, and charging stops; when the voltage on the 1-Wire bus (IOA) is greater than 4V, CD/PIOC is low, the transistor is turned on, and the voltage on the 1-Wire bus (IOA) is directly added to the charger of the earphone, and charging starts. The selection logic of earphone charging and communication is mainly implemented by a MOSFET connected to 5V. The on and off of this MOSFET is controlled by the microcontroller of the charging box. The use of the charging box and earphones can be divided into the following situations.
The earphones are in the charging case and the lid is open
At this time, the microcontroller of the charging box turns off the MOSFET and obtains the control authority of the DS2488, TOKEN is low, and CD/PIOC is in high impedance state. The charging box reads and writes the internal 8-byte buffer of the DS2488 through IOA, reads the byte information of the earphone battery, and updates the byte information written to the charging box battery. At this time, charging stops and communication is carried out.
The earphones are in the charging case and the lid is closed
At this time, the microcontroller of the charging box turns on the MOSFET, and 5V is directly transmitted to the earphone through the 1-Wire bus (IOA). At this time, TOKEN is high and CD/PIOC is low. The 5V voltage of the charging box is transmitted to the earphone side to charge the lithium battery of the earphone. At the same time, the microcontroller of the earphone obtains the control authority of DS2488, reads and writes the internal 8-byte buffer of DS2488 through IOB, updates the byte information written to the earphone battery, and reads the byte information of the charging box battery. At this time, communication stops and charging is carried out.
The earphones are not in the charging case or the charging case battery is exhausted
At this time, the 1-Wire bus (IOA) is in high impedance, TOKEN is high, and CD/PIOC is in high impedance. At this time, the headset microcontroller obtains the control authority of DS2488, reads and writes the internal 8-byte buffer of DS2488 through IOB, and updates the byte information written into the headset battery.
DS2488 1-Wire Data Communications
As mentioned above, this design uses DS2488 as a bridge between the microcontrollers on both sides of the charging box and the earphones to achieve data interaction between the microcontrollers on both sides. DS2488 supports the typical 1-Wire communication protocol. The timing of the protocol is divided into reset and response timing and read and write timing. The read and write timing is divided into write 0 time slot, write 1 time slot and read time slot, as shown in Figure 4 and Figure 5. For detailed data on the time range of the high and low level stages of each timing, please refer to the DS2488 data sheet.
Previous article:LPS Audio Amplifier Selection and Its Application in IPC
Next article:100,000 RPM high-speed air duct solution based on Xiaohua HC32F460
- Popular Resources
- Popular amplifiers
- Red Hat announces definitive agreement to acquire Neural Magic
- 5G network speed is faster than 4G, but the perception is poor! Wu Hequan: 6G standard formulation should focus on user needs
- SEMI report: Global silicon wafer shipments increased by 6% in the third quarter of 2024
- OpenAI calls for a "North American Artificial Intelligence Alliance" to compete with China
- OpenAI is rumored to be launching a new intelligent body that can automatically perform tasks for users
- Arm: Focusing on efficient computing platforms, we work together to build a sustainable future
- AMD to cut 4% of its workforce to gain a stronger position in artificial intelligence chips
- NEC receives new supercomputer orders: Intel CPU + AMD accelerator + Nvidia switch
- RW61X: Wi-Fi 6 tri-band device in a secure i.MX RT MCU
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- GD32L233C-START evaluates the implementation of serial port USART0 printf redirection
- DSP has a problem with printf function running away in CCS environment
- USB transformation of ESP32-S2-Saola-1
- Is there any delay when directly connecting FPGA I/O pins?
- Eat mushrooms and see villains! It's the time of the year again when Yunnan people poison themselves
- Getting Started with Modelsim
- Crosstalk Elimination Technology in Altium Designer
- Evaluation Weekly Report 20220207: How many days are left to apply for Qinheng ch582 and Pingtouge Linux RISC-V kit
- About Modbus slave response packet address
- ESD resistance of capacitors