Shop OBEX P1 Docs P2 Docs Learn Events
bs2pe vs bs2p40 — Parallax Forums

bs2pe vs bs2p40

TAMILTAMIL Posts: 11
edited 2009-12-22 19:11 in BASIC Stamp
Hi,
i have been using bs2p40 for my projects and recently tried bs2pe. the difficulty i faced is with the SERIN baudrate. I used 9600 for bs2p40, but for the same SERIN statements with bs2pe i have to use 4800 baud. my question is does bs2pe has some limitation in terms of speed?

Comments

  • dandreaedandreae Posts: 1,375
    edited 2009-12-22 14:11
    There is a difference with the speed of the commands regarding the BS2p and the BS2pe.· The BS2p is almost twice as fast as the BS2pe.··You can look in the BASIC Stamp Syntax and Reference manual for the differences·regarding the timining for each command.··Example:

    SEROUT for the BS2p regarding 9600 you have a choice of 240 for true or 16624 for inverted.

    SEROUT for the BS2pe regarding 9600 you have a choice of 84 for true and 16468 for inverted.

    Dave

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

    Parallax Tech Support·
  • TAMILTAMIL Posts: 11
    edited 2009-12-22 18:35
    Hello Dave, I used the same baud values and did not get it working. iam sendin 4 to 5 bytes. i made the program very simple by sendin 4 bytes and receiving the same back. this was functional with bs2p40 and not with bs2pe.
  • Tracy AllenTracy Allen Posts: 6,662
    edited 2009-12-22 19:11
    Compared to the '2p there is a longer '2pe delay from the completion of a SEROUT command until it is ready to receive with a subsequent SERIN command. And there is a longer delay between bytes sent, and a longer dead time necessary between bytes received. The speed is affected greatly by modifiers such as DEC or SKIP or STR.

    Do you have control over both ends? Post a snippet and an idea of the goal, and maybe we can suggest ways to improve the timing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
Sign In or Register to comment.