Page 1 of 1

CAN Example

Posted: Thu Feb 26, 2009 7:48 pm
by PINTO
Hi Benj,

I'm looking for an FlowCode Canbus network example using the Can Bus Board.

I'm looking to use an pic16f876 and a Canbus Network Board (EB018-30-1) to make a network with 4 nodes.
The length of the network wil go as long as 350 meters.
I believe that if we reduce the bus speed to 10Kb/s we can easly cover a lenght of 1000 Meters (1Km).
How can I set the bus speed to 10Kb/s?
I've noticed that the lowest setting on the CAN Component is 125Kb/s.(I guess if I use 125Kb/s and a heavy wire gauge (1.5mm Cu/Zn) i could easly do 500 meters).

I recieved the Flowbook From Elektor afer 5 weeks. It's good starting point but on my point of view it lacks a bit of detail. I would recommend it.

Regarding my other post on the PIC16F88 still no luck. The program works well with the 877, the 876 and I land up using the 628a.
In think that I'm setting the configuration bits wrong on the 88. I will get to it when I've a some spare time, Thaks for your help, much appreciated.

Regards


Pinto Ramos

Re: CAN Example

Posted: Fri Feb 27, 2009 11:05 am
by Benj
Hello Pinto

It looks like the minimum frequency for the CAN on the EB018 boards is 15kb/s. To set this speed go into the CAN properties and in the General tab click to set the tick box marked Override register values. Then change the value in CNF1 to 0x3F.

Re: CAN Example

Posted: Fri Feb 27, 2009 8:49 pm
by PINTO
Hello Benj.

Thanks I'll try the 15Kb/s.

I guess you didn't manage to get any example?


Thanks.



Pinto

Re: CAN Example

Posted: Mon Mar 02, 2009 8:04 pm
by PINTO
Hi Benj.

Don't worry about my last comment on the CAN Example.
I found a couple Examples on the Flowbook,
Thanks.


Pinto