2000 Jul 26
111
Philips Semiconductors
Preliminary Specification
Single-chip 8-bit microcontroller with CAN controller
P8xC591
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 98, Previously addressed with general call.
!
DATA has been received, NOT ACK has been returned.
! ACTION : No save of DATA, Enter NOT addressed SLV mode.
!
Recognition of own SLA. General call recognized, if S1ADR. 01.!
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srs98
.base
0x198
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
0198
75D8C5
! clr SI, set AA
019B
019D
D0D0
32
pop
reti
psw
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : A0, A STOP condition or repeated START has been received, while still addressed as
!
SLV/REC or SLV/TRX.
! ACTION : No save of DATA, Enter NOT addressed SLV mode.
!
Recognition of own SLA. General call recognized, if S1ADR. 01.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
srsA0
.base
0x1a0
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
01A0
75D8C5
! clr SI, set AA
01A3
01A5
D0D0
32
pop
reti
psw
!*****************************************************************************************************************************
! SLAVE TRANSMITTER STATE SERVICE ROUTINES
!*****************************************************************************************************************************
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : A8, Own SLA+R received, ACK returned.
! ACTION : DATA will be transmitted, A bit received.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
stsa8
.base
0x1a8
mov
S1DAT,STD
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
01A8
01AB
8548DA
75D8C5
! load DATA in S1DAT
! clr SI, set AA
01AE
01E8
ajmp
INITBASE2
.sect
.base
INITBASE2:
ibase2
0xe8
00E8
00EB
00ED
00EE
00F0
75D018
7948
09
D0D0
32
mov
mov
inc
pop
reti
psw,#SELRB3
r1, #STD
r1
psw
LOC
OBJ
SOURCE