Shop OBEX P1 Docs P2 Docs Learn Events
UART? — Parallax Forums

UART?

ArchiverArchiver Posts: 46,084
edited 2000-05-19 23:39 in General Discussion
I need to interface a BS2-SX with a chip that requires a UART
interface. Does anybody know if the BS2-SX can emulate a UART (like
a 16550) ?
Code overhead is an issue but if basic functions can be accomplished
I would prefer to use one less chip.
Thanks
Eric [noparse]:)[/noparse][noparse]:)[/noparse][noparse];)[/noparse]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-05-19 23:39
    At 02:40 PM 5/19/00 +0000, hackenheimer@y... promulgated:
    >I need to interface a BS2-SX with a chip that requires a UART
    >interface. Does anybody know if the BS2-SX can emulate a UART (like
    >a 16550) ?
    >Code overhead is an issue but if basic functions can be accomplished
    >I would prefer to use one less chip.
    >Thanks
    >Eric [noparse]:)[/noparse][noparse]:)[/noparse][noparse];)[/noparse]

    Eric -

    The answer is YES - BUT:

    You would LACK the following in whole or part:

    Real-time interrupts/interruptability

    Full functionality

    Parallel mode data_bit processing

    Stamp 2SX 16550
    Full speed range potential (305.2<-->115.2 vs 50-128K Baud)

    Full STOP BIT cability (7/8 bit vs 5,6,7,8 bit)

    Full PARITY (EVEN/NONE vs. EVEN/ODD/NONE)


    Notes:

    Hardware programmable, or driven by a Processor
    (PC, Embedded, standalone Atmel/PIC/,etc)

    Other platforms have built-in UARTS; including the Microchip PIC

    Other BASIC compilers/interpreters/translators are available,
    if BASIC is your language of choice

    You would GAIN:

    Some flexibility (although much is programmable via the 16x50
    registers)

    Full reasonable speed BAUD range (as above)

    NOT having to use QFP packaging

    A sense of accomplishment

    Undying gratitude from many who have intended to attempt this

    Many have opted to use other processors, and some use the combination of a
    PIC microprocessor, and the MEL PIC Basic software [noparse][[/noparse] www.melabs.com ].
    This softwar is available in two versions, one which supports the Parallax
    STAMP PBASIC I syntax, and one which support the Parallax STAMP PBASIC II
    syntax. The MEL PIC Basic compiler can purchased from a number of different
    vendors. I purchased mine from Chuck Hellebuyck (chuck@e...) at
    ELProducts [noparse][[/noparse] www.elproducts.com ] at a substantially reduced price. I
    believe it can also be order in Candada through Mark Hillier at HVWTech
    <Mark@H...> [noparse][[/noparse] www.hvwtech.com ].

    The MEL software is NOT freeware or shareware, although there are some
    shareware/trialware products available for various Stamp platforms. Other
    BASIC translators exist such a SBASIC by Steve Lundt. See the StampFAQ [noparse][[/noparse]
    http://www.al-williams.com/wd5gnr/stampfaq.htm ] for more details.

    Thanks again to Al Williams [noparse][[/noparse] www.al-williams.com/ ] for all of his support !

    Note:

    Although the MAX31xx looks like an interesting serial UART, I have yet to
    be able to make it work with a Stamp. Use with a PIC microprocessors s/b
    easy, but since most PICs can bit-bang a UART in software, and many have a
    built-in UART, the use of that series of chips is limited. My own view is
    they are best suited for native-mode SPI use. YMMV on that.

    Regards,

    Bruce

    Trademarks property of holders, and as appropriate.
Sign In or Register to comment.