Pathetic Propeller Program Please!
Vaati
Posts: 712
I need a small pathetic program to ensure that my propeller works.· I looked in the obex but all of those are too complex for a simple test.· I have no clue how to use the prop either; I keep on typing in commands like "HIGH 2, DEBUG CLS" because I've used the BS2 for so long!· ··Also, could someone explain the differences/similarities of ASM, Spin, and whatever else the prop can be programmed with.
Thanks.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Thanks.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Comments
Var
long Index
Pub Blink
Dira[noparse][[/noparse]0..32]~~
Repeat 2
Repeat Index from 0 to 32
!Outa[noparse][[/noparse]Index]
waitcnt(clkfreq/2 + cnt)
This program will turn all of the pins on one by one waiting a half second in between, then turn them off the same way.(on a working propeller [noparse];)[/noparse]
I also have a prop chip that will run this, but will not run any video programs, so try running one of those too. [noparse]:)[/noparse]
.:ProccessingData...:.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Basic Stamp,···· Propeller,·· · SX,·· FUN!
START:·
>Proccessing Data. . . .··
>Task Complete. . .·.
>Saving Data. . . .
>Entering SLEEP Mode. . . .
>Signing OFF
·
@ProcessingData... So do you have a simple prop hookup for a video program...? I just want simple programs so I can actually learn SPIN instead of copying and pasting bits of other people's code without understanding any of it...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
[noparse][[/noparse]edit: Load to ram or eeprom. ram is erased after the program runs, so it will only run once. If you load to EEPROM, the chip will run it again if you push the reset button. The basic stamp always loads to eeprom, the propeller gives you the option. ]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Basic Stamp,···· Propeller,·· · SX,·· FUN!
START:·
>Proccessing Data. . . .··
>Task Complete. . .·.
>Saving Data. . . .
>Entering SLEEP Mode. . . .
>Signing OFF
·
Generally, when you develop, you load your program to RAM, test, and revise. When you're done, load to eeprom. If you've setup the video DAC on the boss board, just load the TV graphics demo (it's one of the demo files in the prop tool).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Gadget Gangster - Share your Electronic Projects - Sign up as a Designer and get a free 4-pack of Project Boards!
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
The program posted by ProcessingData wont work as is, since the formatting was lost in posting.· The Propeller Tool uses indenting to denote program blocks for things like repeat loops.· The code should look more like this:
I don't have a prop in front of me, but that looks like it should work.· [noparse]:)[/noparse]
You can run it either from RAM or from EEPROM.· Compiling to EEPROM means it'll still be there after you power the Prop off and back on again.· Compiling to RAM means it'll only be there until you lose power.
Jason
·
Attached are some images - showing the required connections for VGA and TV .... as per demo board ..··but like the others have said - start with the simple examples and work up from there ..
Regards,
John Twomey
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Those who can, do.Those who can’t, teach.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Gadget Gangster - Share your Electronic Projects - Sign up as a Designer and get a free 4-pack of Project Boards!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Post Edited (Vaati) : 5/7/2009 7:49:28 PM GMT
Can you add your program as an attachment to the forum thread..
Regards,
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Those who can, do.Those who can’t, teach.
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
That's fine.. However you may want to repeat aq test for longer to ensure all is well ..
try this ..
Connect to 'P0' ensure correct LED orientation and appropriate resistor in series ..
EDIT: Vaati - please NoteThis will only toggle 'P0' !
Regards,
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Those who can, do.Those who can’t, teach.
Post Edited (QuattroRS4) : 5/7/2009 10:47:32 PM GMT
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Vaati - this assumes that you have a 5MHz crystal on your board ..
Regards,
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Those who can, do.Those who can’t, teach.
Post Edited (QuattroRS4) : 5/7/2009 8:23:39 PM GMT
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
······· You are 'moving on' too quickly .. there are loads of examples included with the IDE .. you will have to work through them .. It doesn't happen overnight ..
I have attached a spin something that gives you tv text and sound ! ...enjoy
Regards,
············ John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Those who can, do.Those who can’t, teach.
Thanks again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
I detect a bit of excitement - when you see results ! .. believe me we all felt that way .. but it would help to get a better understanding of the basics first.. Lots of people have great apps written .. SDCard,I2C,Graphics and Wav players etc.. All in good time .. enjoy..
Regards,
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Those who can, do.Those who can’t, teach.
Take your time to enjoy the journey.. I've been here nearly 3 years
with this thing.. I'm still learning new and cool things all the time!
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.