Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

CAN networks, a step too far???

Status
Not open for further replies.
I could write more "tutorials" in the Code Repository. Is there something that would interest you.. maybe how to divide C projects in multiple files, or something else (for beginners)?
That would be good, and maybe some stuff on the compiler process etc. How to make Libs and what headers are and how to use them, there is alot of C tutorials but most focus on the actual language rather than the other bits.
 
So let me get this right, if I am just using pics then I dont need controllers as such? I know there are some microchip does that are spi, but that sort of defeats the object of the CAN peripheral. Opto isolators sound like a good idea, do I still need the resistor terminations?
I am thinking of going with there stack for the Cars and trucks etc.
Ive read alot of microchip app notes, looks a bit involved to start with but looks worth the effort. There is alot of features I really like with CAN, being 5V is handy as well. Not sure the chip(s) yet but i8f's probably.I like the challenge of a nice meaty project :D
 
That would be good, and maybe some stuff on the compiler process etc. How to make Libs and what headers are and how to use them, there is alot of C tutorials but most focus on the actual language rather than the other bits.
RightO!.... I'll try and do a few as well
 
Great one Ian, all tutorials are useful but you dont see many aimed at beginners that explain what happens. Another good example is the one you did on large variables and altering the linker script, most books web pages tell you about For While loops etc, but few tell you how to alter linker scripts etc. In some ways that is far more useful as a tutorial as it opens up alot of possibilities.
 
making a can analyzer would be a good project, I keep meaning to make the serial analyzer, they provide the firmware and schematics for both
 
LG said:
Another good example is the one you did on large variables and altering the linker script

Ah!! The C18 table troubles.... It's funny how Hi-tech can manage large tables!!!! XC8 is better in that respect.
 
I had the same problem. tom_usenet from the Microchip forum found the answer...

https://www.microchip.com/forums/tm.aspx?m=640252&high=

A common (possibly ground) connection between all transceivers is vital. Connect 0 Volts between all CAN transceivers as well as the two CAN bus lines. i.e. you need a minimum of three wires.

You might get away with only two CAN wires if you can guarantee that all transceivers share a common ground at all times (and are never unplugged from ground), but it is simpler and more reliable to use a third wire.

Don't be fooled (like I was) by mikroElectronica CAN products, which only provide two CAN line connections. Common ground really is needed to prevent transceiver burn-out.

Have had no further transceiver burn-out since learning this valuable lesson.
Thank you very much for the tip! actually I ran it with only the differential line, no ground.Burnt about 3 controllers and thought that there was some issue with the differential cables and cursed the digikey for providing with those cables. I hate mikro-electronica thingies for they are like arduino s, makes people lazy.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top