This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Kindly requesting you to provide the example code of interrupt base CAN reception in TMS320F28335 MCU
Hi,
Thanks for your valuable reply.
But not able to find out the example code as mentioned in application note SPRA876B.
There are only two example codes at C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2833x\examples.
Please guide me where other examples codes are located in C2000 ware.
Thanks & Regards,
Sachin
Hi,
I am going to experiment the CAN_RXINT_A example code.
But not getting eCAN1INT interrupt.
Can you please guide me to how the test same code.
Thanks & regards,
sachin
Please explain what you have done thus far and exactly what help you need.
Did you read the comments at the beginning and end of the code? They clearly explain what the code does.
Also, did you read the debug tips in the app.note?
If you are new to C2000 or CCS, please review the workshops at https://training.ti.com/c2000-mcu-device-workshops. Many questions can be answered by reviewing the workshop material for your specific device family or its closest equivalent. Excellent introductory videos about CCS are available at https://www.youtube.com/user/CodeComposerStudio
Hareesh J said:Please explain what you have done thus far and exactly what help you need.
Did you read the comments at the beginning and end of the code? They clearly explain what the code does.
Also, did you read the debug tips in the app.note?
If you are new to C2000 or CCS, please review the workshops at https://training.ti.com/c2000-mcu-device-workshops. Many questions can be answered by reviewing the workshop material for your specific device family or its closest equivalent. Excellent introductory videos about CCS are available at https://www.youtube.com/user/CodeComposerStudio
Hi,
I am using CAN_RXINT_A example code.
Operating in debug mode and put the breakpoint at eCAN1INT_ISR,please find below ISR routine,
interrupt void eCAN1INT_ISR(void) // eCAN
{
asm (" NOP");
MIV = ECanaRegs.CANGIF1.bit.MIV1;
switch(MIV)
{case 1:
ECanaShadow.CANRMP.all = 0;
ECanaShadow.CANRMP.bit.RMP1 = 1;
ECanaRegs.CANRMP.all = ECanaShadow.CANRMP.all ;
break;}
int1count++;
PieCtrlRegs.PIEACK.bit.ACK9 = 1; // Enables PIE to drive a pulse into the CPU
IER |= 0x0100; // Enable INT9
EINT;
GpioDataRegs.GPBTOGGLE.bit.GPIO32 = 1;
return;
}
But ISR routine never executed as it not goes into interrup.
Please suggest solution.
These are tested examples. Did you read the debug tips?
What is your H/W setup? Post your schematics or at least the circuitry related to CAN.
Hi,
With same hardware setup CAN_ECHO-AB example code working fine.
I have used CANA and CANB nodes on eZDSP TMS320F28335 evaluation board.
Regards,
Sachin
Please provide the waveform at CANTX pin and CANRX pin of the receiver. The waveform should clear the show the ACK pulse generated by the receiver. See SPRACE5 for sample waveforms.