전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

L6364 데이터시트(PDF) 19 Page - STMicroelectronics

부품명 L6364
상세설명  Dual channel transceiver IC for SIO and IO-Link sensor applications
PDF  60 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

L6364 데이터시트(HTML) 19 Page - STMicroelectronics

Back Button L6364 Datasheet HTML 15Page - STMicroelectronics L6364 Datasheet HTML 16Page - STMicroelectronics L6364 Datasheet HTML 17Page - STMicroelectronics L6364 Datasheet HTML 18Page - STMicroelectronics L6364 Datasheet HTML 19Page - STMicroelectronics L6364 Datasheet HTML 20Page - STMicroelectronics L6364 Datasheet HTML 21Page - STMicroelectronics L6364 Datasheet HTML 22Page - STMicroelectronics L6364 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 60 page
background image
8.1.10
SPI register writes outside interrupt service routines
The interrupt service routine typically accesses the SPI, and so it is necessary to avoid a collision between an
interrupt service routine SPI access and any other SPI access made from the microcontroller.
Accessing the SPI clears a short-circuit or overtemperature interrupt, and so the received value of these bits must
be recorded by the microcontroller.
If a function makes a number of sequential SPI accesses, then it is reasonable to ignore these status bits on all
but the last access, and record the values read on this last access.
It is not necessary to check the STATUS:DAT bit outside the interrupt service routine, since the data interrupt
remains active until the microcontroller responds.
8.2
Single octet UART mode
The L6364 supports an operating mode called Single octet UART mode, which performs a simplified data transfer
function, transferring one octet at a time in either direction.
In this mode, M-sequence type recognition (MSEQ:M2CNT), the number of on-demand data octets (MSEQ:OD1,
MSEQ:OD2) and checksum verification/generation are disabled and, therefore, must be realized by the
microcontroller.
Note, that an exchange is always triggered by the master. It is not possible to transmit data without first receiving
valid data. Figure 8 shows the single octet UART mode state machine. When the CCTL:SGL bit is set by the
microcontroller, the L6364 is set to single octet UART mode.
8.2.1
Buffering
The FR0 register and the L6364 UART internal register together provide double buffering of data in receive and
single buffering in transmit. In order to avoid buffer over- or under-runs it is necessary for the microcontroller to:
read FR0 before the UART writes a new octet in Receive mode (delay ca. 11xTBIT), or
write FR0 before the UART requires a new octet in Transmit mode (delay ca. 3xTBIT).
8.2.2
Receive mode
In Receive mode the L6364 has the following states:
Receive wait:
The L6364 has received a complete master octet via the CQ channel. A data interrupt is generated
(STATUS:DAT='1') and the received octet is placed in the FR0 register.
The microcontroller has access to the FR0 register and reads the received octet. The state changes to
Receive Interim.
The UART continues to run in this state receiving the following frame. A buffer over-run results if the
microcontroller does not read FR0 before the frame completes. A UART frame is 11 bits, which at
230.4kBaud gives a period of 47μs for the two SPI accesses, each of 16 bits. At 4 MHz SPI this corresponds
to an SPI delay of 4 μs.
Error conditions: parity error, stop bit, time-out (more than 4xTBIT waiting for the next UART frame on
the CQ line), or buffer under-run are signaled with a data interrupt (STATUS:DAT='1') with additionally
STATUS:CHK='1'. The microcontroller should respond by writing LINK:END and discarding any received
octets.
The master stops sending after the last master octet and so a time-out is generally detected by the L6364
in the delay while the microcontroller is preparing the response. The condition is held internally in the L6364
and discarded by the L6364 when FR0 is written by the microcontroller, initiating transmission. The timeout
is therefore not reported to the microcontroller in this case.
Receive interim:
The UART receives data on the CQ line and copies this to the FR0 register, switching to Receive wait on
completion.
Once the expected number of octets is received, the microcontroller initiates sending by writing the first octet in
the response M-sequence to FR0, thereby switching the L6364 to Transmit mode (see Section 8.2.3 ). (In single
octet UART mode the equivalent of a LINK:SND command is achieved by writing to FR0).
L6364
Single octet UART mode
DS13363 - Rev 4
page 19/60



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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