P87C660X2 PHILIPS [NXP Semiconductors], P87C660X2 Datasheet - Page 56

no-image

P87C660X2

Manufacturer Part Number
P87C660X2
Description
80C51 8-bit microcontroller family
Manufacturer
PHILIPS [NXP Semiconductors]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P87C660X2BBD,157
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
P87C660X2FA
Manufacturer:
AD
Quantity:
445
Part Number:
P87C660X2FA
Manufacturer:
PHILIPS
Quantity:
8 000
Part Number:
P87C660X2FA,529
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Philips Semiconductors
0000
0200
0203
0205
0207
020A
020D
020F
0212
0215
0218
021A
021D
0220
002B
002D
002F
0031
0100
0103
0105
2003 Oct 02
80C51 8-bit microcontroller family
RAM, low voltage (2.7 to 5.5 V), low power, high speed (30/33
MHz), two 400KB I
4100
75DB31
D296
D297
755001
43A8A0
C2BD
75D8C5
755204
7551C0
D2DD
755204
7551C1
D2DD
C0D0
C0D9
C050
22
75D8D5
D0D0
32
2
C interfaces
!********************************************************************************************************
! INITIALIZATION ROUTINE
! Example to initialize IIC Interface as slave receiver or slave transmitter and
! start a MASTER TRANSMIT or a MASTER RECEIVE function. 4 bytes will be transmitted or received.
!********************************************************************************************************
.sect
.base
.sect
.base
INIT:
!********************************************************************************************************
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! START MASTER TRANSMIT FUNCTION
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! START MASTER RECEIVE FUNCTION
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
!********************************************************************************************************
! SIO1 INTERRUPT ROUTINE
!********************************************************************************************************
.sect
.base
! S1STA and HADD are pushed onto the stack.
! They serve as return address for the RET instruction.
! The RET instruction sets the Program Counter to address HADD,
! S1STA and jumps to the right subroutine.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
! STATE
! ACTION : Enter not addressed SLV mode and release bus. STO reset.
!– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
.sect
.base
16 KB OTP/ROM, 512B
strt
0x00
initial
0x200
intvec
0x00
: 00, Bus error.
st0
0x100
ajmp INIT
mov
setb
setb
mov
orl
clr
mov
mov
mov
setb
mov
mov
setb
push psw
push S1STA
push HADD
ret
mov
pop
reti
S1ADR,#OWNSLA
P1(6)
P1(7)
HADD,#PAG1
IEN0,#ENSIO1
SIO1HP
S1CON, #ENS1_NOTSTA_NOTSTO_NOTSI_AA_CR0
NUMBYTMST,#0x4
SLA,#SLAW
STA
NUMBYTMST,#0x4
SLA,#SLAR
STA
S1CON,#ENS1_NOTSTA_STO_NOTSI_AA_CR0 ! clr SI
psw
56
! RESET
! Load own SLA + enable
! general call recognition
! P1.6 High level.
! P1.7 High level.
! Enable SIO1 interrupt
! SIO1 interrupt LOW priority
! Initialize SLV funct.
! Transmit 4 bytes.
! SLA+W, Transmit funct.
! set STA in S1CON
! Receive 4 bytes.
! SLA+R, Receive funct.
! set STA in S1CON
! SIO1 interrupt vector
! save psw
! JMP to address HADD,S1STA.
P8xC660X2/661X2
! set STO,AA
Product data

Related parts for P87C660X2