WANT PROGRAM FOR CAN COMMUNICATION IN LOOP-BACK MODE

View: New views
2 Messages — Rating Filter:   Alert me  

WANT PROGRAM FOR CAN COMMUNICATION IN LOOP-BACK MODE

by chaitudeepak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

         any one who has done lloop-back mode in dt512 hcs12
microcontroller pls send the program


Re: WANT PROGRAM FOR CAN COMMUNICATION IN LOOP-BACK MODE

by venkateshwarlu kacham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Here are the steps to test the loop back procedure for HC12 micro
controller.

1)Set the controller sleep mode and get the ACK for sleep mode
1)Set the loopback mode in controller register(To do this you need to go
first initialization mode, do the required initalization for CAN module,set
LOOPB and exit from initialization mode)
2)Transmit the message in normal message tranmission(Fill the hardware IDR
and data registers with you sample data)
3)Enable the TX & RX interrupts
4)In RXInterrupts have software flag where it will say LOOP back in progress
if yes compare against the transmitted message with received message from
the RX registers.
5)If DLC,CAN Id and data matches then LOOP BACK is successfull else it got
failed
6)Clear the loop back mode so normal communication will be restored.

Cheers,
Venky




On Thu, Jan 22, 2009 at 1:05 PM, chaitudeepak <chaitudeepak@...>wrote:

>   any one who has done lloop-back mode in dt512 hcs12
> microcontroller pls send the program
>
>
>


[Non-text portions of this message have been removed]