Shop OBEX P1 Docs P2 Docs Learn Events
CounterModule(PLL) — Parallax Forums

CounterModule(PLL)

caskazcaskaz Posts: 957
edited 2009-08-23 17:01 in Propeller 1
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?

Comments

  • Gerry KeelyGerry Keely Posts: 75
    edited 2009-08-23 11:57
    Hi

    Try dira[noparse][[/noparse]4]~~



    Gerry
  • caskazcaskaz Posts: 957
    edited 2009-08-23 14:17
    Sorry.
    "dira~~" was my paste-miss.

    Actual program is "dira~~.

    And Output of P4 is 250Hz-squarewave.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-08-23 17:01
    caskaz,

    [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
Sign In or Register to comment.