2000 Jul 26
108
Philips Semiconductors
Preliminary Specification
Single-chip 8-bit microcontroller with CAN controller
P8xC591
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 48, SLA+R have been transmitted, NOT ACK received.
! ACTION : STOP condition will be generated.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
mts48
.base
0x148
STOP:
mov
S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
0148
75D8D5
! set STO, clr SI
014B
014D
D0D0
32
pop
reti
psw
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 50, DATA have been received, ACK returned.
! ACTION : Read DATA of S1DAT. DATA will be received, if it is last DATA then NOT ACK will be returned
!
else ACK will be returned.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
mrs50
.base
0x150
mov
psw,#SELRB3
mov
@r0,S1DAT
ajmp
REC1
.sect
mrs50s
.base
0xc0
0150
0153
0155
75D018
A6DA
01C0
! Read received DATA
00C0
00C3
D55205
75D8C1
REC1:
djnz
mov
NUMBYTMST,NOTLDAT2
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_NOTAA_CR0
! clr SI,AA
00C6
00C8
8003
75D8C5
sjmp
mov
RETmr
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
NOTLDAT2:
! clr SI, set AA
00CB
00CC
00CE
08
D0D0
32
RETmr:
inc
pop
reti
r0
psw
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 58, DATA have been received, NOT ACK returned.
! ACTION : Read DATA of MASTER STATE SERVICE ROUTINESS1DAT and generate a STOP condition.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
mrs58
.base
0x158
mov
psw,#SELRB3
mov
@R0,S1DAT
sjmp
STOP
0158
015B
015D
75D018
A6DA
80E9
LOC
OBJ
SOURCE