CAN Calculator Tool Released on Libstock!

CANculator is a software development tool used for easier CAN baud rate calculation and manipulation of the CAN bus parameters.
Author
Message
atq
Posts: 2
Joined: 29 Aug 2012 21:35
Location: Netherlands

Re: CAN Calculator Tool Released on Libstock!

#16 Post by atq » 07 Apr 2013 22:16

Hi,

can this application be changed to allow lower bus speeds? I am interested in 16.6Kbps.

Many thx.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: CAN Calculator Tool Released on Libstock!

#17 Post by filip » 12 Apr 2013 13:40

Hi,

The CAN standard offers baud rates from 50 Kbit/s to 1 Mbit/sec, it cannot be used with 16.6Kbit/s.

Regards,
Filip.

Scorpio
Posts: 18
Joined: 06 May 2013 16:16

Re: CAN Calculator Tool Released on Libstock!

#18 Post by Scorpio » 02 Jul 2013 11:26

Hi,

When I use this application, I put the following parameters (please see the attached picture).

And When I use CAN init code generated into my test code, I get baudrate 250Kb/s instead of 500Kb/s :?:

Please can you explain me my mistake ?

thanks for your help.

regards,
Attachments
canculator.png
canculator.png (52.18 KiB) Viewed 167402 times

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: CAN Calculator Tool Released on Libstock!

#19 Post by janko.kaljevic » 03 Jul 2013 10:27

Hello,

Yes this is an error when CANSPI and AVR controllers are selected.
In this case it generates double baud, as you noted.

Thanks for reporting this. It will be fixed for the next version of Canculator.

In meantime you can select other architecture (like PIC) and you will get correct calculation and generated code will compile.

Best regards.

Scorpio
Posts: 18
Joined: 06 May 2013 16:16

Re: CAN Calculator Tool Released on Libstock!

#20 Post by Scorpio » 03 Jul 2013 11:02

Hello,

Perfekt!
Thanks for your answer.

Regards,

PaulC
Posts: 100
Joined: 03 Oct 2007 15:15
Location: Ireland

Re: CAN Calculator Tool Released on Libstock!

#21 Post by PaulC » 18 Nov 2013 10:57

Seems to do the same for me..
but when i fill in settings in left hand column , then press calculate does the right hand side appear..
then when you select the CAN data parameters the requested code appears in the copy box..
may be a bit confusing for some but it does work.. ( Win7 64bit )..
this way has to be done each time you open up cancalculator..
excellent tool
thank you to the designer..
Read it - Figure it - Share it

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: CAN Calculator Tool Released on Libstock!

#22 Post by filip » 19 Nov 2013 11:08

Hi,

Please, can you explain what changes in the user interface would you make in order to be more easier to use ?

Regards,
Filip.

PaulC
Posts: 100
Joined: 03 Oct 2007 15:15
Location: Ireland

Re: CAN Calculator Tool Released on Libstock!

#23 Post by PaulC » 19 Nov 2013 11:52

would be easier for newcomers to see whole interface, as it can be confusing seeing it after info has been input, as it is an excellent tool, and would be easier to learn when seeing everything at the beginning..
not really a problem thou as it is for seasoned users..
Read it - Figure it - Share it

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: CAN Calculator Tool Released on Libstock!

#24 Post by filip » 20 Nov 2013 12:09

Hi,

Thank you for your proposal, I shall pass it to our developers.

Regards,
Filip.

Ing.Giovanni.Vitale
Posts: 5
Joined: 12 Mar 2014 13:02

Re: CAN Calculator Tool Released on Libstock!

#25 Post by Ing.Giovanni.Vitale » 19 Mar 2014 14:26

Good evening,
mikromedia 5 for TIVA support the CAN bus?
you have to use libraries other than the default in mikroC PRO 4.2.0?
thanks for your time

Ing.Giovanni.Vitale
Posts: 5
Joined: 12 Mar 2014 13:02

Re: CAN Calculator Tool Released on Libstock!

#26 Post by Ing.Giovanni.Vitale » 19 Mar 2014 16:41

I tried to run the example code, it gives me error in the initialization parameter exactly the type of module. Which command line should be inserted?

jkjoy
Posts: 29
Joined: 23 May 2012 05:19

Re: CAN Calculator Tool Released on Libstock!

#27 Post by jkjoy » 26 May 2014 05:35

Hello,
I am not getting proper bitrate with this application.
In the attached snapshot, I used PIC with 20MHz for 50kbps baudrate. But when I calculate with data sheet formula, I get only 45,454bps..!
I had problem communicating with another CAN controller, then only I noticed it.
CANculator.jpg
CANculator.jpg (209.07 KiB) Viewed 133895 times
Thanks

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: CAN Calculator Tool Released on Libstock!

#28 Post by filip » 26 May 2014 13:08

Hi,

Please, can you attach here the project that demonstrates this issue ?

Regards,
Filip.

jkjoy
Posts: 29
Joined: 23 May 2012 05:19

Re: CAN Calculator Tool Released on Libstock!

#29 Post by jkjoy » 27 May 2014 05:16

filip wrote:Hi,

Please, can you attach here the project that demonstrates this issue ?

Regards,
Filip.
I am attaching the project settings herewith.
But my question is, whether the Microchip data sheet CAN baud calculation is same with CANculator?
Please find attached the datasheet page also.


Thanks
Attachments
CAN_Baud_PIC.jpg
CAN_Baud_PIC.jpg (404.31 KiB) Viewed 133788 times
Project_settings.jpg
Project_settings.jpg (221.02 KiB) Viewed 133788 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: CAN Calculator Tool Released on Libstock!

#30 Post by filip » 27 May 2014 15:11

Hi,

It would be best if you could send us the complete project so we can see where the error is.

Regards,
Filip.

Post Reply

Return to “CAN Calculator”