поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

RM0312 датащи(PDF) 207 Page - STMicroelectronics

номер детали RM0312
подробное описание детали  STM8TL5xxx microcontroller family
PDF  275 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

RM0312 датащи(HTML) 207 Page - STMicroelectronics

Back Button RM0312 Datasheet HTML 203Page - STMicroelectronics RM0312 Datasheet HTML 204Page - STMicroelectronics RM0312 Datasheet HTML 205Page - STMicroelectronics RM0312 Datasheet HTML 206Page - STMicroelectronics RM0312 Datasheet HTML 207Page - STMicroelectronics RM0312 Datasheet HTML 208Page - STMicroelectronics RM0312 Datasheet HTML 209Page - STMicroelectronics RM0312 Datasheet HTML 210Page - STMicroelectronics RM0312 Datasheet HTML 211Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 207 / 275 page
background image
DocID022352 Rev 3
207/275
RM0312
Serial peripheral interface (SPI)
223
20.3.4
Configuring the SPI for simplex communications
The SPI is capable of operating in simplex mode in 2 configurations.
1 clock and 1 bidirectional data wire
1 clock and 1 data wire (Receive-only or Transmit-only)
1 clock and 1 bidirectional data wire
This mode is enabled by setting the BDM bit in the SPI_CR2 register. In this mode SCK is
used for the clock, and MOSI in master or MISO in slave mode is used for data
communication. The transfer direction (Input/output) is selected by the BDOE bit in the
SPI_CR2 register. When this bit is set to 1, the data line is output, otherwise it is input.
1 clock and 1 unidirectional data wire (BDM = 0)
In this mode, the application can use the SPI either in transmit-only mode or in receive-only
mode:
Transmit-only mode is similar to full-duplex mode (BDM = 0, RXONLY = 0): the data is
transmitted to the transmit pin (MOSI in master mode or MISO in slave mode) and the
receive pin (MISO in master mode or MOSI in slave mode) can be used as general
purpose I/O. In this case, the application just needs to ignore the Rx buffer (if the data
register is read, it does not contain the received value).
In receive-only mode, the application can disable the SPI output function by setting the
RXONLY bit in the SPI_CR2 register. In this case, it frees the transmit I/O pin (MOSI in
master mode or MISO in slave mode) so it can be used for other purposes.
To start the communication in receive-only mode, configure and enable the SPI:
In master mode, the communication starts immediately and stops when the SPE bit is
reset and the current reception stops. There is no need to read the BSY flag in this
mode. It is always set when an SPI communication is ongoing.
In slave mode, the SPI continues to receive as long as the NSS is pulled down (or the
SSI bit is reset in NSS software mode) and the SCK is running.
20.3.5
Data transmission and reception procedures
Rx and Tx buffer
In reception, data are received and then stored into an internal Rx buffer while In
transmission, data are first stored into an internal Tx buffer before being transmitted.
A read access of the SPI_DR register returns the Rx buffered value whereas a write access
of the SPI_DR stores the written data into the Tx buffer.
Start sequence in master mode
In full-duplex (BDM = 0 and RXONLY = 0)
The sequence begins when data is written into the SPI_DR register (Tx buffer).
The data is then parallel loaded from the Tx buffer into the 8-bit shift register
during the first bit transmission and then shifted out serially to the MOSI pin.
At the same time, the received data on MISO pin is shifted in serially to the 8-bit
shift register and then parallel loaded into the SPI_DR register (Rx Buffer).



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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