Shop OBEX P1 Docs P2 Docs Learn Events
Propeller maximum I/O speeds? — Parallax Forums

Propeller maximum I/O speeds?

phil11phil11 Posts: 3
edited 2009-01-21 00:16 in Propeller 1
Taking advantage of the PLLX16 feature, is it possible to send a square wave in the 20 MHz range as an output? If so, would the program have to be written in assembly? Using a fairly simple Spin program, I don't get a signal if I try to send something at a speed·faster than 400 clock cycles (around 50KHz) using "XTAL1 + pll16x". I need a high speed signal to control a TLC5947 LED Driver.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-01-21 00:16
    If you want to generate a square wave, you can do that up to about 160MHz in Spin by using the "cog counters".· Download the application note on this (AN001) from the Propeller downloads page.· It includes some documentation and sample code for generating a square wave at different frequencies.

    If you want to "do something" more complex at high speed, you can do it in Spin up to about 20KHz, but you'll need assembly for higher frequencies.· For example, the Propeller can do asynchronous serial half duplex I/O at 19KBaud with one cog in Spin and full duplex in assembly up to around 230KBaud.
Sign In or Register to comment.