Shop OBEX P1 Docs P2 Docs Learn Events
Streamer and hub RAM FIFO question — Parallax Forums

Streamer and hub RAM FIFO question

As read in the docs the hub RAM interface has a FIFO that can be used only for one purpose at a time. So if I'd like to make an object which doesn't launch it's own cog but can be called from any spin function then the FIFO is already used up by instruction fetching. So I can't use the streamer (in RDFAST/WRFAST mode) to transfer data from a smartpin to hub ram or vice versa. However, I could use the streamer in immediate mode to output a bit pattern up to 32 bits at a time and use RDLONG in a loop.

Is this assumption correct? (I'm using FlexGui with fastspin and inline assembly at the moment. Interpreted Spin2 would probably be different as the interpreter runs in a cog and the FIFO is free)

Comments

  • cgraceycgracey Posts: 14,133
    edited 2020-01-20 13:45
    Right. The streamer can be used, in the case where it's not being used for instruction fetching, for any mode that doesn't engage the FIFO with RFxxxx/WFxxxx instructions. Those would be the immediate modes and the DDS/Goertzel modes.
Sign In or Register to comment.