mpc82x54a Megawin Technology, mpc82x54a Datasheet - Page 49
mpc82x54a
Manufacturer Part Number
mpc82x54a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
1.MPC82X54A.pdf
(74 pages)
- Current page: 49 of 74
- Download datasheet (3Mb)
MEGAWIN
There are two extra SFRs make relation with SPI application.
SFR: SPIDAT (SPI Data register)
SFR: SPISTAT (SPI Status register)
Configure the device to Master/Slave mode
The SFR SPIDAT holds the data to be transmitted or the data received.
SPEN SSIG
SPIF: = SPI transfer completion flag.
WCOL: = SPI Write Collision flag
0
1
1
1
1
1
1
SPIF
Bit-7
Bit-7
{1,0}: =
{1,1}: =
X
0
0
0
0
1
1
When a serial transfer finishes, the SPIF bit is set and an interrupt is generated if both the
ESPI (IE.5) bit and the EA (IE.7) bit are set. If SS is an input and is driven low when SPI is
in master mode with SSIG=0, SPIF will also be set to signal the “mode change”. The SPIF
is cleared in software by “writing 1 to this bit”.
Set the clock rate of the SPI as the frequency of the clock source over 64.
Set the clock rate of the SPI as the frequency of the clock source over 128.
The WCOL bit is set if the SPI data register SPIDAT is written during a data transfer. The
WCOL flag is cleared in software by “writing 1 to this bit”.
WCOL
SS
Bit-6
Bit-6
X
X
X
0
1
0
1
MSTR
1→0 slave
X
0
0
1
0
1
Bit-5
Bit-5
SPI disable
Active Salve
InActive Slave Hi-Z
Master
Master
Slave
Data to be transmitted or Data received
-
MPC82x54A Data Sheet
Mode
Bit-4
Bit-4
-
output input
output input
input
output input
input
GPI/O GPI/O GPI/O
MISO MOSI SPICLK
Bit-3
Bit-3
input
output output
output output
-
input
input
input
input
Bit-2
Bit-2
-
SPI is disabled.
Not selected.
SPICLK depends on CPOL
Slave
Master
Selected as slave
Convert from Master to Slave
Bit-1
Bit-1
-
Remark
Bit-0
Bit-0
-
49
Related parts for mpc82x54a
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8 Bit Micro-Controller with Voice Synthesizer and Melody
Manufacturer:
Megawin Technology Co., Ltd.
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
1-channel 350v, 50ma/80ma Constant Current Dc Led Driver
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Universal Pwm Type Led Driver
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8 Bits Microcontroller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
A Single-chip Microcontroller Based On A High Performance 1-t Architecture 80c51
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Microcontroller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Full-speed Usb Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Full-speed Usb Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Micro-controller
Manufacturer:
Megawin Technology
Datasheet: