Forums

TI TMS320F28112 SCI driver

Started by Unknown May 15, 2006
I'm in the process of coming up to speed on the TMS320F2812. We have
the Spectrum Digital eZdsp evaluation board along with Code Composer
Studio 3.1.23. I'm using the XDS510 USB interface to talk to the eval.
board. I've developed other DSP based embedded control systems but not
with the TI tools and processors.

My question: Where can I find example code for an SCI serial driver?

More details: I have located and run the examples provided by TI in
SPRC097.ZIP. Example_281xSci_FFDLB_int.c demonstrates using the SCI
under interrupt control. This example is good as far as it goes and the
header files do a good job of providing a hardware abstraction layer.
What I need is interrupt driven code with SCI open and close functions.
Along with read a write character functions. It needs to be interrupt
driven with software buffers and error checking/handling etc.

As far as I can tell an SCI driver is not part of DSP/BIOS. We are
considering using DSP/BIOS so it would be nice to have a driver that
would operate in that environment.

Any insight you can provide will be much appreciated. 

Thanks,
 Kirk

mx400@cox.net wrote:
> I'm in the process of coming up to speed on the TMS320F2812. We have > the Spectrum Digital eZdsp evaluation board along with Code Composer > Studio 3.1.23. I'm using the XDS510 USB interface to talk to the eval. > board. I've developed other DSP based embedded control systems but not > with the TI tools and processors. > > My question: Where can I find example code for an SCI serial driver?
Look on the Ti C2000 discussion group (www.ti.com). Earlier this year, I was having trouble with the SCI interface on the F2812. In response, a Lori Heustus (I think) posted some sample code that worked quite reliably. If memory serves, it was interrupt based. You will probably have to go back some months, but a keyword search should provide some quick results.
> As far as I can tell an SCI driver is not part of DSP/BIOS. We are > considering using DSP/BIOS so it would be nice to have a driver that > would operate in that environment.
The SCI is not integrated into the BIOS. You will need to write your own handler, a HWI, SWI, or task look, etc. Then using the BIOS configuration, point the PIE interrupts for the sci modules that you are using to your handlers. Your tasks will then be processed according to the priortiy levels you select. I would suggest that the SCI handler be a HWI at the top level and from there you can either unblock a task or execute a software interrupt.
> Any insight you can provide will be much appreciated. > > Thanks, > Kirk
I did find the code you mentioned.  It's part of Spectrum Digital's
sdflash code.  The SCI module looks fairly complete.  I'm in the
process of looking it over now.
I was about to dig in and write my own, but being new to the TI tools I
figured maybe I missed something and I didn't want to do a bunch of
unnecessary work.
I'm somewhat surprised TI doesn't take their examples a little farther.
 Maybe too many different special cases for too many customers makes it
difficult.??

Thanks for your input