Simplifying TWS Headphone Solutions with 1-Wire Technology

Publisher:电子创新者Latest update time:2024-07-12 Source: eepw Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.


1654591259462115.png

1654591247425546.png

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.


16.jpg

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.


1654591219778864.png

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

1654591204401049.png


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.

[1] [2]
Reference address:Simplifying TWS Headphone Solutions with 1-Wire Technology

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

Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号