View Full Version : New User Questions
JohnP
05-15-2008, 01:28 AM
Just getting started with Propeller on the Demo board and have a couple
of questions:
1. The very first demo program, Output.spin, works fine, for
pins 16 or 17. Changing the pin number to 18, for instance,
causes to LEDs to blink. Explanation ?
2. Does anyone have timing information for the math functions,
i.e. number of cycles, just roughly.
Thanks,
John-
JohnP
05-15-2008, 01:39 AM
Sorry, I solved the first question - you know how
it is with new users (enthusiastic but clueless).
John-
stevenmess2004
05-15-2008, 06:23 AM
Which math functions, assembler or spin? The number of cycles for all the assembler instructions are in the data sheet and manual (all 4 cycles). The spin instructions are around 40 to 100 times slower. If you want to find out do something like this
PUB test(num1,num2):temp1,temp2,temp3
temp1:=cnt
temp3:=num1+num2
temp2:=cnt
return temp2-temp1
Something to be careful of is that this will take different amounts of time depending on where the variables are.
JohnP
05-15-2008, 08:17 AM
Thanks for the reply.
I saw the assembler cycles; should have mentioned
I was curious about the Spin cycles.
I have tested in the way you suggest in other languages, however,
I'm just getting started with Spin and I'm not an adept programmer
in any language.
Thanks,
John-
Cluso99
05-15-2008, 09:22 AM
Try the VGA Demo - it's magic http://forums.parallax.com/images/smilies/cool.gif
Ken Peterson
05-16-2008, 12:12 AM
speaking of spin cycles....has anyone made a propeller based washing machine?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
tpw_man
05-16-2008, 01:27 AM
@Ken Peterson
LOL, but I do not think so.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com (http://www.mibbit.com)
http://forums.parallax.com/images/smilies/tongue.gif
Oldbitcollector (Jeff)
05-16-2008, 02:11 AM
Ken Peterson said...
speaking of spin cycles....has anyone made a propeller based washing machine?
Oh no! I'm not going there.. Then I've have one more task to do before I can play with the Propeller. :) :)
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4 (http://ucontroller.com/Propeller%20Protoboard%20Designs%20for%20the%20Beg inner.pdf)
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us (http://propeller.warrantyvoid.us)
Got an SD card? - PropDOS (http://www.orrtech.net/propdos/)
Need a part? Got spare electronics? - The Electronics Exchange (http://warrantyvoid.us/exchange/)