Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

STC12LE5616AD Datasheet(PDF) 272 Page - STCmicro Technology Co,.Ltd

Part # STC12LE5616AD
Description  Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
PDF  377 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STC [STCmicro Technology Co,.Ltd]
Direct Link  http://www.stcmicro.com/
Logo STC - STCmicro Technology Co,.Ltd

STC12LE5616AD Datasheet(HTML) 272 Page - STCmicro Technology Co,.Ltd

Back Button STC12LE5616AD Datasheet HTML 268Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 269Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 270Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 271Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 272Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 273Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 274Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 275Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 276Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 272 / 377 page
background image
Chapter 11. Serial Peripheral Interface (SPI)
STC12C5620AD provides another high-speed serial communication interface, the SPI interface. SPI
is a full-duplex, high-speed, synchronous communication bus with two operation modes: Master
mode and Slave mode. Up to 3Mbit/s can be supported in either Master or Slave mode under the
SYSclk=12MHz. Two status flags are provided to signal the transfer completion and write-collision
occurrence.
1. SPI Control register: SPCTL (Non bit-addressable)
SFR name Address
bit
B7
B6
B5
B4
B3
B2
B1
B0
SPCTL
85H
name
SSIG
SPEN DORD MSTR CPOL
CPHA
SPR1
SPR0
SSIG : Control whether SS pin is ignored or not.
If SSIG=1, MSTR(SPCTL.4) decides whether the device is a master or slave.
If SSIG=0, the SS pin decides whether the device is a master or slave. SS pin can be used as I/O port.
SPEN : SPI enable bit.
If SPEN=0, the SPI interface is disabled and all SPI pins will be general-purpose I/O ports.
If SPEN=1, the SPI is enabled.
DORD : Set the transmitted or received SPI data order.
If DORD=1, The LSB of the data word is transmitted first.
If DORD=0, The MSB of the data word is transmitted first.
MSTR : Master/Slave mode select bit.
If MSTR=0, set the SPI to play as Slave part.
If MSTR=1, set the SPI to play as Master part.
CPOL : SPI clock polarity select bit.
If CPOL=1, SPICLK is high level when in idle mode. The leading edge of SPICLK is the falling edge
and the trailing edge is the rising edge.
If CPOL=0, SPICLK is low when idle. The leading edge of SPICLK is the rising edge and the trailing
edge is the falling edge.
CPHA : SPI clock phase select bit.
If CPHA=1, Data is driven on the leading edge of SPICLK, and is sampled on the trailing edge.
If CPHA=0, Data is driven when SS pin is low (SSIG=0) and changes on the trailing edge of SPICLK.
Data is sampled on the leading edge of SPICLK. (Note : If SSIG=1, CPHA must not be 0,
otherwise the operation is undefined)
11.1 Special Function Registers related with SPI
Mnemonic
Description
Address
Bit address and Symbol
Reset
Value
B7
B6
B5
B4
B3
B2
B1
B0
SPCTL
SPI Control Register
85H
SSIG SPEN
DORD MSTR CPOL CPHA SPR1
SPR0 0000,0100
SPSTAT SPI Status Register
84H
SPIF WCOL
-
-
-
-
-
-
00xx,xxxx
SPDAT
SPI Data Register
86H
0000,0000
SPI Management SFRs
272



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com