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

Emulator to chip CAN problem (18F458)

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



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

Emulator to chip CAN problem (18F458)
PostPosted: Mon Jun 02, 2003 6:14 am     Reply with quote

I have a program that seems to run fine using the ICE 2000 and the PCM18XD1. However when I go from emulator to a chip I am not able to transmit or receive on the CAN bus. The same is true if I try to use the ICD2. Anyone else have this problem.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514949
Douglas Richard



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

Re: Emulator to chip CAN problem (18F458)
PostPosted: Tue Jun 03, 2003 7:34 am     Reply with quote

can-18xxx8.h is wrong.

#define CAN_ENABLE_DRIVE_HIGH 0

should be

#define CAN_ENABLE_DRIVE_HIGH 1

The ICE 2000 does not seem to care and just drove the cantx output high even though the endrhi bit was low. The chip however would put the output in tristate mode.

Life is good.


:=I have a program that seems to run fine using the ICE 2000 and the PCM18XD1. However when I go from emulator to a chip I am not able to transmit or receive on the CAN bus. The same is true if I try to use the ICD2. Anyone else have this problem.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515003
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