p89v660 NXP Semiconductors, p89v660 Datasheet - Page 54

no-image

p89v660

Manufacturer Part Number
p89v660
Description
P89v660/p89v662/p89v664 8-bit 80c51 5 V Low Power 16 Kb/32 Kb/64 Kb Flash Microcontroller With 512 B/1 Kb/2 Kb Ram, Dual I2c-bus, Spi
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p89v660FA
Manufacturer:
PHI
Quantity:
5 530
Part Number:
p89v660FA
Manufacturer:
PHI
Quantity:
5 530
Part Number:
p89v660FA
Manufacturer:
NXP
Quantity:
12 388
Part Number:
p89v660FA
Manufacturer:
INT
Quantity:
5 600
Part Number:
p89v660FA
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
p89v660FA,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
p89v660FAЈ¬512
Manufacturer:
PHI
Quantity:
5 530
Part Number:
p89v660FBC,557
Manufacturer:
NXP Semiconductors
Quantity:
10 000
NXP Semiconductors
P89V660_662_664_2
Product data sheet
Fig 23. SPI master-slave interconnection
CLOCK GENERATOR
SPI
pin is the clock output and input for the master and slave modes, respectively. The SPI
clock generator will start following a write to the master devices SPI data register. The
written data is then shifted out of the MOSI pin on the master device into the MOSI pin of
the slave device. Following a complete transmission of one byte of data, the SPI clock
generator is stopped and the SPIF flag is set. An SPI interrupt request will be generated if
the SPI Interrupt Enable bit (SPIE) and the SPI interrupt enable bit, ES3, are both set.
An external master drives the Slave Select input pin, SS LOW to select the SPI module as
a slave. If SS has not been driven LOW, then the slave SPI unit is not active and the MOSI
pin can also be used as an input port pin.
CPHA and CPOL control the phase and polarity of the SPI clock.
show the four possible combinations of these two bits.
Table 40.
Bit addressable; Reset source(s): any reset; Reset value: 0000 0000B
Table 41.
Bit
7
6
5
4
3
Bit
Symbol
8-BIT SHIFT REGISTER
MSB master LSB
SPCR - SPI control register (address D5H) bit allocation
SPCR - SPI control register (address D5H) bit description
Symbol
SPIE
SPEN
DORD
MSTR
CPOL
SPIE
7
Rev. 02 — 29 January 2008
SPEN
6
Description
If both SPIE and ES3 are set to one, SPI interrupts are enabled.
SPI enable bit. When set enables SPI.
Data transmission order. 0 = MSB first; 1 = LSB first in data
transmission.
Master/slave select. 1 = master mode, 0 = slave mode.
Clock polarity. 1 = SCK is high when idle (active LOW), 0 = SCK is low
when idle (active HIGH).
DORD
SCK
MISO
MOSI
SS
V
5
DD
80C51 with 512 B/1 kB/2 kB RAM, dual I
V
MISO
MOSI
SS
SCK
SS
MSTR
4
CPOL
P89V660/662/664
3
8-BIT SHIFT REGISTER
MSB slave LSB
CPHA
2
Figure 24
© NXP B.V. 2008. All rights reserved.
SPR1
002aaa528
1
and
2
C-bus, SPI
Figure 25
SPR0
54 of 89
0

Related parts for p89v660