Forums

Digital I/O DSK 6713

Started by Nuwan Perera December 23, 2009
Dear all,

I am using TI TMS320C6713 DSK to implement a control algorithm. I want tosend out a digital signal (just a 1 or 0) using "TOUT1" I/O (pin 49 of J3: Peripherial Expansion Connector). I would be thankful ifsomeone can help me give some directions how to do this.

Thank you

Nuwan
Perera,

You will need to know which GPIO bit is connected to pin 49 of J3.

In general...
The pin must be configured before it can be used.

This means
--set as output -- a bit in a GPIO data direction register
--set the desired GPIO pin rise/fall delay time -- bits in a GPIO config register
--set the desired GPIO pin pull-up resister -- bit in a GPIO config register
--set the desired GPIO pin to GPIO -- 2 bits in a GPIO config register
--set the initial value -- a bit in a GPIO data output register. (see below for details)

Due to the number of GPIO bits, it takes more than one 32 bit register for the GPIO data direction registers, GPIO data registers, GPIO set-to-1 registers, GPIO clear-to-0 registers, and several registers for the GPIO config registers. You just need to work with the small set of registers that are related to the specific GPIO bit.

If the c6x family is like the c2800 family there will be dedicated registers for GPIO SET-to-1 and CLEAR-to-0 operations.
In those registers, writing a bit to 1 only changes that one bit and writing a bit to 0 has no effect.

Hope this helps.

R. Williams

---------- Original Message -----------
From: Nuwan Perera
To: c...
Sent: Tue, 22 Dec 2009 17:13:35 -0800 (PST)
Subject: [c6x] Digital I/O DSK 6713

>

> Dear all,
>
> I am using TI TMS320C6713 DSK to implement a control algorithm. I want tosend out a digital signal (just a 1 or 0) using "TOUT1" I/O (pin 49 of J3: Peripherial Expansion Connector). I would be thankful ifsomeone can help me give some directions how to do this.
>
> Thank you
>
> Nuwan
>

------- End of Original Message -------