Philips Semiconductors
Product data
P83C654X2/P87C654X2
80C51 8-bit microcontroller family
16 kB OTP/ROM,
256B RAM, low voltage (2.7 to 5.5 V), low power, high speed
(30/33 MHz)
2004 Apr 20
54
!********************************************************************************************************
!********************************************************************************************************
! MASTER STATE SERVICE ROUTINES
!********************************************************************************************************
! State 08 and State 10 are both for MST/TRX and MST/REC.
! The R/W bit decides whether the next state is within
! MST/TRX mode or within MST/REC mode.
!********************************************************************************************************
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE
: 08, A, START condition has been transmitted.
! ACTION
: SLA+R/W are transmitted, ACK bit is received.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
mts8
.base
0x108
0108
010B
8551DA
75D8C5
mov
mov
S1DAT,SLA
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
! Load SLA+R/W
! clr SI
010E
01A0
ajmp INITBASE1
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE
: 10, A repeated START condition has been
!
transmitted.
! ACTION
: SLA+R/W are transmitted, ACK bit is received.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
mts10
.base
0x110
0110
0113
8551DA
75D8C5
mov
mov
S1DAT,SLA
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
! 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 has been received.
! ACTION
: First DATA is transmitted, ACK bit is received.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
mts18
.base
0x118
0118
011B
011D
75D018
87DA
01B5
mov
mov
ajmp CON
psw,#SELRB3
S1DAT,@r1