Multi Cog Fifo

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: 2013-03-28 | updated: 2013-03-28

This is a spimple fifo, it is multi cog able.

Only one cog can read at the same time! The same for writing.  If two cogs will try to write at the same time data will be loss! The same problem with reading!  While a cog is reading an other one can write. You have to give this fifo a byte array with any size between 9 and 65535 bytes. With 9 bytes you will have 1 byte for data, this seems not to be very usefull :P
Important update in version 0.2:
The init function was splitted in InitNew and InitExisting. So InitNew will be called once, InitExisting can be called a lot of times.
Version 0.1
The Init function will reset the fifo, in version 0.2 it's possible to "jump in" the fifo, also if it's alreading in use!
Original File Upload
Binary Data Fifo.spin2.75 KB