công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN2511 bảng dữ liệu(PDF) 23 Page - STMicroelectronics

tên linh kiện AN2511
Giải thích chi tiết về linh kiện  This application note describes
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2511 bảng dữ liệu(HTML) 23 Page - STMicroelectronics

Back Button AN2511 Datasheet HTML 19Page - STMicroelectronics AN2511 Datasheet HTML 20Page - STMicroelectronics AN2511 Datasheet HTML 21Page - STMicroelectronics AN2511 Datasheet HTML 22Page - STMicroelectronics AN2511 Datasheet HTML 23Page - STMicroelectronics AN2511 Datasheet HTML 24Page - STMicroelectronics AN2511 Datasheet HTML 25Page - STMicroelectronics AN2511 Datasheet HTML 26Page - STMicroelectronics AN2511 Datasheet HTML 27Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 43 page
background image
AN2511
PMBus commands and source code
Doc ID 13286 Rev 2
23/43
PCOR = CONTROL ;
PCDR = CONTROL ;
/*----------------------- Alert Interrupt configuration ---------------------
----------*/
EnableInterrupts;
/* Resets interrupt mask */
MISCR1 = 0x10 ;
/* EI0 on falling edge low level for Alert interrupt */
/*---------------------PMBus communication configuration-------------------*/
while (1)
{
/* I2C configuration: ST7 I2C address 0x30, communication speed 100kHz */
PMBus_Init (SMBs_MISC, SLAVEADD, 0x40, 0x23);
/* Checking if an alert signal is received from slave */
if (SMBus_Mode & SMB_ARA)
{
/* ST7 I2C sends the alert response address to check which slave
alerted */
PMBus_Err = SMBm_ReceiveByte (ALERTRESPONSEADD, Data_Buff);
/* Alerted slave address will be used for any further communication */
PMBus_SlaveAdd = *Data_Buff ;
SMBus_Mode &= (unsigned char) ~SMB_ARA ;
}
Command_Code =
0x01;
/* User should enter the PMBus command code here */
PMBus_CommandWrite (Command_Code);
/* Writes data from Data_Buff */
Command_Code =
0x02;
/* User should enter the PMBus command code here */
/* Read data and store it in Data_Buff */
PMBus_CommandRead (Command_Code);
if (SMB_Err_Status)
{
/* I2C status register read to clear any
errors
*/
SMB_Err_Status = I2CSR2 ;
SMB_Err_Status = 0 ;
}
}
/* End of while (1) */
}
/* End of main */
3.4
Limitations
1.
The SMBus driver used in this application note is tested only for write word, read word
and write block protocols with PEC disabled.
2.
The SMBus driver doesn't meet the clock low extending feature of SMBus v1.1 due to
the limitation of the I2C peripheral.
3.
In case of PEC, when slave is acting as receiver, the ACK bit is not disabled if the PEC
received from master transmitter is different from slave. It is stored in the user address
as the last byte. It is the responsibility of the user to check the master PEC with the
slave PEC to decide on data validity.



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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