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 16 matches
CCS Forum Index
Author Message
  Topic: ECAN and FIFO
ZD

Replies: 1
Views: 8081

PostForum: General CCS C Discussion   Posted: Fri Dec 29, 2017 4:59 am   Subject: ECAN and FIFO
Hello all,
dsPIC33EP128MC506, CCS v5.070
Drivers: can-pic24.c and can-pic24.h

My code sends and receives messages. There is no problem. But i want to use FIFO features. There is not lots of infor ...
  Topic: putting structs into the arrays
ZD

Replies: 8
Views: 12451

PostForum: General CCS C Discussion   Posted: Wed Jun 10, 2015 2:09 am   Subject: putting structs into the arrays
I understand what you mean. But i'm confused about arrays. Because, it is two dimension array and there are too many pieces same struct. So, how the two register share the same register position.

R ...
  Topic: putting structs into the arrays
ZD

Replies: 8
Views: 12451

PostForum: General CCS C Discussion   Posted: Tue Jun 09, 2015 1:31 am   Subject: putting structs into the arrays
The data position at the can_rstack is always changing. So, i don't understand how can we use unions.
Is it possible to give an example.

Regards,
  Topic: Error handling problem (#INT_CANERR and #INT_CANIRX ISR)
ZD

Replies: 4
Views: 9120

PostForum: General CCS C Discussion   Posted: Tue May 26, 2015 10:55 am   Subject: Error handling problem (#INT_CANERR and #INT_CANIRX ISR)
Hi again,
I changed the MDO3000 trigger source to CanBus and it triggers on Error Frame. And in single mode, it doesn't catch any signal. Very Happy

To be honest, I'm not sure that is my problem cau ...
  Topic: Error handling problem (#INT_CANERR and #INT_CANIRX ISR)
ZD

Replies: 4
Views: 9120

PostForum: General CCS C Discussion   Posted: Tue May 26, 2015 10:03 am   Subject: Error handling problem (#INT_CANERR and #INT_CANIRX ISR)
Hi,
Thank you for your reply. I'm attaching my circuit diagram.
http://i.hizliresim.com/62J01W.pngAre they affect to the performance?

I remove the LED's. After that i get the following measuremen ...
  Topic: Error handling problem (#INT_CANERR and #INT_CANIRX ISR)
ZD

Replies: 4
Views: 9120

PostForum: General CCS C Discussion   Posted: Sun May 24, 2015 8:04 am   Subject: Error handling problem (#INT_CANERR and #INT_CANIRX ISR)
Hi,
I have got a 5 nodes which are communicating through CanBus at 62.5kbps. I don't write any code for error handling and after around 8-10 hours (sometimes after 24 hours) one or more nodes doesn't ...
  Topic: 18F4580.c and can-mcp251x.c library
ZD

Replies: 1
Views: 5671

PostForum: General CCS C Discussion   Posted: Mon Apr 20, 2015 2:07 am   Subject: 18F4580.c and can-mcp251x.c library
Hi,
Does can-18F4580.c and can-mcp251x.c library run at the same time?

Regards,
ZD
  Topic: putting structs into the arrays
ZD

Replies: 8
Views: 12451

PostForum: General CCS C Discussion   Posted: Fri Apr 17, 2015 2:21 am   Subject: putting structs into the arrays
Hi everybody again,
I found the answer. It can be done by memcpy command.

memcpy(&can_rstack[0][0], &rx_stat, sizeof(rx_stat));
memcpy(&tx_stat, ...
  Topic: putting structs into the arrays
ZD

Replies: 8
Views: 12451

PostForum: General CCS C Discussion   Posted: Fri Apr 17, 2015 1:29 am   Subject: putting structs into the arrays
Hi to all,
How can i put/get structs into/from arrays?

For example struct and array definitions are like that:

struct rx_stat {
int1 err_ovfl; // buffer overflow
unsigned ...
  Topic: Canbus problem with PIC18F25K80
ZD

Replies: 10
Views: 16964

PostForum: General CCS C Discussion   Posted: Tue Oct 28, 2014 3:42 am   Subject: Canbus problem with PIC18F25K80
Hi again,
Thank you very much. As you told me, overflow and #int_canrx1 interrupt occurred and i didn't handle it.
I wrote the #int_canrx1 interrupt which is completely same code with #int_canrx0. A ...
  Topic: Canbus problem with PIC18F25K80
ZD

Replies: 10
Views: 16964

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 3:53 pm   Subject: Canbus problem with PIC18F25K80
It is little bit confused. May be it is caused from my English. Sorry. I try to explain it to you.

At first, i tried some values on MBTime software to learn it. May be 12 quanta remain from the old ...
  Topic: Canbus problem with PIC18F25K80
ZD

Replies: 10
Views: 16964

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 1:56 pm   Subject: Canbus problem with PIC18F25K80
I'm using the default values right now. It works 125K @20MHz crystal. But now, i'm using 10MHz crystal and my baud rate is 62,5K. I can listen the bus with Kvaser CanBus monitor with 62,5K setting. So ...
  Topic: Canbus problem with PIC18F25K80
ZD

Replies: 10
Views: 16964

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 1:12 pm   Subject: Canbus problem with PIC18F25K80
Hi again.
I think, i found something.
My baudrate is 62,5K. (All settings are at the default values and I'm using 10MHz crystal). That node receives a message every 100ms. So, i didn't suspect anyth ...
  Topic: Canbus problem with PIC18F25K80
ZD

Replies: 10
Views: 16964

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 10:03 am   Subject: Canbus problem with PIC18F25K80
Hi,
Thanks for your reply.
After power up the system, it receives the datas for example 20 seconds. (This time is not exactly 20 sec. It is changing. Sometimes it is longer than 20 sec, sometimes sh ...
  Topic: Canbus problem with PIC18F25K80
ZD

Replies: 10
Views: 16964

PostForum: General CCS C Discussion   Posted: Mon Oct 20, 2014 1:35 pm   Subject: Canbus problem with PIC18F25K80
Hi,
I'm working on develeoping a canbus system. My node is listening the bus and send some data's every 100ms.
And i have got a run led which is blinking every 1000ms if it receives a data within 1 ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group