Skip to main content
Visitor II
April 3, 2007
Question

Serial TX on a pin required

  • April 3, 2007
  • 5 replies
  • 890 views
Posted on April 03, 2007 at 08:34

Serial TX on a pin required

    This topic has been closed for replies.

    5 replies

    brian4Author
    Visitor II
    April 2, 2007
    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

    Visitor II
    April 2, 2007
    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)

    brian4Author
    Visitor II
    April 2, 2007
    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?

    Visitor II
    April 3, 2007
    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

    brian4Author
    Visitor II
    April 3, 2007
    Posted on April 03, 2007 at 08:34

    Thanks, I will have a look