Shop OBEX P1 Docs P2 Docs Learn Events
Non standard SEROUT -Possible to do: 38400baud, 1 start bit, 8 databits, 1 even — Parallax Forums

Non standard SEROUT -Possible to do: 38400baud, 1 start bit, 8 databits, 1 even

BiggeloggeBiggelogge Posts: 5
edited 2004-11-14 11:36 in BASIC Stamp
I have built a VGA projector control box. I have successfully controlled Sanyo, Seleco projectors (I use a 422 line driver to handle the big distances). Now i need to control a Sony VPL-PX32 projector and it needs:
38400 baud, 1 start bit, 8 data bits, 1 even parity, 1 stop bit.
I need to send the following (Protocol requires its commands to be sent in hexidecimal):
A5|01|00|01|00|01|03|00|01|00|01|13|02|80|03|00|01|00|91|5A·
All this to turn on the projector...
Is this possible with Basic Stamp ?
Today·I use a standard Basic Stamp II and the ...
·
A example code would be marvellous·smile.gif

¤ Biggelogge·
640 x 853 - 45K

Comments

  • dandreaedandreae Posts: 1,375
    edited 2004-11-13 22:08
    The BASIC Stamp cannot communicate using 38400 baud, 1 start bit, 8 data bits, 1 even parity, 1 stop bit.·· The BASIC Stamp can communicate at 7 data bits, even parity, and 1 stop bit or 8 data, no parity, and 1 stop bit.· You can find more information on pages 296 and 297 of the BASIC Stamp Manual version 2.0.· Here is a link for the download of the manual:

    http://www.parallax.com/html_pages/downloads/basicstamps/documentation_basic_stamp.asp

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    www.parallax.com

    ·
  • BeanBean Posts: 8,129
    edited 2004-11-14 01:11
    You could probably write a "bit-bang" routine, but you may need one of the faster stamps for 38400 baud (26useconds per bit).

    Bean.
  • BiggeloggeBiggelogge Posts: 5
    edited 2004-11-14 10:14
    This sounds interesting; problem is that I'm not very skilled in programming. How do I write a "bit-bang" routine to solve my problem? It sounds very complicated, maybe somebody extremely nice person could write me an working example code sending the above HEX string··smilewinkgrin.gif
    ·
    Using a faster stamp is not a problem (sx or pe modules have the same pin configuration I think?)

    ¤ Biggelogge
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2004-11-14 11:36
    Biggelogge -

    Another alternative to pure software bit-banging is to use the Maxim MAX3100 UART, whose baud rate, parity and stop bits you can set any way you choose to set them. Here is a PBASIC Stamp routine for driving the MAX3100, thanks to Al WIlliams:
    http://www.wd5gnr.com/suart.htm

    You will need to set the "baudrate" variable in that program appropriately for your projector. Make sure you heed all the caveats as described in the prgam notes, and as may be found in the MAX3100 data sheet. As you will note in the program the Stamp will be using SHIFTOUT rather than SEROUT to communicate with the MAX3100.

    Regards,

    Bruce Bates
Sign In or Register to comment.