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

CAN_putd and the ECANCON register

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



Joined: 01 Apr 2004
Posts: 43
Location: Boston

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

CAN_putd and the ECANCON register
PostPosted: Wed Jan 24, 2007 10:02 am     Reply with quote

hi all,

i've noticed that the CAN_putd function from the CANbus dev kit contains the following. (from can-18f4580.c)

int1 can_putd(int32 id, int * data, int len, int priority, int1 ext, int1 rtr) {
int i;
int * txd0;
int port;

txd0=&TXRXBaD0;

// find emtpy transmitter
// map access bank addresses to empty transmitter
if (!TXB0CON.txreq) {
CANCON.win=CAN_WIN_TX0;
ECANCON.ewin=TX0;
port=0;
}

.......

the confusing part is that the ECANCON register bits can only be changed when in configuration mode (per the data sheet), yet this isnt done in any of the CAN examples. Am i missing somthing?
_________________
Jon
jventerprises



Joined: 01 Apr 2004
Posts: 43
Location: Boston

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

nevermind
PostPosted: Wed Jan 24, 2007 10:10 am     Reply with quote

its only bits 7 and 6 that cant change unless in config mode.
_________________
Jon
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