Philips Semiconductors
Preliminary specification
80C51 8-bit microcontroller
8K/256 OTP, 8 channel 10 bit A/D, I2C, PWM,
capture/compare, high I/O, low voltage (2.7V–5.5V), low power
P87C552
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE : 20, SLA+W have been transmitted, NOT ACK has been received
! ACTION : Transmit STOP condition.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
.base
mts20
0x120
0120
75D8D5
mov S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
! set STO, clr SI
0123
0125
D0D0
32
pop psw
reti
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! 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
.base
mts28
0x128
0128
012B
D55285
75D8D5
djnz NUMBYTMST,NOTLDAT1
mov S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
! JMP if NOT last DATA
! clr SI, set AA
012E
01B9
ajmp RETmt
.sect
.base
mts28sb
0x0b0
00B0
00B3
00B5
75D018
87DA
75D8C5
NOTLDAT1:
mov psw,#SELRB3
mov S1DAT,@r1
mov S1CON,#ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
! clr SI, set AA
CON:
00B8
00B9
00BB
09
D0D0
32
inc
pop psw
reti
r1
RETmt
:
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE : 30, DATA of S1DAT have been transmitted, NOT ACK received.
! ACTION : Transmit a STOP condition.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
.base
mts30
0x130
0130
75D8D5
mov S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0
! set STO, clr SI
0133
0135
D0D0
32
pop psw
reti
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! 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
.base
mts38
0x138
0138
013B
013E
75D8E5
855352
01B9
mov S1CON,#ENS1_STA_NOTSTO_NOTSI_AA_CR0
mov NUMBYTMST,BACKUP
ajmp RETmt
55
1999 Mar 30