CounterModule(PLL)
caskaz
Posts: 957
Hi!
I learn CounterModule reading "Propeller Education Kit Labs ver1.1".
I have question about PLL-mode.
Operating example on page168
CON
_clkmode = xtal + pll16x
_xinfreq = 5_000_000
PUB
ctra[noparse][[/noparse]30..26] := %00010
frqa := 322_122_547
ctra[noparse][[/noparse]25..23] := 2
ctra[noparse][[/noparse]5..0] := 4
dira~~
repeat
Output of P4 is 250Hz-squarewave.
Calculation is 3MHz.
What's wrong?
I learn CounterModule reading "Propeller Education Kit Labs ver1.1".
I have question about PLL-mode.
Operating example on page168
CON
_clkmode = xtal + pll16x
_xinfreq = 5_000_000
PUB
ctra[noparse][[/noparse]30..26] := %00010
frqa := 322_122_547
ctra[noparse][[/noparse]25..23] := 2
ctra[noparse][[/noparse]5..0] := 4
dira~~
repeat
Output of P4 is 250Hz-squarewave.
Calculation is 3MHz.
What's wrong?
Comments
Try dira[noparse][[/noparse]4]~~
Gerry
"dira~~" was my paste-miss.
Actual program is "dira~~.
And Output of P4 is 250Hz-squarewave.
[noparse][[/noparse]4] is a forum font-size directive. That's why it doesn't show up here and why your text gets bigger. Copy and paste your code here, www.phipi.com/format, to render it into something that displays properly.
-Phil