PIC18F26K80 CAN Read Frames for - STD and XTD Frames

Status
Not open for further replies.

desgin

Full Member level 1
Joined
Apr 7, 2017
Messages
96
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
813
PIC18F46K80 CAN Read Frames for - STD and XTD Frames

Hi All,

I am using PIC18F46k80 in Hardware
and for software MIKroc PRO and for programming using MikroC PRO library.

My CAN initialize code is;

Can_Send_Flags = _CAN_TX_PRIORITY_0 & _CAN_TX_XTD_FRAME & _CAN_TX_NO_RTR_FRAME;

Can_Init_Flags = _CAN_CONFIG_SAMPLE_THRICE & // form value to be used
_CAN_CONFIG_PHSEG2_PRG_ON & // with CANInit
_CAN_CONFIG_XTD_MSG &
_CAN_CONFIG_DBL_BUFFER_ON &
_CAN_CONFIG_VALID_XTD_MSG;


// I am using 250 KBPS baud rate for CAN

My questions is;
1. Can i read CAN data from PIC18F46K80 of STD Frame & XTD Frame both one after another?
I done separate - Working Fine
But while together i am not able to read STD frame, why ?
Please tell me how ?
 
Last edited:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…