arjun.a
commit
b24351f
raw
history blame
5.67 kB
How to Use LOW_POWER mode of Tas2559
Hi: 1、requirement info: system: linux , and use iic to connect tas2559,use <tas2559-android-driver> 1.1、When there is no player to play music ,and the speaker to be silence , I need to set tas2559 to be a low power mode . 1.2、When Player is playing music,I need to resume tas2559 to normal mode. 2、I read the pdf <TAS2559 5.7-W Class-D mono audio amplifier with class-H boost and speaker sense with stereo processing > 3、I get the info : "9.6.2.35 LOW_POWER (book=0x00 page=0x00 address=0x79) [reset=0h] " 3.1、low power mode :I set iic from user space { 0x00, 0x00 }, { 0x7f, 0x00 }, { 0x79, 0x80 }, if I set this data to tas2559 , I can not hear sound . 3.2、normal mode :I set iic from user space { 0x00, 0x00 }, { 0x7f, 0x00 }, { 0x79, 0x00 }, after I set step 3.1 , then I set this data to tas2559 ,the sound cat not resume , I can not hear sound too. So I will never Hear sound unless to reboot system; (Please help me check the step 3.1 and 3.2 , is that right ? can I use the reg to get low power mode ) 4、when I read driver source , and find "#define TAS2559_SLEEPMODE_CTL_REG TAS2559_REG(0, 2, 7)" then I can not find info from PDF。Can this reg set the device to be a sleep mode ?if can ,then how can i use it , set which date to tas2559 ,let it switch between low power mode and normal mode . can you give me a demo. thanks!
Hi Zhijain, Could you try to send these commands after step 3.2? These are taken from device data sheet, power up and unmute sequence: ################### CHANNEL POWER UP #################################################### w 98 05 A3 # Power up Analog Blocks w 98 04 B8 # Power up DSP and clock dividers w 98 07 00 # Unmute Analog Blocks w 98 7f 64 # switch to book100 w 98 07 00 # Soft stepped unmute of audio playback ############################################################################################ I'll double check on my side if these are required when toggling bit 7 from register 0x79. Best regards, -Ivan Salazar Applications Engineer - Low Power Audio & Actuators
0x4e is my iic address. and I can hear sound ,then to set regs : step 3.1: # i2cset -f -y 1 0x4e 0 0 # i2cset -f -y 1 0x4e 0x7f 0 # i2cset -f -y 1 0x4e 0x79 0x80 Now I cant not hear sound . step 3.2: # i2cset -f -y 1 0x4e 0 0 # i2cset -f -y 1 0x4e 0x7f 0 # i2cset -f -y 1 0x4e 0x79 0 # i2cset -f -y 1 0x4e 0x05 0xa3 # i2cset -f -y 1 0x4e 0x04 0xb8 # i2cset -f -y 1 0x4e 0x07 0x0 # i2cset -f -y 1 0x4e 0x7f 0x64 # i2cset -f -y 1 0x4e 0x07 0x0 but after I set these regs , There is no sound , the speaker is still silence
Zhijain, Writing into register 0x79 is similar to using the software shutdown, so the device has to be re-initialized when coming back from low-power mode. For sleep mode you can use the recommendations from section 9.5.3 from the data sheet. You can also take a look at this previous post about TAS2557, but it also applies to TAS2559. Best regards, -Ivan Salazar Applications Engineer - Low Power Audio & Actuator
Hi: 1、please help me check the script . 2、Can we save more power in the sleep mode . The sleep mode :I execute the script "sleep.sh", and then the device is no sound. sleep.sh: i2cset -f -y 1 0x4e 0x07 0x01 sleep 2 i2cset -f -y 1 0x4e 0x7f 0x00 i2cset -f -y 1 0x4e 0x07 0x03 i2cset -f -y 1 0x4e 0x04 0x20 i2cset -f -y 1 0x4e 0x05 0x00 i2cset -f -y 1 0x4e 0x00 0x00 i2cset -f -y 1 0x4e 0x04 0x00 i2cset -f -y 1 0x4e 0x00 0x00 i2cset -f -y 1 0x4e 0x7f 0x00 The powerup mode : I execute the script "powerup.sh", and then the device has sound . powerup.sh: i2cset -f -y 1 0x4e 0x00 0x00 i2cset -f -y 1 0x4e 0x7f 0x00 i2cset -f -y 1 0x4e 0x05 0xa0 i2cset -f -y 1 0x4e 0x04 0xf8 i2cset -f -y 1 0x4e 0x07 0x00 i2cset -f -y 1 0x4e 0x7f 0x64 i2cset -f -y 1 0x4e 0x07 0x00 this table is test by our hw engineer for the device in the sleep mode . In sleep mode the power of "DVDD" is high, Can this power be lower? we find in specifications 7.5 of <TAS2559 5.7-W Class-D mono audio amplifier with class-H boost and speaker sense with stereo processing > ,
the table here !
Hi Zhijain, I expect to be able to run some tests on the low-power mode by the end of this week. I'll provide you some updates as soon as possible. Best regards, -Ivan Salazar Applications Engineer - Low Power Audio & Actuator
Hi Ivan : I use this device In linux system, driver file :<tas2559-android-driver>. I think I shuld modify the driver source to sw sleep mode and powerup mode instend of use "i2cset" cmd to set iic . So I want to know How to modify the driver source of tas2559: 1.Let the driver automatic get into the sleep mode (auto set the registers in driver ) When there is no music playing in the system . 2.Let the driver automatic get into the powerup mode (auto set the registers in driver ) while there is some music playing in the system . thanks 1
Zhijain, I'm unable to answer driver related questions, please let me communicate your questions to our SW team and get back with further comments. Best regards, -Ivan Salazar Applications Engineer - Low Power Audio & Actuator
Zhijain, Some comments from our software team: The sleep and powerup feature is available in TAS2562 onwards. We don’t have auto Power up and power down of amplifier based on I2S clocks. In tas2559, the only way is to explicitely powerup the device using i2c when music is available to be played. Best regards, -Ivan Salazar Applications Engineer - Low Power Audio & Actuator
Hi Ivan: Thanks ! Count you check the messages ,I sent it to you at "Mar 16, 2020 8:58 AM" . 1、please help me check the script ,"sleep.sh" and "powerup.sh" . 2、Can we save more power in the sleep mode .