| 数据搜索系统,热门电子元器件搜索 |
|
H8S/2223 数据表(PDF) 741 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8S/2223 数据表(HTML) 741 Page - Renesas Technology Corp |
|
741 / 1071 page ![]() Section 16 I 2C Bus Interface (IIC) (Option) Rev. 5.00 Aug 08, 2006 page 655 of 982 REJ09B0054-0500 16.4.2 Initial Setting At startup the following procedure is used to initialize the IIC. Clear module stop. Start initialization Set IICE = 1 (SCRX) Set ICE = 0 (ICCR) Set SAR and SARX Set ICE = 1 (ICCR) Set ICSR Set SCRX Set ICMR Set ICCR Set MSTPB4 = 0 (IIC0) MSTPB3 = 0 (IIC1) (MSTPCRB) Enable CPU access by IIC control register and data register. Enable SAR and SARX access. Set transfer format for 1st slave address, 2nd slave address, and IIC (SVA8 to SVA0, FS, SVAX6 to SVAX0, FSX). Enable IMCR and IMDR access. Use SCL and SDA pins is IIC port. Set acknowledge bit (ACKB). Set transfer rate (IICX). Set transfer format, wait insertion, and transfer rate (MLS, WAIT, CKS2 to CKS0). Set interrupt enable, transfer mode, and acknowledge judgment (IEIC, MST, TRS, ACKE). Transmit/receive start Figure 16.6 Flowchart for IIC Initialization (Example) Note: The ICMR register should be written to only after transmit or receive operations have completed. Writing to the ICMR register while a transmit or receive operation is in progress could cause an erroneous value to be written to bit counter bits BC2 to BC0. This could result in improper operation. 16.4.3 Master Transmit Operation In I2C bus format master transmit mode, the master device outputs the transmit clock and transmit data, and the slave device returns an acknowledge signal. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |