CAN Eblock

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Docara
Posts: 273
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 21 times
Been thanked: 57 times
Contact:

CAN Eblock

Postby Docara » Sun Jul 08, 2018 5:03 pm

Hi,

First of, am I able to use the circuit design in the following link as a basis for my project although I will be using a different transceiver (is it protected, copyrighted etc) http://www.matrixtsl.com/resources/files/datasheets/EB018-30-2.pdf

Secondly, presuming 1 is a yes what is the purpose of the three push button switches PB2, PB3 AND PB4

Thirdly, I intend to use the CAN Component in FC , are the LEDs D1 and D2 included in the functionality of the FC component. (will they flash on reception of data)

Thanks
Matt

EtsDriver
Valued Contributor
Valued Contributor
Posts: 389
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 322 times
Been thanked: 206 times
Contact:

Re: CAN Eblock

Postby EtsDriver » Sun Jul 08, 2018 7:41 pm

Hi Matt!

For your second and third question about the purpose of push buttons/leds, take a look at the datasheet; http://ww1.microchip.com/downloads/en/D ... 21801d.pdf
mcp2515.PNG
mcp2515.PNG (315.95 KiB) Viewed 769 times


So it means in general that theyre configurable. But mostly i think the flowcode component just uses them as extra pins to input and output things.

I personally use the other output pin on MCP2515 in my own pcb design CAN nodes as error detected indication near port... :D
Ill just keep the good work up!

Docara
Posts: 273
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 21 times
Been thanked: 57 times
Contact:

Re: CAN Eblock

Postby Docara » Sun Jul 08, 2018 9:34 pm

HI EtsDriver,

Generally, I really struggle with Datasheet 'speak' and have a tendency to develop local dyslexia when I try and read them - its a shame Google Translate include it as one of their languages :D

Seriously, what threw me was that I would expect them to be connected to the host, I wasn't sure if Matrix made them available just to manually simulate a condition or similar for the purpose of a learning eBlock.

So how dies their component deal with data flow on the CANBus - cannot it be used in a practical system then?

Matt

Docara
Posts: 273
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 21 times
Been thanked: 57 times
Contact:

Re: CAN Eblock

Postby Docara » Tue Jul 10, 2018 5:13 pm

Matrix??

User avatar
Steve
Matrix Staff
Posts: 3025
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 78 times
Been thanked: 354 times
Contact:

Re: CAN Eblock

Postby Steve » Wed Jul 11, 2018 2:37 pm

Docara wrote:So how dies their component deal with data flow on the CANBus - cannot it be used in a practical system then?


Hi Matt,

It can certainly be used in a practical system. The issue around transmit/receive buffers and filters/masks is a layer on-top of CAN that is implemented in this Microchip device (and in some of their micros) to make it a bit easier when using CAN. For example, you can set up filters and masks to look for a certain subset of CAN messages and then use the interrupt feature to react when one of these messages is present on the bus. Or buffers with set information and message IDs can be set up to make the transmission easier.

It has been a long time since I used these devices, but I did find them relatively easy to use and I hope we have exposed their functionality suitably in the component.

Regards,
Steve.
These users thanked the author Steve for the post (total 2):
EtsDriver (Wed Jul 11, 2018 6:31 pm) • medelec35 (Fri Jul 20, 2018 10:58 pm)
Rating: 11.76%
 

Docara
Posts: 273
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 21 times
Been thanked: 57 times
Contact:

Re: CAN Eblock

Postby Docara » Thu Jul 12, 2018 8:05 am

Hi Steve,


Thanks for that,. Can I presume that it is OK to uourschematic I my design and can you confirm the function of the switches - I don't fully understand the previous explantion

User avatar
Steve
Matrix Staff
Posts: 3025
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 78 times
Been thanked: 354 times
Contact:

Re: CAN Eblock

Postby Steve » Thu Jul 12, 2018 9:25 am

Feel free to use our schematic if you wish.

Regarding the switches, these are connected to the TXnRTS pins of the CAN controller and can have two alternate functions. One is to request-to-send one of the TX buffer CAN messages and the other is as a general purpose input. The request-to-send is probably not that useful in practice as you would typically be controlling the sending of messages via the microcontroller itself. As general purpose switches, this can be useful if you are running out of free microcontroller pins.

The two LEDs are similar - either a flag to say one of the buffers has received a message or as a general purpose output.

If you have no specific need to extend the i/o or to trigger a CAN message transmission outside of microcontroller control, then I'd ignore the switches (and LEDs).
These users thanked the author Steve for the post (total 2):
Docara (Tue Jul 17, 2018 3:11 pm) • medelec35 (Fri Jul 20, 2018 10:57 pm)
Rating: 11.76%