Hi Kef,
I did test the components individually. Digital signals are working fine without CAN integration in it but when combined with CAN, digital signal counters are running but not the variable updation.
When I run the program, or set a breakpoint at the timer channel interrupt, it stops at delay counter. I think there is an issue with the delay counter n if I sont include the delay at all, the program stops at while loop (wait for transmission complete).
and,
I am clearing the specific channel's flag by writing a 1 to C5F bit of TFLG1 register and not all the flags. If thats so, I have cleared all flags of TFLG1 by writing 0xFF to it in the ECT initialization.
You are correct that I have defined an array of txbuff but not able to access the 7th element of it.I will look into it.
Hope you got me clearly this time.
Thank you.