2000 Jul 26
106
Philips Semiconductors
Preliminary Specification
Single-chip 8-bit microcontroller with CAN controller
P8xC591
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : STATE : 10, A repeated START condition has been transmitted.
! ACTION : SLA+R/W are transmitted, ACK bit is received.!
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
mts10
.base
0x110
mov
S1DAT,SLA
mov
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
0110
0113
8551DA
75D8C5
! Load SLA+R/W
! clr SI
010E
01A0
ajmp
INITBASE1
.sect
.base
INITBASE1:
ibase1
0xa0
00A0
00A3
00A5
00A7
00AA
00AC
75D018
7930
7838
855253
D0D0
32
mov
mov
mov
mov
pop
reti
psw,#SELRB3
r1,#MTD
r0,#MRD
BACKUP,NUMBYTMST
psw
! Save initial value
!*****************************************************************************************************************************
! MASTER TRANSMITTER STATE SERVICE ROUTINES
!*****************************************************************************************************************************
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 18, Previous state was STATE 8 or STATE 10, SLA+W have been transmitted, ACK been received. !
ACTION : First DATA is transmitted, ACK bit is received.
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -dc
.sect
mts18
.base
0x118
mov
psw,#SELRB3
mov
S1DAT,@r1
ajmp
CON
0118
011B
011D
75D018
87DA
01B5
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! STATE : 20, SLA+W have been transmitted, NOT ACK has been received
! ACTION : Transmit STOP condition.!
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.sect
mts20
.base
0x120
mov
S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
0120
75D8D5
! set STO, clr SI
0123
0125
D0D0
32
pop
reti
psw
LOC
OBJ
SOURCE