摘要 |
There is provided a method for generating turn-signal sound of a vehicle and a device using the method which can output from a speaker the turn-signal sound close to operating sound of a mechanical relay. The method outputs a pulse signal for turn-signal sound having varying frequency and duty ratio from a PPG port of a CPU, integrates the pulse signal for turn-signal sound using an integration circuit to convert into an analog signal for turn-signal sound which is outputted to a speaker. The method also outputs a pulse signal for alarm having the constant frequency and duty ratio, integrates the pulse signal for alarm sound using an integration circuit to convert into an analog signal for alarm sound. Then the analog signals for turn-signal sound and for alarm sound are summed up and outputted to the speaker to produce simultaneously the turn-signal sound and the alarm sound. |