The subject matter herein generally relates to an alarm tone adjustment circuit and an electronic device applying the adjustment circuit.
An alarm tone adjustment circuit is usually applied in a plurality of electronic devices, such as a mobile phone.
Implementations of the present technology will now be described, by way of example only, with reference to the attached figures.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
Several definitions that apply throughout this disclosure will now be presented.
The term “coupled” is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to physical connections. The connection can be such that the objects are permanently coupled or releasably coupled. The term “comprising,” when utilized, means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in the so-described combination, group, series and the like.
The disclosure will now be described in relation to an alarm tone adjustment circuit.
The processing unit 30 includes a processor 31, a switch 32, and a resistor R7. An input/output (I/O) port P2.0 of the processor 31 is coupled to the switch 32, and is coupled to the power source P3V through a resistor R5. An I/O port P3.0 of the processor 31 is coupled to the anode of the diode D0, and is coupled to the power source P3V through a resistor R6. An I/O port P3.1 of the processor 31 is coupled to a volume adjusting port A of the alarm tone unit 200. An I/O port P1.4 of the processor 31 is coupled to a vibration on port Son of the alarm tone unit 200. An I/O port P1.5 of the processor 31 is coupled to a vibration off port Soff of the alarm tone unit 200. An I/O port P1.6 of the processor 31 is coupled to a ringing on port Von of the alarm tone unit 200. An I/O port P1.7 of the processor 31 is coupled to a ringing off port Voff of the alarm tone unit 200. An I/O port P0.0 of the processor 31 is coupled to the power source P3V through the resistor R7. Clock pins XTAL1, XTAL2 of the processor 31, a reverse pin EA/VPP, and a reset pin RST are coupled to the crystal oscillator 50.
The switch and buffer unit 40 includes a buffer 41 and an electronic switch 42. Input terminals I1, I2 of the buffer 41 are coupled to the I/O port P0.0 of the processor 31. An output terminal of the buffer 41 is coupled to the clock pin CLK of the A/D converting chip 21. A power pin Vcc of the buffer 41 is coupled to the power source P5V. The buffer 41 receives a voltage signal from the I/O port P0.0 of the processor 31, and outputs a clock signal to the A/D converting chip 21. The electronic switch 42 is an n-channel metal oxide semiconductor field-effect transistor (MOSFET). A gate of the electronic switch 42 is coupled to the I/O port P2.0 of the processor 31. A source of the electronic switch 42 is grounded. A drain of the electronic switch 42 is coupled to the power source P5V through a resistor R8, and is coupled to the selection pin CS of the A/D converting chip 21.
In use, the alarm tone adjustment function can be turned on through operation interface of the mobile phone. When the alarm tone adjustment function is turned on, the switch 32 outputs a digital high level signal. The I/O port P2.0 of the processor 31 receives the digital high level signal from the switch 32, and the processor 31 starts operating. The electronic switch 42 is turned on. The drain of the electronic switch 42 outputs a digital low level signal to the selection pin CS of the A/D converting chip 21, and the A/D converting chip 21 starts operating.
The A/D converting chip 21 receives the sound signal S1, and outputs a digital signal with a duty cycle to the cathode of the diode D0. When the digital signal from the A/D converting chip 21 is a digital high level signal, the diode D0 is turned off. The I/O port P3.0 of the processor 31 receives a voltage of the power source P3V. When the digital signal from the A/D converting chip 21 is a digital low level signal, the diode D0 is turned on. The I/O port P3.0 of the processor 31 receives a digital low level signal. A duty cycle of an input signal received by the I/O port P3.0 of the processor 31 is the same as the duty cycle of the digital signal from the A/D converting chip 21. In this embodiment, each portion of the duty cycle is corresponding to each unit sound decibel (dB). If the maximum value of the duty cycle is 100%, the value of 100% of the duty cycle is corresponding to a sound decibel (dB) of 100 dB. If the minimum value of the duty cycle is 0, the value of 0 of the duty cycle is corresponding to a sound decibel (dB) of 0 dB. Therefore, the processor 31 can determine a certain range of the sound of the surrounding environment of the mobile phone, according to the input signal from the I/O port P3.0 of the processor 31.
When a range of the sound of the surrounding environment is 40 dB-60 dB, the I/O port P3.0 of the processor 31 outputs a volume increasing signal to the volume adjusting port A of the alarm tone unit 200, to control a volume of the alarm tone unit 200 to increase by 15 dB. When sound decibel (dB) of the surrounding environment of the mobile phone is greater than 60 dB, in addition to the volume of the ringing increased by 15 dB, the I/O port P1.4 of the processor 31 outputs a vibration on signal to the vibration on port Son of the alarm tone unit 200, to open a vibration function of the mobile phone. When the sound decibel (dB) of the surrounding environment of the mobile phone is less than 60 dB, the I/O port P1.4 of the processor 31 stops working. The I/O port P1.5 of the processor 31 outputs a vibration off signal to the vibration off port Soff of the alarm tone unit 200, to turn off the vibration function of the mobile phone.
When the range of the sound of the surrounding environment is 20 dB-40 dB, the I/O port P3.1 of the processor 31 outputs a volume decreasing signal to the volume adjusting port A of the alarm tone unit 200, to control the volume of the alarm tone unit 200 to decrease by 5 dB. When the sound decibel (dB) of the surrounding environment of the mobile phone is less than 20 dB, the I/O port P1.7 of the processor 31 outputs a sound off signal to the ringing off port Voff of the alarm tone unit 200. The I/O port P1.4 of the processor 31 starts working, to turn off the alarm tone of the mobile phone, and to open the vibration of the mobile phone. When the sound decibel (dB) of the surrounding environment of the mobile phone is greater than 20 dB, the I/O port P1.6 of the processor 31 outputs a sound open signal to the ringing on port Von of the alarm tone unit 200, to open the ringing of the mobile phone. In the meantime, the I/O port P1.5 of the processor 31 starts operating, and the vibration of the mobile phone is shut off
Therefore, the alarm tone adjustment circuit 100 can change the volume of the alarm tone of the mobile phone, according to the sound of the surrounding environment.
While the disclosure has been described by way of example and in terms of the embodiment, it is to be understood that the disclosure is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the range of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
201410671287.0 | Nov 2014 | CN | national |