Shop OBEX P1 Docs P2 Docs Learn Events
Serial Break function for LIN bus? — Parallax Forums

Serial Break function for LIN bus?

grogersongrogerson Posts: 3
edited 2010-10-27 05:57 in Propeller 1
I'm using FullDuplexSerial to talk to an automotive LIN bus which needs a Break function (pull the serial line low for nn bit times where nn>=13). How can I add this function to FDS, or is there a different serial driver I should use? (New to SPIN, & haven't used assembler since the 70's!)

Comments

  • grogersongrogerson Posts: 3
    edited 2010-10-26 07:29
    Guess I overlooked the obvious- using SimpleSerial instead I can directly drive the output low with outa. I'd still be interested in a solution for FSD if somebody's got one. Thanks!
  • JonnyMacJonnyMac Posts: 9,208
    edited 2010-10-26 11:12
    It might be worth creating a specialty object for your project. It's not likely that you need FDS's abitlity to run inverted or true, and run half-duplex on one pin. You could remove these features and add the ability to send a proper break.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-10-26 11:34
    My basic_sio.spin object (attached) provides a BREAK method. It also responds to an incoming BREAK by resetting the Propeller chip.

    -Phil
  • grogersongrogerson Posts: 3
    edited 2010-10-27 05:57
    Thanks Phil, looks like I'll have to play with the full-on/full-off Break to get the sub-msec timing I need, but I'll give it a try.

    -Gary
Sign In or Register to comment.