Am trying to get a program running from the book "programming and customizing the multicore propeller micro."
The program is on page 140 " Test Sample RCTIME.spin ".
Here be code.
'' Test Simple RCTIME.spin
_clkfreq = xtal1 + pll16x
_xinfreq = 5_000_000
rc : "RCTime"
pst : "Parallax Serial Terminal"
PUB Go | tDecay
waitcnt(clkfreq/10 + cnt)
rc.time(18, 1, @tDecay)
pst.Str(String(pst#CE, pst#HM, "tDecay = "))
When I run the program I get a " Expected a subroutine name?"
Then it highlights " rc.time(18, 1, @tDecay)
I tried to fix it but me not so smart!!!! Thank you for any help that anyone can give. 13 feb 2019(wen).