2/27/2023 0 Comments Lawicel canusb softwareAdded to CAN_PHESG1 plus 1 so 7+7+1=15Tq #define CAN_PROPSEG 7 // 8 = 80 or 85% sample point. The rest are one less than the number of Tq #define CAN_SJW 0 // 80 or 85% sample point. Default SJW and PHSEG and PROPSEG values for standard rates. const WORD DefaultCANSpeed = And the parameters are #define CAN_BRP_1M 3 // 20 Tq per bit Here's the table that is indexed from the Sn command. Sample point at about the 80% part of a bit. I'm currently using the alternate clock pll to create 80MHz and defaulting to 20 Tq per bit with the exception of the 10kbps which has 20 Tq per bit. An SXn could be used to set the data bit rate time. And add an X to the 'O'pen command so an OX opens the port as CANFD with the flags in the FIFO configured to handle the larger messages and alternate bit rates. I'm thinking that perhaps sending CANFD messages with an X instead of 't' or 'T' might be the easiest. Once you go to the binary solution at high speeds it's better but can still drop packets. Of all of the CAN dongles out there the CANUSB is probably the easiest to interface to but the USB speeds as a serial device are not great. The CANUSB reported t080 and eventually so did the dspic. To test out this project I set up a network betwen the USB2CAN and the CANUSB and had the USB2CAN send out a periodic CANopen SYNC message once per second. Having said that I have both a RM Michalides USB2CAN, Zanthic CAN4USB and a Kvasser Leaf. The Peak and KVasser are higher end products that can do continuous full speed CAN messaging. Also education is a big market." We were chatting on facebook and realized it's been 20 years since he visited me here on Vancouver Island during a visit from Sweden. To quote Lars Wictorsson, the designer of the CANUSB, "many buy it for low speed applications with agriculture and to download new firmware in products, never to analyze.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |