CAN Example

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
PINTO
Flowcode v5 User
Posts: 71
Joined: Fri Nov 03, 2006 2:28 pm
Location: RSA
Been thanked: 1 time
Contact:

CAN Example

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: CAN Example

Post 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.

PINTO
Flowcode v5 User
Posts: 71
Joined: Fri Nov 03, 2006 2:28 pm
Location: RSA
Been thanked: 1 time
Contact:

Re: CAN Example

Post by PINTO »

Hello Benj.

Thanks I'll try the 15Kb/s.

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


Thanks.



Pinto

PINTO
Flowcode v5 User
Posts: 71
Joined: Fri Nov 03, 2006 2:28 pm
Location: RSA
Been thanked: 1 time
Contact:

Re: CAN Example

Post 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

Post Reply