付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、S3C44B0X IIC BUS INTERFACE 李贺超:SC06010056林 健:SC06010031陈小勇:SC06010054SIA-USTCS3C44B0X IIC Bus Interface2OutlineIIC serious bus overviewS3C44B0X IIC bus interface exampleSIA-USTCS3C44B0X IIC Bus Interface3Introduction to IIS bus early 1980s, Philips Semiconductors to provide an easy way to connect a
2、CPU to peripheral chips in a TV-set. to provide a communication link between Integrated Circuits. Inter-IC busintelligent control devices , general-purpose circuits , application-oriented circuits SIA-USTCS3C44B0X IIC Bus Interface4Introduction to IIS bus Today in many other application fieldsaccept
3、ed in the industry as a de-facto standard has been adopted by several leading chip manufacturers like Xicor, Intel, Texas Instruments, Maxim, Atmel, Analog Devices and others. SIA-USTCS3C44B0X IIC Bus Interface5I2C Device CategoriesTV ReceptionRadio ReceptionAudio ProcessingInfrared ControlDTMFLCD d
4、isplay controlClocks/timersGeneral Purpose I/OLED display control Bus Extension/ControlA/D and D/A ConvertersEEPROM/RAMHardware MonitorsMicrocontrollerSIA-USTCS3C44B0X IIC Bus Interface6Appliance can be linkedSIA-USTCS3C44B0X IIC Bus Interface7I2C Bus Speedin the 2001 standard version:Standard; 100k
5、bpsFast mode; 400kbpsHigh speed mode 3.4Mbps HS Mode.Note:While the 2006 version defines the Fast Mode Plus speed grade which increase the bus speed to 1MBps.SIA-USTCS3C44B0X IIC Bus Interface8Pros and Cons of the different busesSIA-USTCS3C44B0X IIC Bus Interface9IIC bus interfaceSIA-USTCS3C44B0X II
6、C Bus Interface10TermsSDA - Serial data line SCL - Serial clock line Transmitter & ReceiverMaster & Slave Multi-masterArbitration SynchronizationSIA-USTCS3C44B0X IIC Bus Interface11I2C Read and Write Operations SIA-USTCS3C44B0X IIC Bus Interface12START and STOP conditions Start: first pulls the SDA
7、(data) line low, and next pulls the SCL (clock) line low. End :The Bus Master first releases the SCL and then the SDA line.SIA-USTCS3C44B0X IIC Bus Interface13Transmitting a byte to a slave Start condition has been sent Transmitted MSB first reserved addresses for special purposes SIA-USTCS3C44B0X I
8、IC Bus Interface14Receiving a byte from a slavethe slave has been addressed , R/W bit set to 1 ,slave has acknowledgedTransmitted MSB firstSIA-USTCS3C44B0X IIC Bus Interface15IIC bus arbitrationthe master who is pulling the line LOW always wins the arbitration Master can start a transfer only if the
9、 bus is free Several masters can start a transfer at the same time Arbitration is done on SDA line while SCL is HIGH ,Slaves are not involvedMaster that lost the arbitration must stop sending data a STOP condition to appear on the bus SIA-USTCS3C44B0X IIC Bus Interface16IIC bus arbitrationSIA-USTCS3
10、C44B0X IIC Bus Interface17Clock Synchronization LOW period determined by the longest clock LOW periodHIGH period determined by shortest clock HIGH periodSIA-USTCS3C44B0X IIC Bus Interface18IIC Special AddressesAddressR/WDesignation0000-0000General Call address 0000-0001START byte 0000-001xReserved f
11、or the (now obsolete) C-Bus format 0000-010 xReserved for a different bus format0000-011xReserved for future purposes 0000-1xxxReserved for future purposes1111-1xxxReserved for future purposes1111-0 xxx 10-bit slave addressing modeSIA-USTCS3C44B0X IIC Bus Interface19Extended Addressing (10-bit)7-bit
12、 address space got exhausted receives two address bytes completely transparent for the other devices on the bus SIA-USTCS3C44B0X IIC Bus Interface20I2C Summary -AdvantagesSimple Hardware standardSimple protocol standardEasy to add / remove functions or devices (hardware and software)Easy to upgrade
13、applicationsSimpler PCB: Only 2 traces required to communicate between devicesSIA-USTCS3C44B0X IIC Bus Interface21I2C Summary -AdvantagesVery convenient for monitoring applicationsFast enough for all “Human Interfaces” applicationsDisplays, Switches, KeyboardsControl, Alarm systemsLarge number of di
14、fferent I2C devices in the semiconductors businessWell known and robust busSIA-USTCS3C44B0X IIC Bus Interface22Standard Philips Copyright notice Purchase of Philips I2C components conveys a license under the Philips I2C patent to use the components in the I2C system, provided the system conforms to
15、the I2C specifications defined by Philips. SIA-USTCS3C44B0X IIC Bus Interface23OUTLINEIIC serious bus overviewS3C44B0X IIC bus interface ExampleSIA-USTCS3C44B0X IIC Bus Interface24S3C44B0X IIC bus interface 1 Multi-Master IIC-Bus with interrupt-based operation.Serial, 8-bit oriented, bi-directional
16、data transfers can be made at up to 100 Kbps in the standard mode or up to 400 Kbps in the fast mode.60 IICSDA/GPF1(by default)61 IICSCL/GPF0 (by default)SIA-USTCS3C44B0X IIC Bus Interface25Relative registerPCONF 0 x01D20034 PF0 1:0=10(IICSCL) PF1 3:2=10 (IICSDA)CLKCON.13 0 x01D80004 Controls MCLK i
17、nto IIC block 0 = Disable, 1 = Enable (by default)INTPND.5 0 x01E00008 0 = IRQ mode(default),1 = FIQ modeINTMSK.5 0 x01E0000C 0 = Service available 1 = Masked (default)I_PSLV 0 x01E00010IICCON 0 x01d60000 IIC Control 0000_XXXXIICSTAT 0 x01d60004 IIC Status 0000_0000IICADD 0 x01d60008 IIC AddressIICD
18、S 0 x01d6000c IIC Data ShiftSIA-USTCS3C44B0X IIC Bus Interface26IIC-Bus Block DiagramSIA-USTCS3C44B0X IIC Bus Interface27CONTROL REGISTERSIA-USTCS3C44B0X IIC Bus Interface28CONTROL/STATUS REGISTERSIA-USTCS3C44B0X IIC Bus Interface29ADDRESS REGISTERSIA-USTCS3C44B0X IIC Bus Interface30TRANSMIT/RECEIVE
19、 DATA SHIFT REGISTERSIA-USTCS3C44B0X IIC Bus Interface31Operations for Master /Receiver ModeOperations for Master /TransmitterModeSIA-USTCS3C44B0X IIC Bus Interface32Operations for Slave /TransmitterModeOperations for Slave/ ReceiverModeSIA-USTCS3C44B0X IIC Bus Interface33OUTLINEIIC serious bus overviewS3C44B0X IIC bus interface ExampleSIA-USTCS3C44B0X IIC Bus Interface34Examplevoid Test_Iic(vo
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026 年护理带教中临床思维能力培养路径
- 2026 年产科新生儿窒息复苏配合护理要点
- 2026年心内科高血压合并糖尿病联合护理
- 全椒县2025安徽滁州市全椒县农业农村局招聘1人笔试历年参考题库典型考点附带答案详解
- 2026年安全生产月安全知识竞赛题库(含答案)试卷及答案
- 2026年大学农业工程(农业机械化推广)试题及答案
- 2026年高职(园林技术)绿化工程实训综合测试题及答案
- 2026年六年级数学小升初衔接模拟试卷(含答案解析)
- 2026年企业战略目标与资源配置方案
- 2026学年四年级上册期末学业质量评价语文试题(含答案)
- 上海市2026年中考数学试题(附答案)
- 浙江省劳动合同
- 2026天津石油职业技术学院招聘20人笔试题库带答案详解(B卷)
- 2026年交管12123驾驶证学法减分试题(含参考答案)
- 《自我保护免受伤害》教学课件 - 2026-2027 学年统编版(新教材)小学道德与法治四年级上册
- 2026中国远洋渔业船舶智能化改造需求与卫星通信系统标配化
- 2026年(完整版)国家GCP培训考试题库及参考答案(完整版)
- 中考英语作文10宾语从句写作句型练习
- 2026年船舶驾驶员考试题库及答案
- 预防接种规范培训课件教学
- 项目技术标述标
评论
0/150
提交评论