Txx - Fast Serial Transmitter for PASM and Spin

Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: created: 2018-01-22 | updated: 2018-01-26

The TXX module is a fast (up to 8 megabits per second) RS-232 (TTL) compatible serial output generator that was written to be used from PASM as well as Spin. It only transmits, it doesn't receive and it doesn't do flow control.

It's controlled by a single command longword, which tells the PASM code where to read data, how much to read, how to interpret the data and how to output the data.

Unlike other serial communications modules available here on OBEX and elsewhere, all processing is done in PASM, not in Spin. That means that it's easy for PASM code to use the serial output too, and not just to send single characters or buffers, but also to generate unsigned or signed decimal, hexadecimal or binary numbers. The module also has a hex dump mode that generates a convenient dump of any hub memory area, which should be useful for debugging.

This was originally based on "tx.spin" by Barry Meaker (http://obex.parallax.com/object/619) but there's probably no recognizable code from that module visible anymore. Nevertheless, thanks Barry!

Original File Upload
Package icon txx.zip17.47 KB