On 4/25/07, Thomas C. Sefranek wrote: > Hi Group, > Is there anyone out there with a working knowledge of the CAN bus and the > 18F4585? > > I have it working with 25 nodes, but it has some Curious failures about > .25% of the time. (Extended messages, null messages...) > It looks like unresolved collisions in messages. > I've tried lower baud rates and still have the problem. > > I'm using 122 ohm twisted pair, terminated at both ends. > The signals look good on a "scope" at 1 megabaud. > > Tom Have you checked the errdata? +Under specific conditions, the first five bits of a +transmitted identifier may not match the value in +the Transmit Buffer ID register, TXBnSIDH. The +following conditions must exist for the corruption to +occur: +1. A transmit message must be pending. +2. The ECAN module must detect a Start-of- +Frame (SOF) in the third bit of interframe +space. May be the problem. In my setups I have seen this as random id's from time to time. Never seen it using the non ECAN mode. /Ake > > * > | __O Thomas C. Sefranek WA1RHP@ARRL.NET > |_-\<,_ Amateur Radio Operator: WA1RHP > (*)/ (*) Bicycle mobile on 145.41MHz PL74.4 > > ARRL Instructor, Technical Specialist, VE Contact. > http://hamradio.cmcorp.com/inventory/Inventory.html > http://www.harvardrepeater.org > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- --- Ake Hedman (YAP - Yet Another Programmer) eurosource, Brattbergavagen 17, 820 50 LOS, Sweden Phone: (46) 657 413430 Cellular: (46) 73 0533 146 Company home: http://www.dofscandinavia.com Kryddor/Te/Kaffe: http://www.brattberg.com Personal homepage: http://www.dofscandinavia.com/akhe Automated home: http://www.vscp.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist