Interesting SX/B App
![JonnyMac](https://forums.parallax.com/uploads/userpics/922/n74EUX0AORWZS.jpg)
Well, I think it is, anyway. One of my customers decided to go to small-scale control with his animatronic creatures and after playing with the SX starter kit for a while asked me to write a template program for the Prop-SX. His request list:
* 4 digital inputs
* 4 servo outputs
* TX/RX UART @ 9600 for audio/animation device
* TX UART @ 19.2K for Parallax Serial LCD
* Ping))) port
The program that's attached shows how I folded that all together, primarily with SX/B, and a little assembly where it helps. It shows new SX/B users that when using Interrupts, you must consider how that will affect other processes -- PULSOUT and PULSIN, for example, that are required by the Ping))) sensor; the program has a custom function to read the Ping that works with the ISR structure.
* 4 digital inputs
* 4 servo outputs
* TX/RX UART @ 9600 for audio/animation device
* TX UART @ 19.2K for Parallax Serial LCD
* Ping))) port
The program that's attached shows how I folded that all together, primarily with SX/B, and a little assembly where it helps. It shows new SX/B users that when using Interrupts, you must consider how that will affect other processes -- PULSOUT and PULSIN, for example, that are required by the Ping))) sensor; the program has a custom function to read the Ping that works with the ISR structure.
Comments
I reckon it is as well.. good example of the "Power of One" SX capability
Hope your well mate.
cheers
Ronald Nollet Melbourne OZ