5 Mhz or 10 Mhz Output Expected?
grahamreitz
Posts: 56
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
PUB Main
coginit(0, @main_entry, 3)
DAT
org 0
main_entry mov dira, pin
:loop xor outa, pin
jmp #:loop
pin long |< 3
I am measuring 5Mhz on the scope (200 Mhz Tektronix) with the prop demo board. I don't always have access to a scope and was guessing the output would be 10 Mhz.
[noparse][[/noparse](4 cycles @ 80 Mhz) per instruction] * 2 instructions (xor and jmp) = 10 Mhz?
Thanks,
graham

Comments
The pin will TOGGLE at 10MHz which will give you a frequency of 5MHz.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
·
Ha! Thanks!
-Phil
-Phil
Post Edited (tonyp12) : 3/1/2010 2:20:56 AM GMT
thanks guys