CN107945822B - Audio playing circuit, audio player, chip and electronic equipment - Google Patents

Audio playing circuit, audio player, chip and electronic equipment Download PDF

Info

Publication number
CN107945822B
CN107945822B CN201711479127.6A CN201711479127A CN107945822B CN 107945822 B CN107945822 B CN 107945822B CN 201711479127 A CN201711479127 A CN 201711479127A CN 107945822 B CN107945822 B CN 107945822B
Authority
CN
China
Prior art keywords
audio data
target audio
digital
audio
analog converter
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
CN201711479127.6A
Other languages
Chinese (zh)
Other versions
CN107945822A (en
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201711479127.6A priority Critical patent/CN107945822B/en
Publication of CN107945822A publication Critical patent/CN107945822A/en
Application granted granted Critical
Publication of CN107945822B publication Critical patent/CN107945822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/16Storage of analogue signals in digital stores using an arrangement comprising analogue/digital [A/D] converters, digital memories and digital/analogue [D/A] converters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The present invention relates to the field of audio data processing technologies, and in particular, to an audio playing circuit, an audio player, a chip, and an electronic device. Wherein, audio playback circuit includes: the real-time clock circuit is used for sending a trigger instruction; and the digital-to-analog converter is used for acquiring and pushing the target audio data according to the trigger instruction. In the process of pushing the target audio data, the method does not need the participation of a CPU (central processing unit), can reduce the power consumption of the audio playing circuit, can release the resources of the CPU and reduce the load of the CPU, and the audio playing circuit does not depend on a DMA (direct memory access) mode and can achieve higher real-time property to push the target audio data.

Description

Audio playing circuit, audio player, chip and electronic equipment
Technical Field
The present invention relates to the field of audio data processing technologies, and in particular, to an audio playing circuit, an audio player, a chip, and an electronic device.
Background
The timing awakening function is widely applied to various technical fields, for example, devices such as household appliances, medical instruments and industrial control can use the timing awakening function, so that human-computer interaction is more conveniently realized, and more convenient and friendly use functions are provided for consumers.
The technical scheme for realizing the timing wake-up function in the traditional technology is as follows: when the current time calculated by a hardware module in the chip reaches the set time of a user, the hardware module sends a trigger instruction to a Central Processing Unit (CPU), and the CPU responds to the trigger instruction to execute a series of programs so as to play sound.
In the process of implementing the invention, the inventor finds that the traditional technology has at least the following problems: the conventional technical solution relies on the participation of the CPU, however, the CPU is a large power consumption user in the chip, and it needs to consume a large amount of electric energy to execute the related software program. Therefore, the power consumption of the conventional technical scheme is high.
Disclosure of Invention
An object of the embodiments of the present invention is to provide an audio playing circuit, an audio player, a chip and an electronic device, which solve the technical problem of high power consumption in the conventional technology.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides an audio playing circuit, including: the real-time clock circuit is used for sending a trigger instruction; and the digital-to-analog converter is used for acquiring and pushing the target audio data according to the trigger instruction.
Optionally, the real-time clock circuit is configured to send a trigger instruction, and includes: the real-time clock circuit is used for sending a trigger instruction when detecting that the current time meets a preset trigger condition.
Optionally, the digital-to-analog converter is configured to acquire and push target audio data according to the trigger instruction, and includes: the digital-to-analog converter is used for determining a storage address of the target audio data according to the trigger instruction; and the digital-to-analog converter acquires and pushes the target audio data according to the storage address of the target audio data.
Optionally, the obtaining and pushing the target audio data by the digital-to-analog converter according to the storage address of the target audio data includes: the digital-to-analog converter acquires the target audio data and the audio playing times according to the storage address of the target audio data; and pushing the target audio data according to the audio playing times.
Optionally, the audio playback circuit further includes a memory for storing the target audio data, and the memory is connected to the digital-to-analog converter.
Optionally, the memory comprises static random access memory.
Optionally, the audio playback circuit further includes: the analog-to-digital converter is used for receiving external audio sampling data and transmitting the external audio sampling data to the digital-to-analog converter, so that the digital-to-analog converter pushes target audio data according to the external audio sampling data.
Optionally, the pushing, by the digital-to-analog converter, target audio data according to the external audio sample data includes: the digital-to-analog converter judges whether the volume of the external audio sampling data is larger than that of the target audio data; if so, enhancing the volume of the target audio data; and if the target audio data is smaller than the preset target audio data, keeping the volume of the target audio data.
In a second aspect, an embodiment of the present invention provides an audio player, including any one of the audio playing circuits; and the audio output circuit is used for playing the target audio data.
In a third aspect, an embodiment of the present invention provides a chip, including any one of the audio playback circuits.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a housing and any one of the audio playback circuits disposed in the housing.
In the audio playing circuit provided in each embodiment of the present invention, the real-time clock circuit sends a trigger instruction, and the digital-to-analog converter acquires and pushes target audio data according to the trigger instruction. In the audio push process, the audio push circuit does not need the participation of a CPU (central processing unit), so that the power consumption of the audio play circuit can be reduced, the resources of the CPU can be released, and the load of the CPU is reduced.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of an audio playback circuit according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an audio playback circuit according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of an audio playback circuit according to yet another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an audio player according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a chip according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Power consumption is an important parameter in measuring chip performance. On different chips realizing the same function, the higher power consumption density will cause the temperature rise of the chip, thereby affecting the reliability of the chip and reducing the service life of the chip. Meanwhile, high power consumption means more power consumption, and thus, energy costs are high.
As described above, in the conventional technical solution, the timed wake-up function is realized, and the CPU needs to participate, so that power consumption is relatively high.
Further, the conventional techniques have the following problems: in order to reduce power consumption, the conventional technical solution is further based on DMA (Direct Memory Access) to achieve low power consumption. A DMA transfer copies data from one address space to another. When the CPU initiates this transfer, the transfer itself is performed and completed by the DMA controller. However, in the chip, since the DMA is responsible for data access of a plurality of hardware modules, the channels of the DMA are limited, data requests may cause contention, and the round-robin function in the DMA enables each hardware module to acquire data, but the DMA mode greatly reduces the real-time performance of the chip.
Accordingly, an embodiment of the present invention provides an audio playback circuit. Referring to fig. 1, fig. 1 is a schematic structural diagram of an audio playback circuit according to an embodiment of the present invention. As shown in fig. 1, the audio playback circuit 100 includes: a Real-Time clock circuit 11 (RTC) and a Digital-to-Analog Converter 12 (DAC).
The real-time clock circuit 11 is a circuit module having timing and alarm clock functions in a chip, and the real-time clock circuit 11 can send a trigger instruction to each hardware module at regular time, so as to trigger the corresponding hardware module to complete the corresponding control logic. For example, in the present embodiment, the real-time clock circuit 11 sends a trigger instruction to the digital-to-analog converter 12 at regular time, and the digital-to-analog converter 12 acquires target audio data according to the trigger instruction, converts the target audio data in the digital signal format into target audio data in the analog signal format, and pushes out the target audio data in the analog signal format. Wherein the timed interval may be configured by the CPU. Therefore, in the process of pushing the target audio data, the energy-saving audio playing circuit does not need the participation of a CPU (central processing unit), can reduce the power consumption of the audio playing circuit, can release the resources of the CPU and reduce the load of the CPU, does not depend on a DMA (direct memory access) mode, and can achieve higher real-time performance to push the target audio data.
In some embodiments, during the process of sending the trigger command, the real-time clock circuit 11 may detect whether the current time meets a preset trigger condition, if so, the real-time clock circuit 11 sends the trigger command, and if not, the real-time clock circuit 11 does not send the trigger command. The preset trigger condition may be a user-defined set time, or a trigger logic written by the user according to the service requirement, and the preset trigger condition is not specifically limited herein. In some embodiments, when the preset trigger condition is a user-defined set time, the CPU may write the set time into a register set in real-time clock circuit 11, so that real-time clock circuit 11 can call and determine the set time.
In some embodiments, during the process of acquiring and pushing the target audio data by the dac 12 according to the trigger instruction, the dac 12 may determine a storage address of the target audio data according to the trigger instruction, and further, the dac 12 acquires and pushes the target audio data according to the storage address of the target audio data. In some embodiments, the CPU may write the memory address of the target audio data into the register set of the digital-to-analog converter 12 in advance for the digital-to-analog converter 12 to call.
In some implementations, the audio playback circuit 100 can also repeatedly play the target audio data. Therefore, in the process that the digital-to-analog converter 12 acquires and pushes the target audio data according to the storage address of the target audio data, the digital-to-analog converter 12 acquires the target audio data and the audio playing frequency according to the storage address of the target audio data, and pushes the target audio data according to the audio playing frequency. For example: as shown in fig. 2, when waking up at a certain time, the user needs the audio playback circuit 100 to be able to play the a song 3 times repeatedly, and then, the user writes the audio playback times 3 into the register set of the digital-to-analog converter 12 by writing logic, and stores the target audio data of the a song in the memory 13 connected to the digital-to-analog converter 12. When playing song a, the dac 12 first accesses the register set and traverses the storage address of the target audio data, retrieves the target audio data of song a from the memory 13, and pushes the target audio data out. Further, the dac 12 reads the register set of the dac 12 to obtain the audio playing frequency 3, and retrieves the target audio data of the song a from the memory 13 according to the audio playing frequency 3 to realize playing the song a for 3 times. In some embodiments, Memory 13 includes Static Random Access Memory (SRAM).
In the technical fields of industrial control, medical treatment and the like, the timing awakening function set by a user is often more important. However, the working environment is often severe and noisy in the above technical fields, and therefore, the alarm clock played by the timed wake-up function can be covered. Based on this, in some embodiments, as shown in fig. 3, the audio playing circuit 100 may further include: and the analog-to-digital converter 14, the analog-to-digital converter 14 is configured to receive the external audio sample data and transmit the external audio sample data to the digital-to-analog converter 12, so that the digital-to-analog converter 12 pushes the target audio data according to the external audio sample data. For example: the dac 12 determines whether the volume of the external audio sampling data is greater than the volume of the target audio data, and if so, enhances the volume of the target audio data, and if not, maintains the volume of the target audio data.
The external audio sampling data is generated by external equipment collecting environmental sound signals, and the external equipment can be a voice sensor or electronic equipment forming the external audio sampling data.
In conclusion, by adopting the mode, the volume of the target audio data can be flexibly adjusted according to the environmental condition, so that the condition that the volume of the target audio data is covered due to overhigh environmental noise is avoided as much as possible.
As another aspect of the embodiments of the present invention, an audio player is provided in the embodiments of the present invention. Referring to fig. 4, fig. 4 is a schematic structural diagram of an audio player according to an embodiment of the present invention. As shown in fig. 4, the audio player 400 includes an audio playing circuit 41 and an audio output circuit 42. The audio output circuit 42 is connected to the audio playback circuit 41, and plays back the target audio data. The audio playback circuit 41 may be any of the audio playback circuits described in the above embodiments. The audio output circuit 42 may include a power amplifier circuit 421 and an electroacoustic transducer 422, wherein an input end of the power amplifier circuit 421 is connected to the digital-to-analog converter 12 in the audio playing circuit 41, an output end of the power amplifier circuit 421 is connected to the electroacoustic transducer 422, the power amplifier circuit 421 is configured to amplify and filter the target audio data, and the electroacoustic transducer 422 plays the target audio data.
In the embodiment, in the process of pushing the target audio data, the energy-saving device does not need the participation of a CPU (central processing unit), can reduce the power consumption of the audio playing circuit, can also release the resources of the CPU, and reduces the load of the CPU, and the audio playing circuit does not depend on a DMA (direct memory access) mode, and can achieve higher real-time performance to push the target audio data.
As yet another aspect of the embodiments of the present invention, an embodiment of the present invention provides a chip. Referring to fig. 5, fig. 5 is a schematic structural diagram of a chip according to an embodiment of the present invention. As shown in fig. 5, the chip 500 includes an audio playback circuit, where the audio playback circuit may be any of the audio playback circuits described in the above embodiments.
The working principle of the chip is described in detail below with reference to fig. 5.
a. Work to be done by the CPU before going to sleep or processing other transactions: 1. the CPU stores the target audio data to be played in a memory SRAM. 2. The storage address of the target audio data in the SRAM and the number of times of audio playback that needs to be read by the digital-to-analog converter are stored in the M2 register set of the digital-to-analog converter. 3. The set time is written into the M1 register set of the real time clock circuit. 4. Alternatively, the volume data set by the user is stored in the M2 register set of the digital-to-analog converter.
b. After the CPU enters a sleep state or processes other transactions, when the timing of the rtc circuit reaches a set time, that is, the timing of the rtc circuit is equal to the value in the M1 register, a trigger command is sent to the dac.
c. After the digital-to-analog converter receives the trigger instruction, the digital-to-analog converter accesses the SRAM according to the storage address of the target audio data in the M2 register group, reads the target audio data from the SRAM, converts the binary target audio data into a voltage signal, and outputs the voltage signal to the audio output circuit. The DAC reads the target audio data M2 from the SRAM and determines the number of audio plays in the register set. So far, the timed wake-up function is completed.
d. If the environment comparison operation of the chip requires automatic adjustment of the volume of the target audio data, after receiving the trigger instruction, the digital-to-analog converter simultaneously sends another trigger instruction to the analog-to-digital converter, so that the analog-to-digital converter samples external audio sampling data. Secondly, the analog-to-digital converter converts the external audio sample data in the analog signal format into the external audio sample data in the digital format and transmits the external audio sample data to the analog-to-digital converter. The analog-to-digital converter adjusts the volume of the target audio data according to the volume of the external audio sampling data and the volume of the target audio data. For example, when the volume of the external audio sample data is greater than the volume of the target audio data, the volume of the target audio data is increased; and when the volume of the external audio sampling data is smaller than that of the target audio data, keeping the volume of the target audio data.
In the embodiment, in the process of pushing the target audio data, the energy-saving device does not need the participation of a CPU (central processing unit), can reduce the power consumption of the audio playing circuit, can also release the resources of the CPU, and reduces the load of the CPU, and the audio playing circuit does not depend on a DMA (direct memory access) mode, and can achieve higher real-time performance to push the target audio data.
As yet another aspect of the embodiments of the present invention, an electronic device is provided. The electronic device comprises a shell and an audio playing circuit arranged in the shell, wherein the audio playing circuit can be any of the audio playing circuits in the above embodiments.
In the embodiment, in the process of pushing the target audio data, the energy-saving device does not need the participation of a CPU (central processing unit), can reduce the power consumption of the audio playing circuit, can also release the resources of the CPU, and reduces the load of the CPU, and the audio playing circuit does not depend on a DMA (direct memory access) mode, and can achieve higher real-time performance to push the target audio data.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (7)

1. An audio playback circuit, comprising:
the real-time clock circuit is used for sending a trigger instruction;
the digital-to-analog converter is used for acquiring and pushing target audio data according to the trigger instruction;
the memory is connected with the digital-to-analog converter and used for storing the target audio data;
the analog-to-digital converter is used for receiving external audio sampling data and transmitting the external audio sampling data to the digital-to-analog converter so that the digital-to-analog converter pushes target audio data according to the external audio sampling data;
the digital-to-analog converter is used for acquiring and pushing target audio data according to the trigger instruction, and comprises:
the digital-to-analog converter is used for determining a storage address of the target audio data according to the trigger instruction;
the digital-to-analog converter acquires and pushes the target audio data according to the storage address of the target audio data;
the digital-to-analog converter judges whether the volume of the external audio sampling data is larger than that of the target audio data;
if so, enhancing the volume of the target audio data;
if the target audio data is smaller than the preset target audio data, keeping the volume of the target audio data; wherein the storage address of the target audio data is written into a register set of the digital-to-analog converter in advance.
2. The audio playback circuit of claim 1, wherein the real-time clock circuit is configured to send a trigger instruction, and comprises:
the real-time clock circuit is used for sending a trigger instruction when detecting that the current time meets a preset trigger condition.
3. The audio playback circuit of claim 1, wherein the dac obtains and pushes the target audio data according to a storage address of the target audio data, and comprises:
the digital-to-analog converter acquires the target audio data and the audio playing times according to the storage address of the target audio data;
and pushing the target audio data according to the audio playing times.
4. The audio playback circuit of claim 1, wherein the memory comprises static random access memory.
5. An audio player, comprising:
an audio playback circuit as claimed in any one of claims 1 to 4; and the number of the first and second groups,
and the audio output circuit is used for playing the target audio data.
6. A chip comprising an audio playback circuit as claimed in any one of claims 1 to 4.
7. An electronic device comprising a housing and the audio playback circuit of any of claims 1-4 disposed within the housing.
CN201711479127.6A 2017-12-29 2017-12-29 Audio playing circuit, audio player, chip and electronic equipment Active CN107945822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711479127.6A CN107945822B (en) 2017-12-29 2017-12-29 Audio playing circuit, audio player, chip and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711479127.6A CN107945822B (en) 2017-12-29 2017-12-29 Audio playing circuit, audio player, chip and electronic equipment

Publications (2)

Publication Number Publication Date
CN107945822A CN107945822A (en) 2018-04-20
CN107945822B true CN107945822B (en) 2020-11-20

Family

ID=61938028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711479127.6A Active CN107945822B (en) 2017-12-29 2017-12-29 Audio playing circuit, audio player, chip and electronic equipment

Country Status (1)

Country Link
CN (1) CN107945822B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684693A (en) * 2020-12-18 2021-04-20 展讯通信(上海)有限公司 Wearable device and audio processing method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1063562A (en) * 1991-01-25 1992-08-12 张志勇 Automatic timing acoustic warner
CN1446013A (en) * 2002-03-14 2003-10-01 联想(北京)有限公司 Self-adapting ringing unit cooperate with chord ring
CN107481692A (en) * 2017-09-05 2017-12-15 珠海格力电器股份有限公司 Display method and device of segment type LCD

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1063562A (en) * 1991-01-25 1992-08-12 张志勇 Automatic timing acoustic warner
CN1446013A (en) * 2002-03-14 2003-10-01 联想(北京)有限公司 Self-adapting ringing unit cooperate with chord ring
CN107481692A (en) * 2017-09-05 2017-12-15 珠海格力电器股份有限公司 Display method and device of segment type LCD

Also Published As

Publication number Publication date
CN107945822A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
US7987389B2 (en) System and method for testing sleep and wake functions of computer
US10606778B2 (en) Bus system
US7751260B2 (en) Memory device having strobe terminals with multiple functions
US20140043918A1 (en) Automated control of opening and closing of synchronous dynamic random access memory rows
JP2007507794A (en) Integrated circuit with bimodal data strobe
US11373637B2 (en) Processing system and voice detection method
US10861462B2 (en) Dual pipeline architecture for wakeup phrase detection with speech onset detection
EP2808800A1 (en) Multiple data rate memory with read timing information
CN107945822B (en) Audio playing circuit, audio player, chip and electronic equipment
US20100318691A1 (en) Memory control device, data processor, and data read method
US20180307294A1 (en) Electronic device, control circuit, and method of controlling electronic device
KR20200055805A (en) Memory device using multiple latency sets and method of operation thereof
CN114416610B (en) PWM signal generation method, chip and electronic equipment
TW201901459A (en) Method for controlling audio device and system thereof
TW201346712A (en) Lightweight power management of audio accelerators
CN209030383U (en) Microphone and the mobile device including it, cloud server is broadcast live
TW201815156A (en) Analog-to-digital signal processing method and apparatus for image sensor
WO2004036430A1 (en) Information processing device using variable operation frequency
JP2006318482A (en) Apparatus and method for generating complementary cumulative distribution function (ccdf) curve
JP2004171678A (en) Apparatus, method, and program for storing information
CN110636232A (en) Video playing content selection system and method
CN214671827U (en) Verification circuit for board-level device of memory
CN116955240B (en) Delay calibration system and method for PHY circuit in DDR controller
US20230353937A1 (en) Circuitry for and Methods of Gain Control
WO2019033435A1 (en) Sound volume adjustment method and apparatus, mobile terminal, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant