2000 Jul 26
110
Philips Semiconductors
Preliminary Specification
Single-chip 8-bit microcontroller with CAN controller
P8xC591
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 80, Previously addressed with own SLA. DATA received, ACK returned.
! ACTION : Read DATA.
!
IF received DATA was the last
!
THEN superfluous DATA will be received and NOT ACK returned
!
ELSE next DATA will be received and ACK returned.!
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs80
.base
0x180
mov
psw,#SELRB3
mov
@r0,S1DAT
ajmp
REC2
0180
0183
0185
75D018
A6DA
01D8
! Read received DATA
.sect
.base
srs80s
0xd8
00D8
00DA
D906
75D8C1
REC2:
LDAT:
djnz
mov
r1,NOTLDAT3
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_NOTAA_CR0
! clr SI,AA
00DD
00DF
00E0
D0D0
32
75D8C5
pop
reti
mov
psw
NOTLDAT3:
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
! clr SI, set AA
00E3
00E4
00E6
08
D0D0
32
inc
pop
reti
r0
psw
RETsr:
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 88, Previously addressed with own SLA. DATA received NOT ACK returned.
! ACTION : No save of DATA, Enter NOT addressed SLV mode.
!
Recognition of own SLA. General call recognized, if S1ADR. 01.!
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs88
.base
0x188
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
0188
75D8C5
! clr SI, set AA
018B
01E4
ajmp
RETsr
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 90, Previously addressed with general call. DATA has been received, ACK has been returned.
! ACTION : Read DATA.
!
After General call only one byte will be received with ACK the second DATA
!
will be received with NOT ACK.
!
DATA will be received and NOT ACK returned.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs90
.base
0x190
mov
psw,#SELRB3
mov
@r0,S1DAT
ajmp
LDAT
0190
0193
0195
76D018
A6DA
01DA
! Read received DATA
LOC
OBJ
SOURCE