Propeller User needs SX Help
I've been using the propeller for about 8 months now and love it. I'd like to use it for everything under the sun, but sometimes a simple task isn't worth the price tag of the propeller. I came across the SX today and at it's price, it seems very usable for small simple tasks.
What kind of things is this chip capable of? What all do I need to get started? Is Assembly the only language this chip can understand? I'm totally new to this chip and would like to be able to use it as well, so any beginner info would be great. Thanks guys!
What kind of things is this chip capable of? What all do I need to get started? Is Assembly the only language this chip can understand? I'm totally new to this chip and would like to be able to use it as well, so any beginner info would be great. Thanks guys!
Comments
http://www.parallax.com/Store/Microcontrollers/SXProgrammingKits/tabid/140/ProductID/364/List/1/Default.aspx?SortField=ProductName,ProductName
They also sell Proto boards, which can be used for final projects for the SX28 or starting project for the SX48. The SX48 has more I/O pins and RAM and program space than the SX28 but the SX28 is in an easier to use DIP chip for solderless breadboard work that the SX48 is not. And the proto boards are very low cost too - just need that power supply (and the SX-Key·or Blitz). Keep in mind that solderless breadboard developent kits such as the PDB or SX Tech Board·offer more flexibility than the·low cost "solderable" proto boards - unless you like to solder and unsolder a lot.
Check out the SX section on the Parallax website.
However, I've become spoiled with the 8 cores on the propeller. Can the SX output a continuous PWM signal, while updating a small 16x2 LCD screen at the same time? If so, I will go with this chip. Thanks Tim.
Also if you want to design something to have quantities to sell or give out to others, you can't beat the SX chip cost! I used to design with a BASIC STAMP 2 because it is the easiest, then convert each section over to SX/B manually. Yes you have to have an SX-Key or Blitz - but that's a 1 time investment as compared to the BASIC STAMP 2. Don't get me wrong, the BS2 is an excellent and easy to use micro-controller but the SX chips open up more door with just a little more of a learning curve.
Good luck!
But this data CANNOT be changed after the device is programmed.
If you need to store non-volitile data, you will need to add an external EEPROM.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
www.iElectronicDesigns.com
·
Depending on the project you may not even need that much. The internal 4MHZ oscillator is quite satisfactory for many projects (if you don't have very tight timing needs like serial comms). That leaves you needing just the SX, a 10K resistor for MCLR and a .1 cap on the power rails. Even the regulator may or may not be necessary depending on supply (e.g. 2 AA with BOR26 setting).
The SX can do a lot more than a few simple tasks at once. Mostly it's a matter of need and approach.
Personally, I prefer it to the Prop (though the Prop is awesome for a lot of apps) because it's cheap, it doesn't require external memory and it has a nearly instantaneous startup cycle (nanoseconds depending on the scope of the reset code).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
here is an example for what I'm doing with just one SX28 clocked at 50MHz:
- Generating constant period PWM output for three H-bridge motor drivers with soft-start ramps
- Handling I2C slave communications for receiving commands, and sending status data
- Reading tacho pulses from three motors, and keeping track of the motor positions
- Constantly comparing current motor positions against target positions in order to stop a motor when at target
- Monitoring the motor currents to turn off the system on over-current situations
- Checking end and reference sensor contacts for three axes
- Checking for missing tacho pulses to turn off the system when motors are blocked
This is just an example for what can be done with just "one cog"
Nevertheless, the Propeller and the SX don't have too much in common, except that both are great and powerful controllers but on different levels.
When you are new to the SX, be prepared for some learning. In case you have used Basic Stamps before, SX/B would be the best language choice for your first SX applications. If not, I can only recommend learning the SX Assembly language at first place. This allows you to "talk to the SX" in its "native language" for fastest and most compact applications.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G