CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC16F1823 + Module MCP2515 CAN

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Storyteller



Joined: 25 Feb 2019
Posts: 2

View user's profile Send private message

PIC16F1823 + Module MCP2515 CAN
PostPosted: Mon Feb 25, 2019 11:08 am     Reply with quote

Hello everyone. I am working on a project using a PIC16F1823 with an MCP2515 CAN Bus Module. I am new to PIC and CAN Network I wanted a help on how do I make the configuration and connection to the network.

My project is to connect the network of a car and besides being able to make the scanner via OBD also be able to make changes in the modules, for example to change the speed limit.

Is it possible to do something like this?
dluu13



Joined: 28 Sep 2018
Posts: 395
Location: Toronto, ON

View user's profile Send private message Visit poster's website

PostPosted: Mon Feb 25, 2019 11:38 am     Reply with quote

I have not used CAN bus myself, but check out the examples folder in your CCS install directory.

There are a couple of CAN bus examples in there. There are also MCP251x drivers in the drivers folder that you can use.
temtronic



Joined: 01 Jul 2010
Posts: 9247
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Feb 25, 2019 11:41 am     Reply with quote

yes, as stated, get the CCS supplied examples working first.
CAN is extremely complicated and 'top heavy'. You'll probably spend 90% of your time getting CAN to work, the PIC code is simple !
Ttelmah



Joined: 11 Mar 2010
Posts: 19553

View user's profile Send private message

PostPosted: Mon Feb 25, 2019 12:03 pm     Reply with quote

I'd also have to query the chip selection. 128bytes of RAM and 3.5K
program memory, will be 'tight' for CAN if you want to do anything
much with it. The smallest PIC that the example will as standard builds with
has 4* the RAM, and 2.5* the ROM (PIC16F1936). Though I'm a believer
in how much you can do with smaller PIC's, I have to suggest that a larger
chip will make it easier to fit everything....
Storyteller



Joined: 25 Feb 2019
Posts: 2

View user's profile Send private message

PostPosted: Mon Feb 25, 2019 12:12 pm     Reply with quote

Thank you guys. I'm going to study the examples and see what I can do. Anything comes back here and I ask for more help.
temtronic



Joined: 01 Jul 2010
Posts: 9247
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Feb 25, 2019 12:22 pm     Reply with quote

As Mr. T points out 'bigger is better' ! I usually use a PIC18F46K22 for 99% of the products even though it's 'overkill', I've never run out of codespace or I/O pins. That being said , the current PIC project WILL just fit into the 'skinny sister' a '26k22' PIC and EVERY pin has a purpose.

Jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group