Page 1 of 1

Starting with PCAN

Posted: Tue 26. Jun 2012, 17:07
by wkp
Hello everyone,

I'm trying to get started with some basic CAN applications to understand how it works, using PCAN-USB as device.

I'm using WindowsXP, PCAN Explorer5 and LPCXpresso (by NXP) for the C program.

Basically, I would like to be able to send a data via the CAN each time I push on a pushbutton connected to the microcontroller (LPC11C24).

The content of the data is not really important for the moment, it's just for the example.

I would like also being able to see this data on PCAN Explorer. I've already did the PCAN EXplorer tutorials available on the website so I think I know how to see messages sent via the CAN.

I'm able to set my microcontroller ports as I/O and how to detect the state of an I/O but I have trouble to understand how to send an information via the CAN when a button is pushed.
Also, Do I need PCAN Basic or PCANBasic.h in order to achieve this task

Thank you for your help.

PS:(I hope my message is at the right place)

Re: Starting with PCAN

Posted: Tue 26. Jun 2012, 17:21
by PEAK-Support
if you have connected the PCAN-USB with your controller Hardware, and also have terminated the CAN cable (120 Ohm on each end between CAN-H & CAN-L), you should use the PCAN-Explorer to send and receive CAN Frames from your Controller board. If your question is how to send a CAN Frame on the Controller board, you need to contact the board manufacture if they have any examples (i am sure they have)
If you like to send some CAN Frames from the PC, the simple way is to use the PCAN-View (which is part of each PCAN-USB Interface) or use the PCAN-Exporer. The PCAN-Basi is a Software API for Windows, that could be used to wite your own PC Software that could send/receice CAN Frames over any PEAK CAN PC Interface.
Maybe this could help to get started with the CAN on your board

Re: Starting with PCAN

Posted: Tue 26. Jun 2012, 17:26
by wkp
Thank you ;)