Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

cyclone II buzzer or sound

i am using the cyclone II DE2 board to do an assignment with the title alarm clock... normally we are using the LED to represent the alarm sound... i would like to ask izit possible that make DE2 playing some sound or any other way to perform it?

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    There is a CODEC chip on the DE2 board which will allow you to play (and record) sounds, but thats significantly harder than making an LED turn on.

    Your best bet is to buy a piezo electric buzzer and attach it to one of the GPIOs.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Did you use NIOS II for alarm clock or direct HW?

    I think you need to use NIOS II and right drivers to initialize and use CODEC chip.

    Easiest way is to get Piezo buzzer and control it with selected GPIO.

    If you want to use IO pin to audio output for amplifier then this may help. Examples are in Verilog.

    http://www.fpga4fun.com/musicbox.html

    Edit:

    GPIO (General Purpose Input Output). Usually mean pin in FPGA.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In this context, the GPIOs are those two 40 pin connectors on the DE2.