2000 Jul 26
109
Philips Semiconductors
Preliminary Specification
Single-chip 8-bit microcontroller with CAN controller
P8xC591
!*****************************************************************************************************************************
! SLAVE RECEIVER STATE SERVICE ROUTINES
!*****************************************************************************************************************************
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 60, Own SLA+W have been received, ACK returned.
! ACTION : DATA will be recMASTER STATE SERVICE ROUTINESeived and ACK returned.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs60
.base
0x160
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
0160
75D8C5
! clr SI, set AA
0163
0166
75D018
01D0
mov
ajmp
psw,#SELRB3
INITSRD
.sect
.base
insrd
0xd0
00D0
00D2
00D4
00D6
7840
7908
D0D0
32
INITSRD:
mov
mov
pop
reti
r0,#SRD
r1,#8
psw
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 68, Arbitration lost in SLA and R/W as MST Own SLA+W have been received, ACK returned
! ACTION : DATA will be received and ACK returned. STA is set to restart MST mode after the bus is free again.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs68
.base
0x168
mov
S1CON,#ENS1_STA_NOTSTO_NOTSI_AA_CR0
mov
psw,#SELRB3
ajmp
INITSRD
0168
016B
016E
75D8E5
75D018
01D0
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 70, General call has been received, ACK returned.
! ACTION : DATA will be received and ACK returned.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs70
.base
0x170
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
0170
75D8C5
! clr SI, set AA
! Initialize SRD counter
0173
0176
75D018
01D0
mov
ajmp
psw,#SELRB3
initsrd
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 78, Arbitration lost in SLA+R/W as MST. General call has been received, ACK returned.
! ACTION : DATA will be received and ACK returned. STA is set to restart MST mode after the bus is free again.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs78
.base
0x178
mov
S1CON,#ENS1_STA_NOTSTO_NOTSI_AA_CR0
mov
psw,#SELRB3
ajmp
INITSRD
0178
017B
017E
75D8E5
75D018
01D0
! Initialize SRD counter
LOC
OBJ
SOURCE