From: PVN on
Hey , we are a group of 4 ec students working on a project which deals
with creating delay based music effects using dsk 6713. We want to use
the dip switches for user interface (to decide which effect). But we
are having trouble coding the interface part. Can anyone give us an
idea about how we should go about coding of the switch functions? Any
tutorial or help that can tell us how to code dip switch interface?

From: Jerry Avins on
PVN wrote:
> Hey , we are a group of 4 ec students working on a project which deals
> with creating delay based music effects using dsk 6713. We want to use
> the dip switches for user interface (to decide which effect). But we
> are having trouble coding the interface part. Can anyone give us an
> idea about how we should go about coding of the switch functions? Any
> tutorial or help that can tell us how to code dip switch interface?

Do you know how to read the switch settings?

How many switches are there?

How many effects do you want to choose among? (With 4 switches, you
could encode up to 16 effects.)

Jerry
--
Engineering is the art of making what you want from things you can get.
�����������������������������������������������������������������������
From: aaac111 on
hi,

If your question is:
"Can anyone give us an
>idea about how we should go about coding of the switch functions?"

Coding of the switch functions, are you using CCS for your C6713 dsp? i
have not worked on the 6713dsk, but if you have managed the hardware part
which i suppose, would be using the gpio pins in the c6713? writing code
for the gpio pins is not difficult as there are a lot of APIs which can be
used straightaway in you c code...

aps






>Hey , we are a group of 4 ec students working on a project which deals
>with creating delay based music effects using dsk 6713. We want to use
>the dip switches for user interface (to decide which effect). But we
>are having trouble coding the interface part. Can anyone give us an
>idea about how we should go about coding of the switch functions? Any
>tutorial or help that can tell us how to code dip switch interface?
>
>
From: PVN on
On May 5, 11:41 am, "aaac111" <aaac...(a)gmail.com> wrote:
> hi,
>
> If your question is:
> "Can anyone give us an
>
> >idea about how we should go about coding of the switch functions?"
>
> Coding of the switch functions, are you using CCS for your C6713 dsp? i
> have not worked on the 6713dsk, but if you have managed the hardware part
> which i suppose, would be using the gpio pins in the c6713? writing code
> for the gpio pins is not difficult as there are a lot of APIs which can be
> used straightaway in you c code...
>
> aps
>
> >Hey , we are a group of 4 ec students working on a project which deals
> >with creating delay based music effects using dsk 6713. We want to use
> >the dip switches for user interface (to decide which effect). But we
> >are having trouble coding the interface part. Can anyone give us an
> >idea about how we should go about coding of the switch functions? Any
> >tutorial or help that can tell us how to code dip switch interface?

well, where can we get those APIs? :)
From: chris on
The switches and LEDs are mapped through the CPLD. The CPLD is at
address 0x90080000. The CPLD is defined with 4 - 8 bit registers at
offset 0,1,4, and 6. The 0 offset register has the bits for the LED
and switches, the LEDs are the 4 lsb bits and the switches are the 4
msb bits.

Also there is a library with a bunch or hardware interface functions
(either installed with CCS or Spectrum Digital software).
DSK6713_DIP_get(switch_num)
DSK6713_LED_on(led_num)
DSK6713_LED_off(led_num)

Believe these functions are available in the dsk6713bsl.lib,