DSPRelated.com
Forums

GPIO module on TMS320vc5510 DSK

Started by Ang Teik Boon December 29, 2006
Hi, I am Ang Teik Boon from University Teknologi Malaysia

I am currently doing my final year project using dsp starter kit,
so i plan to send a signal from the microcontroller to the dsp board through GPIO module.Thus does any body know how to use GPIO module in the csl library on tms320vc5510DSK board
.
what i want to your help is very simple

i just want to know how to configure a GPIO pin as input pin and read the value from the input pin.i am confusing with the data transfer.
because i am doubt with the read16 function use to read the IODATA value.
but somehow does it involve DMA module or CPU module?thanks.

can someone please provide me the example coding that is working.
Ang Teik Boon-

> Hi, I am Ang Teik Boon from University Teknologi Malaysia
>
> I am currently doing my final year project using dsp starter kit,
> so i plan to send a signal from the microcontroller to the dsp board
> through GPIO module.Thus does any body know how to use GPIO module in
> the csl library on tms320vc5510DSK board
> .
> what i want to your help is very simple
>
> i just want to know how to configure a GPIO pin as input pin and read
> the value from the input pin.i am confusing with the data transfer.
> because i am doubt with the read16 function use to read the IODATA
> value.
> but somehow does it involve DMA module or CPU module?thanks.

Basically you have to do 2 things:

-define each pin as either in or out

-for output pin(s), set the value(s) you want

To get GPIO working you should avoid DMA or other modules besides GPIO. You can read
the input pins by polling every so many msec -- maybe a 1 msec DSP/BIOS periodic task
is a clean way. If you need "fast response" (less than 1 usec) to the
microcontroller signal, then you should use an external interrupt (EINTn), not GPIO.
You can also set up a DSP/BIOS task to respond to an external interrupt.

Combining DMA with GPIO would only occur in a very advanced application, and you
would need some way to know when values changed in order to trigger DMA -- you have
not yet reached that point.

-Jeff
Shanthi-
> i am using TMS320VC5502 processor for developing AWG module.I am
> interfacing AT25F512 SPI device to the processor through
> MCBSP0(DX0,DR0).i am using serial EEPROM Boot mode configuration for
> hardware interfacing between DSP and AT25F512.i would like to know
> whether the above interfacing will work........since my project is under
> Harware design i need the solution as soon as possible.i kindly request u
> to send me the solution for above problem..............
>
Yes it should work fine since 5502 bootloader has serial port option.

I don't know of any specific application code or 'solution' for serial port boot. Of
course you have to generate the .hex file using hex55.exe and make sure you have
correct settings for boot table, entry point, etc -- I assume you've done that.

It should be easy to debug -- you can single-step through the bootloader code and see
what's it doing. First did the 5502 recognize and initiate serial port boot, second
does the Atmel EEPROM respond correctly if you watch its signals on dig scope, third
is the first word read by the DSP correct (bit order, not shifted, etc), and so on...

You just need to do the work.

-Jeff