Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).
How hard is it to use an McBSP as an RS-232 serial port? I understand I would need a level converter, but how complicated is the software to write? Is there any free code from TI which will do this? -Mike
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 bsd_mike wrote: > How hard is it to use an McBSP as an RS-232 serial port? > > I understand I would need a level converter, but how complicated > is the software to write? > > Is there any free code from TI which will do this? > http://focus.ti.com/docs/apps/catalog/resources/appnoteabstract.jhtml?abstractName=spra661a That seems to be the one to look at. Brian - -- - ---[Office 70.8F]--[Fridge 35.8F]---[Server 84.4F]--[Coaster 70.8F]--- Linux Software Developer http://www.brianlane.com Embedded Developer http://www.linuxmicros.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Remember Lexington Green! iD8DBQFErG5aIftj/pcSws0RAkZUAJwNgPCxVhqP+euWSWVdsbyswBJaUQCfXdcd jUYaqH4cyq8ah9LqxzX+Mlo= =Otop -----END PGP SIGNATURE-----
I think there is a technical note illustrating use of McBSP as a software UART. May be it
would help you.
-Ganesh
bsd_mike <b...@yahoo.com> wrote:
How hard is it to use an McBSP as an RS-232 serial port?
I understand I would need a level converter, but how complicated
is the software to write?
Is there any free code from TI which will do this?
-Mike
---------------------------------
Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 bsd_mike wrote: > How hard is it to use an McBSP as an RS-232 serial port? > > I understand I would need a level converter, but how complicated > is the software to write? > > Is there any free code from TI which will do this? I skimmed the app note and it looks like an interesting way to add ASYNC to the DSP. The biggest problem I would have with it is that you are going to be interrupting the processor on each received byte which may introduce more overhead than you want. They are using DMA to transfer BAUDx16 oversampled data into a buffer for parsing into a single byte so you will have an interrupt at BAUD rate, and some overhead in processing the buffer and storing it somewhere. Brian - -- - ---[Office 70.7F]--[Fridge 37.2F]---[Server 84.4F]--[Coaster 70.7F]--- Linux Software Developer http://www.brianlane.com Embedded Developer http://www.linuxmicros.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Remember Lexington Green! iD8DBQFErSQbIftj/pcSws0RAjmmAJwOps8fTomjiQCHTMXv4j/LQgSE8QCgh1Sh 5M87c+wK8w52WrViRgdxH+Y= =rhfV -----END PGP SIGNATURE-----