Skip to main content
brian4
Associate III
Apr 3, 2007 6:34 AM UTC
Question

Serial TX on a pin required

Posted on April 03, 2007 at 08:34

Serial TX on a pin required

This topic has been closed for replies.

5 replies

brian4
brian4Author
Associate III
Apr 2, 2007 10:07 AM UTC
Posted on April 02, 2007 at 12:07

Hi

Looking for some Assembly code for an ST7 29 Lite to transmit a few ASCII characters out an a single pin at 2400 Baud.

I have looked at the one in the application notes but that ones enables and disables the interrupts, I would like to keep the interrupts going as I have some timing routines going that are called every 2mS

I don’t mind generating an interrupt but I don’t want to disable them.

Any pointers would be helpful.

Re Brian

fggnrc
Associate III
Apr 2, 2007 11:05 AM UTC
Posted on April 02, 2007 at 13:05

Brian,

have a look at Application Note 1753 (http://www.st.com/stonline/books/pdf/docs/9986.pdf)

brian4
brian4Author
Associate III
Apr 2, 2007 11:18 AM UTC
Posted on April 02, 2007 at 13:18

Hi

I Have looked at this app but this is the code that turns the interrupt on and then off (RIM SIM).

Looking for an alternative?

fggnrc
Associate III
Apr 3, 2007 6:00 AM UTC
Posted on April 03, 2007 at 08:00

Brian, some time ago I posted in this forum (see message: ''I must reload IMMEDIATELY LTCSR2: can I?'') the code for a software UART that sends and receives characters at 9600 baud in half-duplex style.

Even if this code is somewhat outdated (I made some improvements), I think it is a base to start from.

Regards

EtaPhi

brian4
brian4Author
Associate III
Apr 3, 2007 6:34 AM UTC
Posted on April 03, 2007 at 08:34

Thanks, I will have a look