CAN bus connections

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

Moderator: Benj

Post Reply
Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

CAN bus connections

Post by Walbeek »

Hi there,

I'm using a PIC16F88 in a EB006 programmer with the EB018 CAN board.
In the schematics, the INT pin of the CAN board is connected to RB0 of the 16F88.
In the software I can't connect the INT pin (or can't find how to)
Is the INT pin used in the software?
How do I connect this pin in the software?
Please let me know.
Greetings, Rinie
Flowcode V7 user

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: CAN bus connections

Post by QMESAR »

Walbeek wrote:
I'm using a PIC16F88 in a EB006 programmer with the EB018 CAN board.
In the schematics, the INT pin of the CAN board is connected to RB0 of the 16F88.
In the software I can't connect the INT pin (or can't find how to)
Is the INT pin used in the software?
In my opinion you do not need the INT pin ,the only case you will need it is when you setup your MCU to trigger and INT when the INT PIN of the CAN board fires
you can poll the CAN board for received messages

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: CAN bus connections

Post by kersing »

Hi Rinie,

The code polls the CAN transceiver, INT is not used.

Best regards,

Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Re: CAN bus connections

Post by Walbeek »

Hi there,

Thanks to both of you.
I have done some tests with an extra wire on the INT input but I can't see anything changing.
I still have some other problems with the PCB, the CAN controller doesn't seem to run.
Wiring the SPI of the controller to a external CAN controller works well.
Wiring the RX and TX outputs back to the CAN driver on my PCB also works.
Looks like the CAN controller isn't running, so I have to do some more testing.
All SPI and RX/TX wire's are in place so probably the oscillator....

Rinie
Greetings, Rinie
Flowcode V7 user

Post Reply