What is required to run an SX chip?
I am trying to figure out how to wire an SX20AC/SS and had some questions.
First does it need an occilator?· Here: http://www.parallax.com/detail.asp?product_id=SX18AC/DP·it says "Internal Occilator -·32 kHz to 4 MHz" so does this mean I don't need one?· Also how do I set its speed without one?
Another question is how do I program it?· I am going to buy the SX Key but on the data sheet I dont see any pins designated to programming.· My best guess is "comparator", there are three of these; an output, positive, and negitive.· They are listed among the I/Os.
It has an Master Clear Reset Input Pin and says "active low" afterwords.· Should I use a pullup resistor to keep it from resetting?
I think·thats it, assuming a real-time clock isn't required.
Thanks, Aaron
First does it need an occilator?· Here: http://www.parallax.com/detail.asp?product_id=SX18AC/DP·it says "Internal Occilator -·32 kHz to 4 MHz" so does this mean I don't need one?· Also how do I set its speed without one?
Another question is how do I program it?· I am going to buy the SX Key but on the data sheet I dont see any pins designated to programming.· My best guess is "comparator", there are three of these; an output, positive, and negitive.· They are listed among the I/Os.
It has an Master Clear Reset Input Pin and says "active low" afterwords.· Should I use a pullup resistor to keep it from resetting?
I think·thats it, assuming a real-time clock isn't required.
Thanks, Aaron
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·
The internal clock is not very accurate (+/- 8%) so it's not recommended if you program need to do serial communication or other timing sensitive operations.
Usually an external resonator is used. Parallax sells 4MHz, 20MHz and 50MHz resonators.
The choice is made using the DEVICE directive in your program.
The device is programmed through the OSC1 AND OSC2 pins and you will need some programming device (like the SX-Key).
The comparitor is actually an internal comparitor.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out· the "SX-Video Display Module"
www.TerryHittConsulting.com
·
Basically it compares two input voltage levels("+" and "-"). If the "+" voltage level is higher than the "-" voltage level, then the output goes high. Otherwise the output is low.
Very useful for checking voltage levels and such.
Let's say you want to check if a light level exceeds a certain threshold. You can set the "-" to a certain voltage with resistors or a pot, and connect a CDS cell as a voltage divider to the "+" input. When the light level causes the voltage divider connected to the CDS cell to cross the voltage set by the pot, the output will change from high to low, or low to high (depending on how you have it setup).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out· the "SX-Video Display Module"
www.TerryHittConsulting.com
·
Bruce
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Name: Bruce Clemens
Work:· Clemensb@otc.edu
Good Stuff on my Bolg: http://theDeadBug.journalspace.com
You said the comparitor compares different voltages. If this is something special I'm assuming the rest of the pins cannot recognize differences in voltages (besides 1 and 0), so how do I get a chip to read an analog distance sensor that outputs varying voltages for different distances?
Its mainly a processing power vs. current consumption issue, but there can also be other factors involed (such as EMI).
You said the comparitor compares different voltages. If this is something special I'm assuming the rest of the pins cannot recognize differences in voltages (besides 1 and 0), so how do I get a chip to read an analog distance sensor that outputs varying voltages for different distances?
While you could do everything nessesary to do this on an SX chip (see my post in this thread http://forums.parallax.com/showthread.php?p=526402), this is more easily accomplished by an offboard analog to digital converter (ADC).
To rephrase my post in the other thread, ADC is accomplished by comparing two analog voltages (using a analog comparator), the first is the unknown voltage your measuring the other is an analog voltage you generate using a digital to analog converter (DAC), when the two are equal (by monitoring the comparator) you know what the voltage of the line your measuring is. You can do all this using an SX or you can buy a ADC to do it all for you.
Post Edited (Paul Baker) : 2/16/2005 11:15:15 PM GMT
The SX-Key will operate plugged into a 4-pin header with two power pins and the other two pins connect directly to the Sx chip OSC pins. Feed volts to the Sx and raise MCLR and you're ready to program. But to construct this, you need to know how to read pinout diagrams, wire chip sockets and provide 5V power without burning out your parts. And you need to have sockets, a header to fit the Sx-Key, some kind of board...
Or you can get the Parallax "sx-tech" prototype board that provides all of this already. I'd recommend this even if you start to build your own boards because anytime a newly built board just won't program and you want to verify that the serial connection is OK, the Sx-Key is OK, your Sx chip is OK, it's nice to have a proven board to test these on.
David