Author |
Message |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 1:01 pm Subject: please help me about CAN protocol |
255 is an example it can be 2,3,4... so how to get it out that when I send 255 it understand portB=1111111 or 2 portB=00000010... that it do in a command because I do not want to use a different subro ... |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 12:07 pm Subject: please help me about CAN protocol |
In the CCS only has command getc() or Gets() so PIC will understand that is char or string not a numeric data. Did you understand my opinion? |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 12:01 pm Subject: please help me about CAN protocol |
I think also only way or must build up other interface. Now I am studying how to build an interface that includes receiving, transmitting frame. Especially it also have interface consist of 8 led corr ... |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 11:42 am Subject: please help me about CAN protocol |
I also tried it before.but when I use getc() then on the terminal CCS if I send 255 it will understand that are 3 char not abyte |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 11:10 am Subject: please help me about CAN protocol |
Thank you very much. I also solved that problem by setting another ID. But I don't still know how to do to send a byte from PC to board1, then board1 send to board2 through Can bus to control PortB.
... |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 1:12 am Subject: please help me about CAN protocol |
Thank you PCM programmer. Now i have other problem with my program. I want receive not only 8byte data but also more than 8byte how will i do? Could you give some advices? |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 9:36 pm Subject: please help me about CAN protocol |
To collink you have nick chat on yahoo if you don't mind could you send me. I want exchange direct with you or you can add my yahoo is dangluong_bk3i. Thank you very much. |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 9:23 pm Subject: please help me about CAN protocol |
I want to send standard frames.last time I also try to use
can_putd(BOARD1_ID,ADC_buffer, 8, 3, 0, 0);
but in the Hyper terminal ccs don't receive anything.I don't know why?
Could you hel ... |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 8:56 pm Subject: please help me about CAN protocol |
Thanks you for your help vey much. Now I've solved my problem. But I don't know how to transmit a byte of data from PC to PIC. I want to control PortB in my board2, nevertheless I only transmit a char ... |
Topic: please help me about CAN protocol |
dangluong
Replies: 15
Views: 12468
|
Forum: General CCS C Discussion Posted: Mon May 10, 2010 8:33 pm Subject: please help me about CAN protocol |
Hi everybody I come from Vietnam so sorry about my english and now I am doing a project about CAN protocol using PIC18F4580. My circuit includes 2 boards. In there board 2 read data from adc and trans ... |
|