Shop OBEX P1 Docs P2 Docs Learn Events
Interesting SX/B App — Parallax Forums

Interesting SX/B App

JonnyMacJonnyMac Posts: 9,216
edited 2007-11-05 02:11 in General Discussion
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.

Comments

  • OzStampOzStamp Posts: 377
    edited 2007-11-04 23:49
    Hi Jon.

    I reckon it is as well.. good example of the "Power of One" SX capability
    Hope your well mate.


    cheers
    Ronald Nollet Melbourne OZ
  • datacpsdatacps Posts: 139
    edited 2007-11-05 02:05
    Great example of arrays jonny I will have to go over the code a bunch of time to figure it out...Looks like you put a lot in the chip.....
  • JonnyMacJonnyMac Posts: 9,216
    edited 2007-11-05 02:11
    A lot of code, yes, but it's very modular and easy to move to other apps. I think the material presented uses about 50% of the SX program space.
Sign In or Register to comment.