1996 Jun 27 98
Philips Semiconductors Product specification
8-bit microcontroller with on-chip CAN P8xC592
22.2.5 P8xC592 CAN INTERRUPT HANDLER SOFTWARE EXAMPLE (INCLUDING FAST DMA TRANSFER).
MCS-51 MACRO ASSEMBLER P8xC592 CAN interrupt-handler
LOC OBJ LINE SOURCE
1 $TITLE (8xC592 CAN interrupt-handler)
00A0 2 $NOSYMBOLS NOPAGING
00A1 3
4 ;********************************************************************************************************
5;
6 ;Very fast receive-routine for the 8xC592. It:
7 • is embedded in the interrupt-handler for the CAN-controller,
8 • uses the DMA-logic and
9 • handles up to eight different messages
00A2 10 ;(if these have the same leading 8 identifier-bits).
11 ;
12 ;To allow for faster receive-routine, it is assumed that all other routines
13 ;accessing the CAN-controller, disable the interrupt of the CAN-controller
14 ;(IEN0.5) during their execution.
00A5 15 ;
00A7 16 ;Version: 1.0
17 ;Date: 12-April-90
18 ;Author: Bernhard Reckels
19 ;at: Philips Components Application Lab., Hamburg (PCALH)
00A9 20
00AB 21 ;********************************************************************************************************
00AD 22
23 ;********************************************************************************************************
24 ;initial stuff
25 ;********************************************************************************************************
26
27 ;equatas
28
29 ;addresses of Special Function Registers
00AE 30 CANADR EQU 0DBH
00AF 31 CANDAT EQU 0DAH
32 CANCON EQU 0D9H
00B0 33 CANSTA EQU 0D8H
34