Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

RM0312 Datasheet(PDF) 181 Page - STMicroelectronics

Part # RM0312
Description  STM8TL5xxx microcontroller family
PDF  275 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

RM0312 Datasheet(HTML) 181 Page - STMicroelectronics

Back Button RM0312 Datasheet HTML 177Page - STMicroelectronics RM0312 Datasheet HTML 178Page - STMicroelectronics RM0312 Datasheet HTML 179Page - STMicroelectronics RM0312 Datasheet HTML 180Page - STMicroelectronics RM0312 Datasheet HTML 181Page - STMicroelectronics RM0312 Datasheet HTML 182Page - STMicroelectronics RM0312 Datasheet HTML 183Page - STMicroelectronics RM0312 Datasheet HTML 184Page - STMicroelectronics RM0312 Datasheet HTML 185Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 181 / 275 page
background image
DocID022352 Rev 3
181/275
RM0312
Inter-integrated circuit (I2C) interface
200
Closing the communication
The master sends a NACK for the last byte received from the slave. After receiving this
NACK, the slave releases the control of the SCL and SDA lines. Then the master can send
a Stop/Re-Start condition.
•
In order to generate the non-acknowledge pulse after the last received data byte, the
ACK bit must be cleared just after reading the second last data byte (after second last
RXNE event).
•
In order to generate the Stop/Re-Start condition, software must set the STOP/ START
bit just after reading the second last data byte (after the second last RXNE event).
•
In case a single byte is to be received, the Acknowledge deactivation and the STOP
condition generation are made just after EV6 (in EV6-1 just after ADDR is cleared).
After the Stop condition generation, the interface goes automatically back to slave mode
(MSL bit cleared).
The procedures described below are recommended if the EV7-1 software sequence is not
completed before the ACK pulse of the current byte transfer.
These procedures must be followed to make sure that the:
•
ACK bit is set low on time, before the end of the last data reception
•
STOP bit is set high after the last data reception without reception of supplementary
data.
For 2-byte reception:
•
Wait until ADDR = 1 (SCL is stretched low until the ADDR flag is cleared).
•
Set ACK low and set POS high.
•
Clear the ADDR flag.
•
Wait until BTF = 1 (data in DR, data 2 in shift register, SCL stretched low until data 1 is
read).
•
Set STOP high.
•
Read data 1 and 2.
For N > 2-byte reception, from N-2 data reception:
•
Wait until BTF = 1 (data N-2 in DR, data N-1 in shift register, SCL stretched low until
data N-2 is read).
•
Set ACK low.
•
Read data N-2.
•
Wait until BTF = 1 (data N-1 in DR, data N in shift register, SCL stretched low until data
N-1 is read).
•
Set STOP high.
•
Read data N-1 and N.



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