cancel
Showing results for 
Search instead for 
Did you mean: 

Serial TX on a pin required

brian4
Associate II
Posted on April 03, 2007 at 08:34

Serial TX on a pin required

5 REPLIES 5
brian4
Associate II
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 II
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
Associate II
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 II
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
Associate II
Posted on April 03, 2007 at 08:34

Thanks, I will have a look