EmbDev.net

Forum: FPGA, VHDL & Verilog FPGA Nexys 2 Spartan 3E Timer with buzzer


Author: Katja (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi!
I am trying to create a timer that counts down from 6 to 0 and then 
activates a buzzer. I am using the 50MHz clock on the board and divide 
the frequency to 1/60 Hz so that the counter (connected to the 7seg 
display) counts down in minutes. This part works.
I am also dividing the 50MHz clock on the board to get a frequency to 
send to the buzzer, but the buzzer will not activate. I am using the L15 
pin and GND on the board for the buzzer. I have tried a range of 
400-4000 Hz.
Any ideas as to why the buzzer won't activate? The buzzer is working 
since I tried connecting it to a 3.3V pin and it activated.

Author: Lothar M. (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Katja wrote:
> Any ideas as to why the buzzer won't activate?
Maybe there's a problem inside the unknown code.

Katja wrote:
> The buzzer is working since I tried connecting it to a 3.3V pin and it
> activated.
Does "activated" mean "beeped"?
So maybe it is an active buzzer that simply needs a supply and not a 
AC- or pulse-signal.

Katja wrote:
> The buzzer is working since I tried connecting it to a 3.3V pin and it
> activated.
How much current needs this buzzer? More than a FPGA pin is able to 
source?


But first question is: is the simulation ok and running fine?
What? You didn't simulate?
Well, know: the simulator is the debugger in a hardware design. And your 
kind of design is easily simulated as most of the stimulus is a clock 
with 50MHz...

: Edited by Moderator
Author: AmorLogic (Guest)
Posted on:

Rate this post
0 useful
not useful
Please post VHDL, testbench and electronic schematic.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.