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

Search found 32 matches
CCS Forum Index
Author Message
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Mon Jan 13, 2014 8:03 pm   Subject: CAN Bus Problem
It's weird but it looks like it works now...


#include <30F4011.h>
#DEVICE DSPIC30F4011
#DEVICE *=16 ICD=TRUE ADC=10
#fuses PR,FRC_PLL16,NOWDT,NOPUT
#use delay(clock=117.92M)
#u ...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Sun Jan 12, 2014 9:38 pm   Subject: CAN Bus Problem
Well that code is simple, it just turns on some LED's if I get an A, B, C or D across the CAN bus network. And if the board gets that character it beeps, it gives me more visibility as to whats going ...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Sat Jan 11, 2014 12:15 pm   Subject: CAN Bus Problem
Ya it looks like it was an SPI clock speed problem. I am now able to see


Tx OK, Rx OK, Rx data = 55

Tx OK, Rx OK, Rx data = 55

Tx OK, Rx OK, Rx data = 55

Tx OK, Rx OK, Rx data = 55
...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Thu Jan 09, 2014 10:33 pm   Subject: CAN Bus Problem
Interesting, I am only running at that baud because all the example codes in the CAN bus 24 exercise book say to follow that code. It puzzles me as to how they got it to work if its such a high freque ...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Wed Jan 08, 2014 11:26 am   Subject: CAN Bus Problem
Oh and another thing is (perhaps you might know), I guess I got a little bit over zealous about saying the board worked, I noticed when I looked at the screen that I would see most of the time. I woul ...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Wed Jan 08, 2014 8:21 am   Subject: CAN Bus Problem

First, prove that your boards work OK. Test each board in MCP2515
loopback mode. This post contains sample loopback code:
http://www.ccsinfo.com/forum/viewtopic.php?t=41683&start=10


Tha ...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Tue Jan 07, 2014 10:52 am   Subject: CAN Bus Problem
Alright, I will give it a try tonight. That program looks promising, and I appologies for the long delay in my reply. I will post back here if I have any further problems, thank you!
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Sun Jan 05, 2014 9:45 pm   Subject: CAN Bus Problem
I have posted the CAN bus 24 book, if you look at the node schematic on it, its connected exactly the same way as it is in the book. I did it like that so that I could get help easier.

I also came ...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Sun Jan 05, 2014 2:21 am   Subject: CAN Bus Problem

You made your own boards and they don't work. You should probably
post a schematic of the board(s) and also post a schematic of the
connections between the boards.

The reason why I didn't pos ...
  Topic: CAN Bus Problem
Wolf

Replies: 16
Views: 26219

PostForum: General CCS C Discussion   Posted: Sat Jan 04, 2014 5:28 pm   Subject: CAN Bus Problem
I have created some CAN bus boards based on this training system (which is sold by CCS)
#include <30F4011.h>
#DEVICE DSPIC30F4011
#DEVICE *=16 ICD=TRUE ADC=10
#fuses PR,FRC_PLL16,NOWDT
#us ...
  Topic: MCP251x.h Compile Error
Wolf

Replies: 6
Views: 12243

PostForum: General CCS C Discussion   Posted: Sun Nov 24, 2013 7:09 pm   Subject: MCP251x.h Compile Error
Well, it does seem to compile now...thank you
  Topic: MCP251x.h Compile Error
Wolf

Replies: 6
Views: 12243

PostForum: General CCS C Discussion   Posted: Sun Nov 24, 2013 2:27 pm   Subject: MCP251x.h Compile Error
Ya I found it, it had 2 different options...
https://dl.dropboxusercontent.com/u/53843754/Compile%20Error.JPG

I took a screen shot to show if this is what you ment, but going through those options ...
  Topic: MCP251x.h Compile Error
Wolf

Replies: 6
Views: 12243

PostForum: General CCS C Discussion   Posted: Sun Nov 24, 2013 2:08 am   Subject: MCP251x.h Compile Error
Well I just moved them, and that didn't fix the problem I still got the same error. I also tried it with the CCS compiler PCW and it also gives me the same error that Mplab is giving me
  Topic: MCP251x.h Compile Error
Wolf

Replies: 6
Views: 12243

PostForum: General CCS C Discussion   Posted: Sat Nov 23, 2013 8:42 pm   Subject: MCP251x.h Compile Error
I'm trying to compile this program using MPLAB X 1.60, I can't understand as to why this isn't compiling


CLEAN SUCCESSFUL (total time: 79ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .b ...
  Topic: Printf Code
Wolf

Replies: 12
Views: 13347

PostForum: General CCS C Discussion   Posted: Sun Feb 24, 2013 4:25 pm   Subject: Printf Code
Ok, so I changed the code to ADC_CLOCK_DIV_2 as you can see...


/*
* File: Test.c
* Author: Administrator
*
* Created on February 22, 2013, 9:15 PM
*/
#include <18f443 ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group