P2 Serial Driver

Cluso99Cluso99 Posts: 15,410
edited 2016-06-28 - 08:18:00 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.
My Prop boards: P8XBlade2, RamBlade, CpuBlade, TriBlade
Prop OS (also see Sphinx, PropDos, PropCmd, Spinix)
Website: www.clusos.com
Prop Tools (Index) , Emulators (Index) , ZiCog (Z80)

Comments

  • I was trying your code and got this.
    Thanks
    Martin
    805 x 792 - 50K
    “Light thinks it travels faster than anything but it is wrong. No matter how fast light travels, it finds the darkness has always got there first, and is waiting for it.”
    “You only live twice:
    Once when you are born
    And once when you look death in the face”
  • 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 ..."
    "We suspect that ALMA will allow us to observe this rare form of CO in many other discs.
    By doing that, we can more accurately measure their mass, and determine whether
    scientists have systematically been underestimating how much matter they contain."
  • 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.
    My Prop boards: P8XBlade2, RamBlade, CpuBlade, TriBlade
    Prop OS (also see Sphinx, PropDos, PropCmd, Spinix)
    Website: www.clusos.com
    Prop Tools (Index) , Emulators (Index) , ZiCog (Z80)
  • @Cluso99

    Thanks
    “Light thinks it travels faster than anything but it is wrong. No matter how fast light travels, it finds the darkness has always got there first, and is waiting for it.”
    “You only live twice:
    Once when you are born
    And once when you look death in the face”
Sign In or Register to comment.