The ambiguities of how to use can set mask.

General discussion on mikroC PRO for FT90x.
Post Reply
Author
Message
max1868
Posts: 33
Joined: 11 Apr 2017 01:08

The ambiguities of how to use can set mask.

#1 Post by max1868 » 27 Jun 2017 00:38

A common use of CAN communication works well. (Filter, interrupt)


Only the ID starting with the 0x2 would like to set up to enter the interrupt.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: The ambiguities of how to use can set mask.

#2 Post by lana.arsic » 28 Jun 2017 16:41

Hi,

I'm sorry, I'm not sure if I understand you well,
can you please explain me more the question?

Kind regards,
Lana

max1868
Posts: 33
Joined: 11 Apr 2017 01:08

Re: The ambiguities of how to use can set mask.

#3 Post by max1868 » 29 Jun 2017 23:38

When there are multiple products on a single CAN BUS handed
Now it enters the interrupt for every packet received.

Using a masking
When the interrupt is received, the ID corresponding to the 0x2XX
I would like to use a form to enter.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: The ambiguities of how to use can set mask.

#4 Post by lana.arsic » 30 Jun 2017 18:17

Hi,

You should be able to work with multiple CAN nodes.
You can check ID of each node and make sure that the bus is properly terminated.

Also, you will need to take care that all nodes work on the same frequency.

If you still have issues, can you post the minimal example which represents it?
Did you try CAN example from the compiler?

Kind regards,
Lana

Post Reply

Return to “mikroC PRO for FT90x General”