Shop OBEX P1 Docs P2 Docs Learn Events
P2 Serial Driver — Parallax Forums

P2 Serial Driver

Cluso99Cluso99 Posts: 18,069
edited 2016-06-28 08:18 in Propeller 2
Here is a Serial Driver you can use with P2 code.

There are 3 simple calls...

CALL #_SERIALINIT
CALL #_SEND
CALL #_RECV

The serial driver may reside in cog or hub (hubexec) ram.

Comments

  • I was trying your code and got this.
    Thanks
    Martin
    805 x 792 - 50K
  • evanhevanh Posts: 15,916
    Pilot,
    That's really old code. Even with those cases fixed it may not do as intended. That said, to make it assemble, replace each "setb dira/b...." with a "dirh ..."
  • Cluso99Cluso99 Posts: 18,069
    There is sample code for the ES chip posted that uses the ROM code. You will need to check the sample code threads for the ES silicon.
    Note any code posted prior to mid/late 2018 is likely to be suspect due to many changes before the P2 design was frozen.
  • @Cluso99

    Thanks
Sign In or Register to comment.