Shop OBEX P1 Docs P2 Docs Learn Events
Internal Frequency generator — Parallax Forums

Internal Frequency generator

agimuhingagimuhing Posts: 39
edited 2011-01-05 19:27 in Propeller 1
Is there any way to get frequency generator to output into the propeller and not through a pin?

I'm making a serial non-return-to-zero-inverted (NRZI) object and I need a way to define the data rate

My current solution is to have a frequency generator object output to a pin and then connect that pin to an adjacent pin set to input that the serial NRZI object uses

I'm wondering about the speed of the hub and what's the highest frequency I can send through it

My propeller runs at 80 MHz, but I can overclock it if necessary

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-01-05 19:27
    If you use one of the counter modes that outputs to an I/O pin, you can reference that same I/O pin from the same or another cog and use it to trigger a WAITPNE or WAITPEQ instruction. In other words, any output pin can be read as an input and the value of that input is the same as the output pin state.

    You can use a variety of techniques to implement NRZI. Remember that the Propeller is deterministic and you can calculate the time required to execute any sequence of instructions and use that for timing. You may find that using WAITCNT may be simpler.

    What do you mean by "highest frequency I can send through it" (the hub)? The hub is mostly a synchronizing mechanism for shared memory access, allowing one memory access every 16 clock cycles.
Sign In or Register to comment.