Sound playback device and sound playback system
By introducing a counter circuit and an error control unit into the sound playback system, it can independently determine the speaker connection abnormality and delay the stop of playback. This solves the problem of excessive stopping caused by abnormal sounds and false detections in the existing technology, and achieves more stable sound playback.
Patent Information
- Application Number
- CN202010709145.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-25
- Filing Date
- 2020-07-22
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-07-22
AI Technical Summary
In the existing sound playback system, when the connection between the sound LSI and the speaker is abnormal or the communication interface of the control microcomputer is abnormal, it may cause abnormal sounds to be generated, and it is difficult to effectively suppress excessive stoppage of playback caused by false detection.
A sound playback device is designed, which includes a sound playback control part, a first communication interface part, a counter part and an error control part. The counter circuit prevents overflow when the communication interface is abnormal, independently determines the speaker connection abnormality, and detects the situation in error. Lower delay to stop playback to suppress abnormal sounds.
It effectively suppresses the generation of abnormal sounds, ensures that excessive stoppage of playback is avoided when the communication interface is abnormal, and improves the stability and accuracy of sound playback.
Smart Images

Figure CN112291682B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a sound playback device and a sound playback system, and more particularly to a sound playback device and a sound playback system that take into account suppression of playback abnormality when an abnormal state of the device occurs. Background Art
[0002] As a document related to the operation when an abnormal state occurs during sound playback, for example, Patent Document 1 is known. Patent Document 1 discloses a car audio device, comprising: a power amplifier having two amplifiers for amplifying a pair of positive-phase and reverse-phase signals respectively with respect to an audio signal and outputting them to a speaker, and an abnormality detection unit for outputting an abnormality detection signal when the potential difference between the positive-phase and reverse-phase signals output by the two amplifiers exceeds a preset threshold value; a sound level detection unit for detecting the sound level of the audio signal input to the power amplifier; a sound level comparison unit for comparing the sound level detected by the sound level detection unit with a preset sound level threshold value; and an abnormality determination unit for stopping the operation of the power amplifier when the abnormality detection unit outputs an abnormality detection signal when the sound level is below the sound level threshold value according to the comparison result of the sound level comparison unit. According to the car audio device involved in Patent Document 1, even during sound output, it is possible to determine that a DC bias abnormality has occurred based on the abnormality detection signal during a period in which the possibility of false detection is low, and it is possible to provide a car audio device capable of determining an abnormality in a short determination time.
[0003] As an example of a specific disadvantage when an abnormal state occurs in a sound playback system, the generation of abnormal sound from a speaker is cited. In addition, as a cause of the generation of abnormal sound, an abnormal connection between a semiconductor device that performs sound playback (hereinafter referred to as a "sound LSI" (LSI: Large Scale Integrated circuit)) and a speaker, or an abnormality in the communication interface between the sound LSI and a microcomputer that controls the sound LSI (hereinafter referred to as a "control microcomputer") is cited. In this case, there is a possibility that the abnormal sound is amplified via the speaker. The so-called "abnormal sound" here refers to, for example, a sound that is played in an undesirable manner (hereinafter, there is a case where the sound to be played is referred to as a "sentence") and a played noise.
[0004] As a method for solving the above-mentioned problem, there is known a method of detecting a connection abnormality between a sound LSI and a speaker connected to the sound LSI to suppress the generation of abnormal sound. Figure 6 This method will be described using the audio LSI 100 according to the comparative example shown.
[0005] like Figure 6As shown, in the audio LSI 100, the audio playback control circuit 102 receives audio data from the audio data unit 106 storing audio data as the source of the sentence, performs a predetermined operation, and then sends the audio data after the operation to the speaker circuit 103, which is a speaker driving circuit. The speaker circuit 103 drives the speaker 400 to play the audio. The audio LSI 100 is connected to the control microcomputer 300 via the communication interface circuits 101 and 301, and plays the audio according to the control based on the command from the control microcomputer 300 sent via the communication interface.
[0006] The audio LSI 100 further includes a speaker connection detection circuit 105 and an error control circuit 104. The speaker connection detection circuit 105 sends a signal indicating a speaker connection error to the error control circuit 104 when a connection abnormality occurs, based on a speaker connection signal indicating the connection state of the speaker sent from the speaker circuit 103. The error control circuit 104, which receives the speaker connection error signal, controls the audio playback control circuit 102 to stop the playback of the audio.
[0007] Patent Document 1: Japanese Patent Application Publication No. 2012-85040
[0008] However, in the audio LSI 100 involved in the above-mentioned comparative example, there is a concern about the following possibility. That is, there is a possibility that even if an abnormality in the connection between the audio LSI 100 and the speaker 400 is erroneously detected, the sound playback may be stopped immediately; when the communication interface between the audio LSI 100 and the control microcomputer 300 does not operate normally, there is a possibility that the audio LSI 100 cannot detect the abnormality and an unintentional (inappropriate) command is issued from the control microcomputer 300 to the audio LSI 100, resulting in the generation of abnormal sound. In this regard, Patent Document 1 aims to shorten the abnormality determination time in the car audio device, but does not conduct research from such a point of view. Summary of the invention
[0009] In view of the above circumstances, an object of the present invention is to provide a sound reproduction device and a sound reproduction system that can suppress the generation of abnormal sound.
[0010] In order to solve the above-mentioned problems, the sound playback device involved in the present invention includes: a sound playback control unit, which performs the required operations on the source sound data and generates playback sound data sent to the speaker; a first communication interface unit, which is used for communication with the control device; a counter unit, which controls the counting action by receiving a control signal from the above-mentioned control device via the above-mentioned first communication interface unit, and outputs the status of the above-mentioned counting action; and an error control unit, which stops the generation of the playback sound data in the above-mentioned sound playback control unit according to the status of the above-mentioned counting action.
[0011] In order to solve the above-mentioned problem, a sound reproduction system according to the present invention includes: the above-mentioned sound reproduction device; and a control device having a second communication interface unit that faces the above-mentioned first communication interface unit and performs communication.
[0012] According to the present invention, there is an effect of being able to provide a sound broadcasting device and a sound broadcasting system that can suppress the generation of abnormal sound. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a block diagram showing an example of the configuration of the sound reproduction device and the sound reproduction system according to the first embodiment.
[0014] Figure 2 The operation of the sound playback device according to the first embodiment is described. Figure 2 (a) is the time diagram of normal time. Figure 2 (b) is the time diagram when abnormality is detected.
[0015] Figure 3 This is a block diagram showing an example of the configuration of a sound reproduction device and a sound reproduction system according to the second embodiment.
[0016] Figure 4 The operation of the sound playback device according to the second embodiment will be described. Figure 4 (a) is a time chart of the case where the abnormality detection is a false detection. Figure 4 (b) is a time chart of the case where abnormality detection is not a false detection.
[0017] Figure 5 This is a flowchart showing the flow of the sound reproduction process of the sound reproduction system according to the second embodiment.
[0018] Figure 6 : is a block diagram showing the structure of a sound reproduction device according to a comparative example.
[0019] Description of reference numerals:
[0020] 1, 1A...sound playing system; 10, 10A, 100...sound LSI; 11, 11A, 101...communication interface circuit; 12, 12A, 102...sound playing control circuit; 13, 103...speaker circuit; 14, 14A, 104...error control circuit; 15, 105...speaker connection detection circuit; 16, 106...sound data unit; 17, 17A...counter circuit; 18...error status register; 30, 300...control microcomputer; 31, 301...communication interface circuit; 40, 400...speaker; S1, S7...command; S2...overflow error; S3...speaker connection signal; S4...speaker connection error; S5...sound playing stop signal; S6...error output; S8...error flag DETAILED DESCRIPTION
[0021] Hereinafter, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description, an example is given of a sound playback device and a sound playback system according to the present invention being applied to a sound playback device and a sound playback system that are linked to a control microcomputer to detect an abnormality of the device during sound playback and suppress the generation of an abnormal sound accompanying the abnormality.
[0022] [First embodiment]
[0023] Reference Figure 1 as well as Figure 2 , the sound playback device and the sound playback system involved in the present embodiment are described. The sound playback system involved in the present embodiment is used, for example, for voice guidance in various devices. The sound playback device and the sound playback system involved in the present embodiment have countermeasures in the case where an abnormality occurs in the communication interface with the control microcomputer. The sound playback device and the sound playback system involved in the present embodiment also have a structure for detecting an abnormality in the connection of the speaker and stopping the sound playback, but the abnormality detection of the communication interface involved in the present embodiment and the abnormality detection of the speaker operate independently.
[0024] like Figure 1As shown, the sound playback system 1 includes a sound LSI 10, a control microcomputer 30, and a speaker 40. The "sound LSI 10" is an example of the "sound playback device" involved in the present invention. The control microcomputer 30 sends a control signal required for playing sound to the sound LSI 10, and receives a signal indicating the state of the sound LSI 10 from the sound LSI 10. Therefore, the control microcomputer 30 has a communication interface circuit 31 for communicating with the sound LSI 10. The speaker 40 amplifies the sound by the drive signal from the sound LSI 10. In addition, the "control microcomputer 30" is an example of the "control device" involved in the present invention.
[0025] On the other hand, Figure 1 As shown, the audio LSI 10 includes a communication interface circuit 11 , an audio reproduction control circuit 12 , a speaker circuit 13 , an error control circuit 14 , a speaker connection detection circuit 15 , a counter circuit 17 , and an audio data unit 16 . Figure 1 The communication interface circuit 11, the sound playback control circuit 12, the speaker circuit 13, the error control circuit 14, the speaker connection detection circuit 15 and the sound data unit 16 are respectively provided with Figure 6 The communication interface circuit 101, the sound playback control circuit 102, the speaker circuit 103, the error control circuit 104, the speaker connection detection circuit 105 and the sound data unit 106 have the same functions. In addition, the "speaker circuit 13" and the "speaker connection detection circuit 15" are examples of the "monitoring unit" and the "detection unit" involved in the present invention, respectively.
[0026] The communication interface circuit 11 is connected to the communication interface circuit 31 provided in the control microcomputer 30 and is used to transmit various signals (in Figure 1 A circuit that interacts bidirectionally.
[0027] The audio data unit 16 is a part that stores audio data that is a source for generating a sentence (hereinafter, sometimes referred to as “source audio data”).
[0028] The sound playing control circuit 12 receives the control signal (at Figure 1 The audio control unit 16 reads the required source audio data from the audio data unit 16, and performs a predetermined operation on the read source audio data to generate audio data that can be played in the speaker circuit 13 (hereinafter referred to as "played audio data"). The "source audio data" involved in this embodiment is, for example, audio data after compressing a sentence, and the so-called "predetermined operation" refers to, for example, decompressing the compressed audio data and converting it into a signal corresponding to the original sentence.
[0029] The speaker circuit 13 drives the speaker 40 according to the broadcast audio data to amplify the sentence. The speaker circuit 13 has a built-in circuit for monitoring the connection with the speaker 40, and sends the monitoring result to the speaker connection detection circuit 15 as a speaker connection signal S3.
[0030] The speaker connection detection circuit 15 determines the connection state of the speaker 40 based on the speaker connection signal S3 sent from the speaker circuit 13, and sends a speaker connection error S4 to the error control circuit 14 when it is determined to be abnormal.
[0031] The error control circuit 14 stores a signal corresponding to the speaker connection error S4 sent from the speaker connection detection circuit 15 in a corresponding register of the error status register 18. The error status register 18 is a register that stores not only the speaker connection error S4 but also other various states in the sound LSI 10 (for example, a temperature error of the sound LSI 10, etc.), and all the signals that define the operation of the error control circuit 14 are temporarily stored in the error status register 18.
[0032] When the error control circuit 14 receives the speaker connection error S4 from the speaker connection detection circuit 15, it sends a sound playback stop signal S5 to the sound playback control circuit 12 in order to stop the sound playback processing in the sound playback control circuit 12. The sound playback control circuit 12 that receives the sound playback stop signal S5 stops the sound playback, and becomes a state in which no playback sound data is sent to the speaker 40. In addition, when the error control circuit 14 detects an abnormality, it outputs an error output S6 from the error terminal.
[0033] The above composition is Figure 6 Therefore, although the sound LSI 100 has a function of stopping the sound playback based on the detection of the abnormal connection of the speaker, in this embodiment, it is assumed that it operates independently (independently) from the detection part of the abnormal connection of the speaker.
[0034] The sound LSI 10 according to the present embodiment further includes a counter circuit 17. The counter circuit 17 is controlled to operate by a command S1 sent via the communication interface circuits 31 and 11. That is, the counting operation (counting operation) is started by a counter operation start command from the control microcomputer 30, and the counting operation is stopped by a counter clear command (see Figure 2On the other hand, if the counter clear instruction is not received by the audio LSI 10 for some reason, the counter circuit 17 overflows, and therefore an overflow error S2 is sent to the error control circuit 14.
[0035] Next, refer to Figure 2 , the operation of the sound LSI 10 is described in more detail. As described above, in this embodiment, as an abnormality related to the sound LSI 10, an abnormality of the communication interface with the control microcomputer 30 is assumed. The "abnormality of the communication interface" involved in this embodiment includes: abnormalities such as short circuits (short) and open circuits (open) generated in the communication interface circuits 31 and 11; and abnormalities such as short circuits (short) and open circuits (open) in the communication path between the communication interface circuit 31 and the communication interface circuit 11.
[0036] Figure 2 The waveforms of various parts of the sound LSI 10 that change as the sound LSI 10 operates are shown. Figure 2 (a) shows a timing chart when the sound LSI 10 operates normally. Figure 2 (b) shows a time chart when an abnormality occurs in the communication interface. Figure 2 In FIG. 1 , the waveforms of the instruction S1, the overflow error S2, the error output S6, and the sound playback stop signal S5 are shown. Figure 2 In addition to these signals, the waveform of the counter enable signal is also shown (in Figure 2 Marked as "Counter Enable"), the counter action waveform (in Figure 2 ) and a signal indicating the overflow of the counter (in Figure 2 "Counter: Overflow"), and a waveform showing the state of the counter (in Figure 2 Here, counter enable, counter, counter: overflow, and status respectively represent internal signals of the counter circuit 17 or internal states.
[0037] like Figure 2 As shown in (a), when the sound LSI 10 operates normally, the control microcomputer 30 periodically issues a counter clearing command after issuing a counter operation start command to the sound LSI 10. The counter circuit 17 that receives the counter operation start command makes the counter enable signal transition from a low level (hereinafter referred to as "L") to a high level (hereinafter referred to as "H") (time t1), and starts counting (accumulation) at time t1, so as to be shown in the waveform of the counter and the waveform of the state.
[0038] Next, when a counter clear command is issued to the sound LSI 10, the counter circuit 17 clears the counter and sets the count value to "0h" as shown in the waveform of the counter. Since the timing of issuing the counter clear command is set so as to be issued before the counter circuit 17 overflows, the counter circuit 17 does not overflow. Therefore, the waveforms of the counter overflow, overflow error S2, and error output S6 are maintained at L. Therefore, since the sound playback stop signal S5 is also maintained at L, the sound playback control circuit 12 continues to generate playback sound data. That is, in this embodiment, as long as the counter circuit 17 does not overflow, it is determined that no abnormality has occurred in the sound LSI 10. In addition, in this embodiment, the control microcomputer 30 is illustrated as a method of periodically issuing the counter clear command, but it is not limited to this. As long as the condition that the counter circuit 17 does not overflow is satisfied, it may not be periodic.
[0039] On the other hand, if an abnormality occurs in the communication interface after the counter operation start command is issued, the counter clear command does not reach the counter circuit 17. Figure 2 (b) is a timing chart showing a case where an abnormality in the communication interface occurs after a counter operation start command and some counter clear commands are issued.
[0040] like Figure 2 As shown in (b), at time t1, the counting action starts, but then at time t2, an overflow occurs due to failure to receive the counter clear instruction. At this time, in the counter: overflow, a signal indicating overflow is generated, the overflow error S2 and the error output S6 transition from L to H, and the state changes from the counter action to the counter stop state. Moreover, the error control circuit 14 that receives the overflow error S2 sends the sound playback stop signal S5 to the sound playback control circuit 12. The sound playback control circuit 12 that receives the sound playback stop signal S5 stops the sound playback.
[0041] In addition, in the present embodiment, an example of stopping the playback of sound when an abnormality occurs in the sound LSI 10 is illustrated for explanation, but the invention is not limited to this. The playback may not be stopped, or a sentence notifying that an abnormality has occurred (for example, a sentence such as "an abnormality has occurred") may be amplified from the speaker 40 at the same time as the playback is stopped.
[0042] As described in detail above, according to the sound playback device and the sound playback system involved in this embodiment, it is possible to provide a sound playback device and a sound playback system that can suppress the generation of abnormal sounds. In particular, according to the sound playback device and the sound playback system involved in this embodiment, even if an abnormality occurs in the communication interface with the control microcomputer, the generation of abnormal sounds can be suppressed.
[0043] [Second embodiment]
[0044] Reference Figure 3 as well as Figure 4 The present embodiment describes an audio LSI 10A and an audio playback system 1A. The present embodiment is a method in which, when an abnormality in speaker connection is detected, it is determined whether the abnormality detection is based on a false detection, and when it is determined to be based on a false detection, the audio playback is stopped (the audio playback is continued).
[0045] Compared with the sound playback system 1 according to the above-mentioned embodiment, Figure 3 As shown, the sound reproduction system 1A is different in that it includes a sound LSI 10A instead of the sound LSI 10. In addition, when compared with the sound LSI 10, the sound LSI 10A is different in that the communication interface circuit 11 is changed to 11A, the sound reproduction control circuit 12 is changed to 12A, the counter circuit 17 is changed to 17A, and the error control circuit 14 is changed to 14A. Since the configuration other than this is the same as the sound LSI 10, the same reference numerals are attached to the same configurations, and detailed descriptions are omitted.
[0046] In this embodiment, the control microcomputer 30 sends a command S7 including a counter operation permission command and an error clearing command following the counter operation permission command to the counter circuit 17A via the communication interface circuit 31 and 11A (see Figure 4 On the other hand, in this embodiment, the speaker circuit 13, the speaker connection detection circuit 15, the error control circuit 14A, and the sound reproduction control circuit 12A detect the abnormality of the speaker connection and stop the sound reproduction.
[0047] Next, refer to Figure 4 , the operation of the audio LSI 10A and the audio playback system 1A will be described. Figure 4 (a) shows a time chart of a case where the detected speaker connection abnormality is based on a false detection, Figure 4 (b) shows a time chart when the detected speaker connection abnormality is not based on false detection. Figure 2 Compared to the timing diagram shown in Figure 4 The timing chart shown is different in that the commands are changed from counter operation start commands and counter clear commands to counter operation permission commands and error clear commands, the counter enable signal is replaced by a counter operation permission signal, and a speaker connection error S4 is added.
[0048] like Figure 4As shown in (a) of FIG. 1 , when the control microcomputer 30 transmits a counter enable command to the counter circuit 17A via the communication interface circuit 31 and 11A, the counter circuit 17A generates a counter operation enable signal (time t1 ). Figure 4 The counter action permission signal shown in (a) has the same Figure 2 The function of the counter enable signal is shown in Figure 4 In (a), since the speaker connection abnormality is not detected when the counter operation permission signal is generated, the speaker connection error S4 is L. The error output S6 outputted in response to the speaker connection error S4 is also L. Therefore, the counter circuit 17A does not operate.
[0049] exist Figure 4 In (a), at time t2, the speaker connection error S4 changes from L to H. This is because the speaker connection detection circuit 15 determines that there is an abnormality in the speaker connection based on the speaker connection signal S3 from the speaker circuit 13, and sends the speaker connection error S4 to the error status register 18 of the error control circuit 14A. In addition, Figure 4 The error output S6 in (a) operates in the same manner as the speaker connection error S4.
[0050] The counter circuit 17A which receives the speaker connection error S4 via the control microcomputer 30 starts counting (counting) (accumulating). On the other hand, the control microcomputer 30 sends an error clearing command to the counter circuit 17A following the counter operation permission command. Then, when the error clearing command is received before the counter circuit 17A overflows, the counter circuit 17A is cleared and reset to "0h" and the counting operation stops (time t3). The above operation is performed in the following manner: the control microcomputer 30 determines that the detected speaker connection abnormality is based on false detection, and sends the error clearing command to the counter circuit 17A before the counter circuit 17A overflows. The judgment of whether the detected abnormality is based on false detection can also be set as, for example, the case where the duration of the abnormality detection signal is less than a predetermined period is judged as false detection. During this period, the sound playback stop signal S5 is not sent from the error control circuit 14A to the sound playback control circuit 12A. Thereafter, if the speaker connection error S4 becomes H again, the counting based on the counter circuit 17A is started again (time t4).
[0051] As described above, in the sound broadcasting system 1A, when it is determined that the detected connection abnormality of the speaker 40 is due to false detection, the generation of the broadcast sound data by the sound broadcasting control circuit 12A is not stopped but continued. Thus, in the sound broadcasting system 1A, excessive stoppage of the sound broadcasting due to false detection of abnormality is suppressed.
[0052] Next, if you refer to Figure 4 (b), until time t2, Figure 4 If the speaker connection error S4 changes from L to H at time t2 and the speaker connection abnormality is detected, the counter circuit 17A starts counting and the same Figure 4 However, in Figure 4 In the case of (b), the control microcomputer 30 does not issue an error clearing instruction until at least the counter circuit 17A overflows. This is performed by the control microcomputer 30 determining that the detected abnormality in the connection of the speaker is not based on false detection, and intentionally causing the counter circuit 17A to overflow. Here, the control microcomputer 30 can freely control the time from the moment of detecting the abnormality to issuing the error clearing instruction.
[0053] If the overflow of the counter circuit 17A occurs at time t3, the overflow error S2 changes from L to H, and the error control circuit 14A, which receives the change, generates a sound playback stop signal S5, and stops the playback of the sound by the sound playback control circuit 12A. In addition, the control microcomputer 30 issues an error status read command to read the error content stored in the error status register 18. Thereafter, the control microcomputer 30 sends an error clear command to the counter circuit 17A at time t4, and with this, the speaker connection error S4, the error output S6, and the overflow error S2 change from H to L. Through the above operation, when it is determined that the abnormal connection detection of the speaker is not a false detection, it is possible to suppress the abnormal sound from being amplified from the speaker 40.
[0054] Next, refer to Figure 5 , a sound reproduction processing program executed by the sound LSI 10A and the sound reproduction system 1A according to the present embodiment will be described. Figure 5 1 is a flowchart showing the flow of the sound playback processing program. The sound playback processing program is stored in, for example, a ROM (not shown) in a device equipped with the sound LSI 10A, and is read by the CPU, expanded in the RAM, and executed. The sound playback processing program is started, for example, by turning on the power of the device equipped with the sound LSI 10A.
[0055] First, in step S100, the audio LSI 10A is in a counter operation standby state, that is, a state in which the counter circuit 17A is reset and waits for input.
[0056] In step S101, the control microcomputer 30 sends a counter operation permission instruction ( Figure 4 (a) and (b) at time t1).
[0057] In step S102 , the audio LSI 10A outputs an error detection signal. In this embodiment, the speaker connection detection circuit 15 sends a speaker connection error S4 to the error status register 18 .
[0058] In step S103, the control microcomputer 30 detects the state of the sound LSI 10A. That is, the control microcomputer 30 reads the error state register 18 (in Figure 4 Specifically, read Figure 3 The error flag S8 is shown. Figure 3 In the example, the error flag S8 is output to the counter circuit 17A for intuitive understanding, but in fact, it is indirectly processed via the control microcomputer 30.
[0059] In step S104, the counter circuit 17A starts the counter operation. That is, the control microcomputer 30, which has received the abnormal connection of the speaker 40, sends an operation start signal to the counter circuit 17A via the communication interface circuit 31 and 11A (at step S104). Figure 4 The counter circuit 17A starts to operate ( Figure 4 (a) and (b) at time t2).
[0060] In step S105, the control microcomputer 30 determines whether the detected connection error of the speaker 40 is a false detection. If the determination is negative (not a false detection), the process moves to step S107 and is set to a standby state ( Figure 4 That is, the process waits for the time to elapse without executing any processing. On the other hand, if the determination in step S105 is positive (false detection), the control microcomputer 30 sends an error clearing instruction in step S106 ( Figure 4 at the moment t3 of (a).
[0061] In step S108, the counter circuit 17A determines whether an error clear instruction has been received. Figure 4 After the counter circuit 17A starts operating at time t2 of (a) and (b), the counter circuit 17A waits for reception of an error clear instruction. Figure 4 At time t3 of (a), the counter circuit 17A and the error state are reset in step S109. That is, the error control circuit 14A initializes the corresponding register of the error state register 18. On the other hand, if the determination is negative, the process moves to step S100 and becomes a standby state for the counter operation.
[0062] In step S110, since the counter circuit 17A does not receive the error clear instruction, the counter circuit 17A overflows ( Figure 4 (b) at moment t3).
[0063] In step S111, the counter circuit 17A outputs an overflow error signal (overflow error S2), and the counter is reset ( Figure 4 (b) at moment t3).
[0064] In step S112 , the error control circuit 14A detects the overflow error signal and sets the overflow error to the error status register 18 .
[0065] In step S113, the error control circuit 14A outputs the sound playback stop signal S5 ( Figure 4 At time t3 of (b), in step S114, the sound reproduction control circuit 12A stops the reproduction of the sound. Thereafter, the process moves to step S110 and enters a standby state for the counter operation.
[0066] On the other hand, in step S115, the control microcomputer 30 issues an error state instruction (equivalent to Figure 4 In (b) "Error status reading", the error status is read from the error status register 18 of the sound LSI 10A.
[0067] In step S116, the control microcomputer 30 sends an error clear command to the sound LSI 10A ( Figure 4 At time t4 of (b), the control microcomputer 30 resets the error state and the overflow error in step S117. That is, a command corresponding to the sound LSI 10A is sent to initialize the error state register 18. Thereafter, the control microcomputer 30 enters the standby state in step S118.
[0068] This sound reproduction processing routine ends, for example, by turning off the power supply of the device on which the sound LSI 10A is mounted.
[0069] As described in detail above, according to the sound LSI 10A and the sound playback system 1A of the present embodiment, the control microcomputer 30 can freely set the time from the time when the abnormality is detected to the time when the error clearing instruction is issued. Therefore, for example, when a connection abnormality is detected between the sound LSI 10A and the speaker 40, the control microcomputer 30 can control to detect an overflow error while ensuring a certain time margin, and stop the sound playback when the detection of the connection abnormality is true. Therefore, for example, when the detection of the connection abnormality is a false detection, the sound playback is suppressed from being excessively restricted.
[0070] In addition, in each of the above-mentioned embodiments, an example is given of a method in which a connection abnormality between the sound LSI and the speaker is set as a condition for starting the counter action, but it is not limited to this. For example, other errors inside the sound LSI or connection abnormalities with other external connection components may be set as a condition for starting the counter action.
Claims
1. A sound playing device, comprising: A sound playback control unit that performs required operations on source sound data to generate playback sound data to be sent to a speaker; A first communication interface unit, which is used to communicate with the control device; a counter unit that controls a counting operation by a control signal received from the control device via the first communication interface unit and outputs a state of the counting operation; and an error control unit that stops the generation of the playback sound data in the sound playback control unit according to the state of the counting operation, The control signal is a start signal for the counting operation and a reset signal for the counter following the start signal. When the counting operation is in a state of overflow due to an abnormality occurring between the control device and the first communication interface unit and the counter unit being unable to receive the reset signal, the error control unit stops the generation of the playback sound data in the sound playback control unit.
2. The sound playback device according to claim 1, wherein: The control device includes a second communication interface unit that is opposed to the first communication interface unit and performs communication. The overflow occurs when the counter unit cannot receive the reset signal due to a communication abnormality between the first communication interface unit and the second communication interface unit.
3. The sound playback device according to claim 1 or 2, wherein: Also includes: a monitoring unit disposed between the sound playback control unit and the speaker and outputting a status signal indicating a connection status of the speaker; as well as a detection unit, which detects the connection status of the speaker according to the status signal, The error control unit controls the counter unit to start counting when the abnormal connection state is detected by the detection unit. When it is determined that the abnormal connection state detected by the detection unit is caused by an erroneous detection, the control device sends an error clear signal to the counter unit to stop the counting operation of the counter.
4. The sound playback device according to claim 3, wherein: When the period during which the detection unit detects the abnormal connection state is shorter than a predetermined period, the control device determines that the abnormal connection state is caused by an erroneous detection.
5. The sound playback device according to claim 3, wherein: When an overflow occurs in the counter section before the counting operation of the counter section stops, the error control section stops the generation of the sound reproduction data in the sound reproduction control section.
6. The sound playback device according to claim 4, wherein: When an overflow occurs in the counter section before the counting operation of the counter section stops, the error control section stops the generation of the sound reproduction data in the sound reproduction control section.
7. A sound playing system, wherein: Include: The sound playback device according to any one of claims 1 to 6; and The control device includes a second communication interface unit that faces the first communication interface unit and performs communication.
