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

X  

STM8S датащи(PDF) 311 Page - STMicroelectronics

номер детали STM8S
подробное описание детали  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM8S датащи(HTML) 311 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 307Page - STMicroelectronics STM8S Datasheet HTML 308Page - STMicroelectronics STM8S Datasheet HTML 309Page - STMicroelectronics STM8S Datasheet HTML 310Page - STMicroelectronics STM8S Datasheet HTML 311Page - STMicroelectronics STM8S Datasheet HTML 312Page - STMicroelectronics STM8S Datasheet HTML 313Page - STMicroelectronics STM8S Datasheet HTML 314Page - STMicroelectronics STM8S Datasheet HTML 315Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 311 / 467 page
background image
DocID14587 Rev 14
311/467
RM0016
Inter-integrated circuit (I2C) interface
319
Bit 2 BTF: Byte transfer finished (7)(8)
0: Data byte transfer not done
1: Data byte transfer succeeded
– Set by hardware when NOSTRETCH=0 and:
–
In reception when a new byte is received (including ACK pulse) and DR has not been read
yet (RXNE=1).
–
In transmission when a new byte should be sent and DR has not been written yet (TXE=1).
– Cleared by software reading SR1 followed by either a read or write in the DR register or by hardware
after a start or a stop condition in transmission or when PE=0.
Bit 1 ADDR: Address sent (master mode)/matched (slave mode) (8)(9)
This bit is cleared by software reading SR1 register followed reading SR3, or by hardware when PE=0.
– Address matched (Slave)
0: Address mismatched or not received.
1: Received address matched.
–
Set by hardware as soon as the received slave address matched with the OAR registers
content or a general call or a SMBus is recognized. (when enabled depending on
configuration).
– Address sent (Master)
0: No end of address transmission
1: End of address transmission
–
For 10-bit addressing, the bit is set after the ACK of the 2nd byte.
–
For 7-bit addressing, the bit is set after the ACK of the byte.
Note: ADDR is not set after a NACK reception
Bit 0 SB: Start bit (Master mode) (8)
0: No Start condition
1: Start condition generated.
–
Set when a Start condition generated.
–
Cleared by software by reading the SR1 register followed by writing the DR register, or by
hardware when PE=0
1. The interrupt will be generated when DR is copied into shift register after an ACK pulse. If a NACK is received, copy is not
done and TXE is not set.
2. The interrupt will be generated when Shift register is copied into DR after an ACK pulse.
3. RXNE is not set in case of ARLO event.
4. The STOPF bit is not set after a NACK reception.
5. It is recommended to perform the complete clearing sequence (READ SR1 then WRITE CR2) after STOPF is set. Refer to
Figure 103: Transfer sequence diagram for slave receiver on page 293
6. The ADD10 bit is not set after a NACK reception.
7. The BTF bit is not set after a NACK reception, or in case of an ARLO event.
8. Due to timing constraints, when in standard mode if CCR is less than 9 (i.e. with peripheral clock below 2 MHz) with
fMASTER = fCPU and the event interrupt disabled, the following procedure must be followed:
modify the reset sequence in order to insert at least 5 cycles between each operations in the flag clearing sequence. For
example, when fMASTER = fCPU = 1 MHz, use the following sequence to poll the SB bit:
_label_wait: BTJF I2C_SR1,SB,_label_wait
NOP ;
NOP;
NOP ;
NOP
NOP
LD I2C_DR, A ; once executed, the SB bit is then cleared.
9. In slave mode, it is recommended to perform the complete clearing sequence (READ SR1 then READ SR3) after ADDR is
set. Refer to Figure 103: Transfer sequence diagram for slave receiver on page 293.



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