P2 Serial Driver

Cluso99Cluso99 Posts: 14,978
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.”
  • 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 ..."
    "... peers into the actual workings of a quantum jump for the first time. The results
    reveal a surprising finding that contradicts Danish physicist Niels Bohr's established view
    —the jumps are neither abrupt nor as random as previously thought."
  • 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.”
Sign In or Register to comment.