1955 views|2 replies

4

Posts

0

Resources
The OP
 

How to output multiple pulses? [Copy link]

Using the YF017 music chip in the picture below, different sounds can be played by sending out several pulses. Does the following code send out a single pulse? How can we send out multiple pulses to make this music chip send out different sounds?

always@(posedge clk)
begin
if(count == division/2)
begin
count <= 0;
beep_r <= ~beep_r;
end
else
count <= count + 1;
end

This post is from FPGA/CPLD

Latest reply

Just give different frequencies. You can search on Baidu. Different frequencies correspond to different sounds. There is a corresponding table.   Details Published on 2019-7-19 09:47
 

506

Posts

0

Resources
2
 

Yes, division is the frequency.

This post is from FPGA/CPLD
 
 

122

Posts

0

Resources
3
 

Just give different frequencies. You can search on Baidu. Different frequencies correspond to different sounds. There is a corresponding table.

This post is from FPGA/CPLD
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list