hi,
i am using TMS470MF06607 microcontroller . in TMS470M MCU development kit.
i can transmit and receive the data using pooling method . but i dont know how to transmit and receive using INTERRUPT HANDLER.
in canInit() function , in the CAN control register i am enable the EIE & SIE bits . (DCAN1).
I am using the DCAN1 for TRANSMIT (message object :1) and RECEIVE (message object :2).
qus 1 : i put the CAN transmit and receive functions in the scheduler. at the first time my RECEIVE function block the coding . once the receive function, receive any data means after that its not block the code . ( i put transmit function in 1 sec . and receive function in 20msec ) .
at first the data want to be receive , until the transmit function was blocked . after receive one time its not block the transmit function.
ques 2 : if i want to use the INTERRUPT HANDLER .
after transmit the data my code going to the can1HighLevelInterrupt() function , in this at first time its go into the canErrorNotification() function , and the next time only its go into the canMessageNotification() . i dont know how to use this functions, and what change i want to do in this functions .
i tried few things in this functions, but its not affect any change in the CAN registers (contol register & error and status register & interrupt register ) .
is any one can explain me how to use the interrupt handler functions . ??
thanks
arun