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
55
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE
: 20, SLA+W have been transmitted, NOT ACK has been received
! ACTION
: Transmit STOP condition.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
mts20
.base
0x120
0120
75D8D5
mov
S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
! set STO, clr SI
0123
0125
D0D0
32
pop
reti
psw
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE
: 28, DATA of S1DAT have been transmitted, ACK received.
! ACTION
: If Transmitted DATA is last DATA then transmit a STOP condition,
!
else transmit next DATA.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
mts28
.base
0x128
0128
012B
D55285
75D8D5
djnz
mov
NUMBYTMST,NOTLDAT1
S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
! JMP if NOT last DATA
! clr SI, set AA
012E
01B9
ajmp RETmt
.sect
.base
NOTLDAT1:
mts28sb
0x0b0
00B0
00B3
00B5
75D018
87DA
75D8C5
mov
mov
mov
psw,#SELRB3
S1DAT,@r1
S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
CON:
! clr SI, set AA
00B8
00B9
00BB
09
D0D0
32
inc
pop
reti
r1
psw
RETmt :
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE
: 30, DATA of S1DAT have been transmitted, NOT ACK received.
! ACTION
: Transmit a STOP condition.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
mts30
.base
0x130
0130
75D8D5
mov
S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
! set STO, clr SI
0133
0135
D0D0
32
pop
reti
psw
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE
: 38, Arbitration lost in SLA+W or DATA.
! ACTION
: Bus is released, not addressed SLV mode is entered.
!
A new START condition is transmitted when the IIC-bus is free again.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
mts38
.base
0x138
0138
013B
013E
75D8E5
855352
01B9
mov
mov
ajmp RETmt
S1CON,#ENS1_STA_NOTSTO_NOTSI_AA_CR0
NUMBYTMST,BACKUP