AN2283 Freescale Semiconductor / Motorola, AN2283 Datasheet - Page 30

no-image

AN2283

Manufacturer Part Number
AN2283
Description
Scalable Controller Area Network (MSCAN)
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2283/D
30
Notes:
1. In order to clear the bits in the CRFLG register write a 1 to the bit while it’s set.
2. An exclusive OR operation 1
3. Do not use the BSET instructions to clear bits. However, the LDA and STA instructions can be used. Take care that any
IN THE CRIER REGISTER
USER INTERRUPT CODE
WARNING INTERRUPT
RECEIVER WARNING
C compiler being used does not use the BSET instructions.
CLEAR RWRNIE = 0
END OF RECEIVER
CLEAR RERRIF = 0
SET RERRIE = 1
(SEE NOTES)
ADDITIONAL
INTERRUPT
(96 <= REC <128)
RWRNIF = 1
BEGINNING OF THE APPLICATION CODE
Figure 22. Example Receiver Error Interrupt Flowchart
Motorola Scalable Controller Area Network (MSCAN) Interrupts
AND ENABLE RWRNIE = 1
ERROR INTERRUPTS
ENABLE RERRIE = 1
READ THE CRFLG
INITIALIZE CHIP
(REC = TEC = 0)
Freescale Semiconductor, Inc.
REGISTER
1 = 0 is performed on the bit.
For More Information On This Product,
Go to: www.freescale.com
(128 <= REC <= 255)
RERRIF = 1
IN THE CRIER REGISTER
USER INTERRUPT CODE
ERROR INTERRUPT
CLEAR RWRNIF = 0
END OF RECEIVER
RECEIVER ERROR
CLEAR RERRIE = 0
SET RWRNIE = 1
(SEE NOTES)
ADDITIONAL
INTERRUPT
REC < 96
END OF THE MAIN LINE CODE
USE THE POLLING METHOD
USE THE POLLING METHOD
CLEAR RWRNIF = 0
IN MAIN LINE CODE
READ THE RWRNIF
BIT IN THE CRFLG
(SEE NOTES)
RWRNIF = 1
REGISTER
RWRNIF = 0
MOTOROLA
RWRNIF = 1

Related parts for AN2283