Push button
Dinoden
Posts: 19
Hi.
I have done a lot of pic programming and want to try the Propeller. I have done a lot of reading on the Propeller but have a simple test I seem to have problems with. I would like to try to press a button and have a led turn on when the button is high, and turn off when the button is low. Does not have to latch. I just want to become familiar with the first step for me. I wrote a program that the Propeller accepts with out errors but it does not work. I have done a few programs on blinking Leds, running two cogs etc. but now I want to try some external input. Any help would be appriciated.
I have done a lot of pic programming and want to try the Propeller. I have done a lot of reading on the Propeller but have a simple test I seem to have problems with. I would like to try to press a button and have a led turn on when the button is high, and turn off when the button is low. Does not have to latch. I just want to become familiar with the first step for me. I wrote a program that the Propeller accepts with out errors but it does not work. I have done a few programs on blinking Leds, running two cogs etc. but now I want to try some external input. Any help would be appriciated.
Comments
If you have questions you should be more specific. What programming language are we talking about?
SPIN? PASM? C?
You do an assignment and not a comparison. := assign, == compare
And you don't need the temp variable at all.
Sorry I was talking SPIN language.
What is the Education LAB? I only have the Propeller chip. I build all the circuit boards my self for downloading (USB to serial, pcb's for testing etc.) All my resources come from the internet and the programming manual that I downloaded.
Thanks
The PE LABs manual is in the help menu of the Propeller Tool I think, or as a download from Parallax support for the Propeller. It's a series of tutorials on the Propeller and the basics of coding for it and controlling I/O. Based around a breadboarded Propeller DIP.
(_clkmode = xtal2 + pll8x '80MHz (10MHz x 8)
_xinfreq = 10_000_000 )
You could still use XTAL1 with 10MHZ i believe.
http://www.parallax.com/tabid/442/Default.aspx
is where you would find Propeller Education Kit Labs. A must read!
Jim
I will try this as soon as I get home.