The wiring of the music IC chip is shown in the figure
The music chip consists of the following parts:
The address counter is used to specify the PC pointer in the ROM (program counter? ), trigger the counter to accumulate and switch to the next frequency output and delay after the end of the current frequency output delay time, and reset it after the music is played.
the note beat memory ROM is used to store the frequency and delay data of music. The frequency generator is used to generate a square wave oscillation output with a specified frequency. If the output cannot be stopped, the ultrasonic wave can be directly output. The delay counter is used to control how long the frequency is output, minus 1 every millisecond, and when it is reduced to , it will trigger the PC counter to add 1 to read the next beat from ROM.
extended data
works by reading frequency and delay data from ROM. The frequency data is sent to the frequency generator, and then the delay data is sent to the delay counter. Wait for the delay counter to be reduced to , while the frequency generator continues to output the specified frequency. Trigger the PC pointer to add 1 to read the next beat data. If the PC pointer is greater than the total number of beats, it will be cleared to avoid reading other random data.
Common music format:
MID format: MIDI (Musical Instrument Digital Interface), which was put forward in the early 198s to solve the communication problem between electro-acoustic instruments. MIDI transmits instructions such as notes and control parameters instead of sound signals.
WAV format: (introduction of IC class of meeting voice) the format of collecting timbre.
Baidu Encyclopedia-Sound Chip
Baidu Encyclopedia-Music Chip