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 support@ccsinfo.com

CAN communication between SN65HVD234 and MCP2551
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ePowered RACING



Joined: 29 Dec 2020
Posts: 4

View user's profile Send private message

PostPosted: Mon Jan 04, 2021 7:26 am     Reply with quote

Ok, so it seems the connections are good!

Could anyone suggest about the code? Such as a library to use with this transceiver, any configuration parameter I must useā€¦
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Mon Jan 04, 2021 8:01 am     Reply with quote

The transceiver makes no difference to the code.

However a thing that may, is default types. This is a critical difference between
the '8bit' PIC's, and their larger brethren. The default 'int' changes from being
an 8bit unsigned int, to being a signed 16bit int. Even if you use 'int8' for
example, this becomes signed on the 16bit PIC. Now generally the CCS
code has been rewritten to cope with this, but if for example you have
variables that are handing values to the library, you may be accidentally
passing 'signed' values without realising it....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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