How do I control a communication method to control the voice volume? What will happen to the switch and communication function operated in the COMBO example?
Answer To control the voice volume using a communication method, you can use the communication data and the API function known as VoicePlay. In the COMBO example, using switches to connect PA0~PA7 to ground allows the voice generation using switch control. The communication port is PB and data will be retained in the RAM19. Using VoicePlay and the received data, the played voice can be controlled. The switches can be triggered repeatedly. During the course of voice generation, the device will always response to the latest commands. This means that a switch may interrupt a voice being played from the communication command, and vice-versa a communication command can interrupt a voice being played from a switch.