Shop OBEX P1 Docs P2 Docs Learn Events
SXKey for Serial Communication — Parallax Forums

SXKey for Serial Communication

John R.John R. Posts: 1,376
edited 2007-03-23 18:05 in General Discussion
I am wondering if it is possible to use the SXKey for serial communication, other than for programming.

Specifically, I have a "full voltage" RS-232 device I need to "talk with".· I plan on getting some type of line level driver, but for some very simple testing ("proof of concept"), I was hoping to use the SXKey, because I have one, and it's that much less to work with starting out.

If this would work, which of the OSC pins would be used, or does one each get connected to the In and Out signal line?


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log

Comments

  • JonnyMacJonnyMac Posts: 9,214
    edited 2007-03-23 17:41
    No. The OSC pins cannot be controlled by the user.

    For very simple testing you can connect directly with a short line using inverted mode (e.g., the constant for 9600 baud would be "N9600"). If you're getting data from the RS-232 device put a 22K resistor between the device and your RX pin.
    360 x 297 - 24K
  • John R.John R. Posts: 1,376
    edited 2007-03-23 18:01
    Thanks for the info Jon. I do have to have bi-directional comms. We'll give this a try to start with, and graduate over to the line driver on the PDB if I need to. I'm using the SX48 protoboard, so I'm trying to minimize the "spaghetti factor" until I know how things will shape up.

    I'm actually working on communication with an IP camera. I'm hoping to use the IP camera to link to a host PC via the ethernet (ultimately wireless) and do some serial communication through the camera serial port, both for allowing the SX (and/or Propeller) to communicate with the PC, as well as have the microprocessors have some control over the camera. According to the API docs for the camera, this should all work.

    Totally off topic: I'm still watching for "Night of the White Pants". Make sure you let us know if they ever get a distribution deal together on that, or if there is a way we can get a DVD or something.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John R.
    Click here to see my Nomad Build Log
  • JonnyMacJonnyMac Posts: 9,214
    edited 2007-03-23 18:05
    "White Pants" is playing at the AFI Film Festival in Dallas this week -- let's hope it gets picked up by a distributor... (it would be nice to get a residuals check!).

    http://www.afidallas.com/
Sign In or Register to comment.