Hello Team,
Thanks for the input, I tried to execute your demo code and it worked.
I need to introduce the logic for cycle time so i have used the following logic, but instead of 50ms Iam getting 5sec, what needs to be corrected to get the values in ms. I assumed 1 tick is 1msec but Iam getting 1tick =100ms so Iam unable to get a proper logic for cycle time. Could you please let me know what could be the problem?
void Init(void)
{
ComObjCAN.systick = OSIF_GetMilliseconds();
}
void main()
{
value = OSIF_GetMilliseconds();
if ((value-ComObjCAN.systick) == 50) {
ComObjCAN.systick = value;
ComCAN_Transmit();
}