Author Topic: microchip LIN bus and their forums  (Read 1180 times)

0 Members and 1 Guest are viewing this topic.

Offline depotTopic starter

  • Contributor
  • Posts: 20
  • Country: tw
  • Expat life is great
microchip LIN bus and their forums
« on: June 20, 2017, 04:49:06 pm »
Hello excellent folks!

I've asked to register for Microchip forums last Thursday and still no approval.  I don't see anything on the internet about unusual slowness about joining their forums, maybe it's just a busy time deal.

Anyway I was checking out their LIN demo to consider for a non-automotive project that could use some communication protocol.  http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DM164130-3

More details:  the project would have 3 connector wires and peripherals scattered around a human body.  Each would get power, ground, and data for various things.  Feel free to suggest something other than LIN, I'm intersted.  Wireless is a no-go, and only one central battery around 6V.

The main thing I wanted to ask Microchip was about their LIN code.  When I set it up for a PIC18F24K20, it consistently fails to see the BREAK initially.  It will UART receive but (according to the debugger) the FERR bit won't set, it doesn't see the extra long UART character as a frame error?  I thought this might be a baud rate issue but it turns out the LIN analyzer sees 0x55 normally when I continuously transmit that and ignore most of the LIN protocol.  The PIC datasheet did say it supports LIN stuff.  I wonder if it could be something up with interrupts or UART receive or what.  I'll go back and look at it again probably today, maybe test out more subsets of code.  I still get a warm fuzzy when putting together a UART loopback test.

Anyway thank you for listening to my woes and best wishes to you.

Edit:  Nevermind!  I eventually got into their forums and also figured out what was going on anyway.  For some reason my work address wasn't being accepted into Microchip forums.  And their MCC code would clear the FERR bit in an interrupt routine with a read before the LIN protocol would use it.
« Last Edit: June 25, 2017, 09:39:39 pm by depot »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf