CAN-1 Example Code

General discussion on mikroC for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Dave Selfors
Posts: 27
Joined: 13 Jan 2008 22:52

CAN-1 Example Code

#1 Post by Dave Selfors » 11 Nov 2009 03:05

I just received 2 CAN-1 boards and am looking for the code examples stated on the website:
Example of Sending data.
Example of Receiving data.
Example for sending data to other CAN node in CAN network.
Sending data from AD converter to other CAN node.
Sending data from temp. sensor to other CAN node.
Sending data from button input to other CAN node.
Example for sending data from PS/2 Keyboard to other CAN node in CAN network.
Control CAN network with PC via RS232 comm.
Control CAN network with PC via USB comm.
Example for sending data from MMC Card to other CAN node in CAN network.

I would like to use a dspic33fj128GP710. Can someone point me to the examples?

Thanks in advance,
--Dave

User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

#2 Post by anikolic » 11 Nov 2009 16:37

Hi,
Have you tried ..\Mikroelektronika\mikroC dsPIC\examples\LV_24_33\Extra Examples\ECAN\ example that comes with your compiler?

Best regards,
Aleksandar
Web Department Manager

Dave Selfors
Posts: 27
Joined: 13 Jan 2008 22:52

#3 Post by Dave Selfors » 11 Nov 2009 16:49

Marco,
Thank you. I have used the ECAN_1st example that you point out. The website also mentions other examples that aren't included in that directory. Are they available somewhere else?

OK ----------Example of Sending data.
OK-----------Example of Receiving data.
OK-----------Example for sending data to other CAN node in CAN network.
Not included-----Sending data from AD converter to other CAN node.
Not included-----Sending data from temp. sensor to other CAN node.
Not included-----Sending data from button input to other CAN node.
Not included-----Example for sending data from PS/2 Keyboard to other CAN node in CAN network.
Not included-----Control CAN network with PC via RS232 comm.
Not included-----Control CAN network with PC via USB comm.
Not included-----Example for sending data from MMC Card to other CAN node in CAN network.

User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

#4 Post by anikolic » 12 Nov 2009 11:50

Hi,
For now these examples are not available. But you can mix already working examples for other modules and use CAN protocol for communication. The main goal of the examples is to demonstrate the simple usage of library function and modules, and it is up to user to experiment further.

Best regards,
Aleksandar
Web Department Manager

Post Reply

Return to “mikroC for dsPIC30/33 and PIC24 General”