Toggling I/O pins at high frequency
analog2003
Posts: 4
Hello
I am using the Propeller chip for the very first time. I am stuck with something, and hoping someone out there has some suggestions on how to go about it.
I am using this controller to generate periodic 50% duty-cycle switching signals. The clock is at 80MHz and used the "waitcnt" command (format: waitcnt(offset + cnt)) to toggle the desired outputs. The documentation says that the min offset is 381 and I also got from one of the help spin files that the shortest pause time with a 80MHz clock is about 54usec.
Now, my question is, is it possible by any other method to obtain the switching at higher frequency? I am aiming for frequencies around 1MHz.
Thanks in advance.
I am using the Propeller chip for the very first time. I am stuck with something, and hoping someone out there has some suggestions on how to go about it.
I am using this controller to generate periodic 50% duty-cycle switching signals. The clock is at 80MHz and used the "waitcnt" command (format: waitcnt(offset + cnt)) to toggle the desired outputs. The documentation says that the min offset is 381 and I also got from one of the help spin files that the shortest pause time with a 80MHz clock is about 54usec.
Now, my question is, is it possible by any other method to obtain the switching at higher frequency? I am aiming for frequencies around 1MHz.
Thanks in advance.
Comments
Thanks again for your help.
You really need to describe your needs in more detail. It's difficult to advise you without more information.
And just sticking to Spin?
1) Frequency or repetition rate of signal, range of this if variable.
2) Relationship of one set of 4 I/O states to another. Are you trying to produce waveforms? Stepper motor drive signals?