2000 Jul 26
112
Philips Semiconductors
Preliminary Specification
Single-chip 8-bit microcontroller with CAN controller
P8xC591
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : B0, Arbitration lost in SLA and R/W as MST. Own SLA+R received, ACK returned.
! ACTION : DATA will be transmitted, A bit received.
!
STA is set to restart MST mode after the bus is free again.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
sstsb0
.base
0x1b0
mov
S1DAT,STD
mov
S1CON,#ENS1_STA_NOTSTO_NOTSI_AA_CR0
ajmp
INITBASE2
01B0
01B3
01B6
8548DA
75D8E5
01E8
! load DATA in S1DAT
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : B8, DATA has been transmitted, ACK received.
! ACTION : DATA will be transmitted, ACK bit is received.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
stsb8
.base
0x1b8
mov
psw,#SELRB3
mov
S1DAT,@r1
ajmp
SCON
.sect
scn
.base
0xf8
SCON:
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
01B8
01BB
01BD
75D018
87DA
01F8
00F8
75D8C5
! clr SI, set AA
00FB
00FC
00FE
09
D0D0
32
inc
pop
reti
r1
psw
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : C0, DATA has been transmitted, NOT ACK received.
! ACTION : Enter not addressed SLV mode.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
stsc0
.base
0x1c0
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
01C0
75D8C5
! clr SI, set AA
01C3
01C5
D0D0
32
pop
reti
psw
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : C8, Last DATA has been transmitted (AA=0), ACK received.
! ACTION : Enter not addressed SLV mode
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
stsc8
.base
0x1c8
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
01C8
75D8C5
! clr SI, set AA
01CB
01CD
D0D0
32
pop
reti
psw
!*****************************************************************************************************************************
! END OF SI01 INTERRUPT ROUTINE
!*****************************************************************************************************************************
LOC
OBJ
SOURCE