欢迎访问ic37.com |
会员登录 免费注册
发布采购

68HC912DG128PV8 参数 Datasheet PDF下载

68HC912DG128PV8图片预览
型号: 68HC912DG128PV8
PDF下载: 下载PDF文件 查看货源
内容描述: M68HC12微控制器 [M68HC12 Microcontrollers]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 452 页 / 3509 K
品牌: FREESCALE [ Freescale ]
 浏览型号68HC912DG128PV8的Datasheet PDF文件第286页浏览型号68HC912DG128PV8的Datasheet PDF文件第287页浏览型号68HC912DG128PV8的Datasheet PDF文件第288页浏览型号68HC912DG128PV8的Datasheet PDF文件第289页浏览型号68HC912DG128PV8的Datasheet PDF文件第291页浏览型号68HC912DG128PV8的Datasheet PDF文件第292页浏览型号68HC912DG128PV8的Datasheet PDF文件第293页浏览型号68HC912DG128PV8的Datasheet PDF文件第294页  
Freescale Semiconductor, Inc.  
Inter-IC Bus  
15.7 IIC Programming Examples  
15.7.1 Initialization Sequence  
Reset will put the IIC Bus Control Register to its default status. Before  
the interface can be used to transfer serial data, an initialization  
procedure must be carried out, as follows:  
1. Update the Frequency Divider Register (IBFD) and select the  
required division ratio to obtain SCL frequency from system clock.  
2. Update the IIC Bus Address Register (IBAD) to define its slave  
address.  
3. Set the IBEN bit of the IIC Bus Control Register (IBCR) to enable  
the IIC interface system.  
4. Modify the bits of the IIC Bus Control Register (IBCR) to select  
Master/Slave mode, Transmit/Receive mode and interrupt enable  
or not.  
15.7.2 Generation of START  
After completion of the initialization procedure, serial data can be  
transmitted by selecting the ’master transmitter’ mode. If the device is  
connected to a multi-master bus system, the state of the IIC Bus Busy  
bit (IBB) must be tested to check whether the serial bus is free.  
If the bus is free (IBB=0), the start condition and the first byte (the slave  
address) can be sent. The data written to the data register comprises the  
slave calling address and the LSB set to indicate the direction of transfer  
required from the slave.  
The bus free time (i.e., the time between a STOP condition and the  
following START condition) is built into the hardware that generates the  
START cycle. Depending on the relative frequencies of the system clock  
and the SCL period it may be necessary to wait until the IIC is busy after  
writing the calling address to the IBDR before proceeding with the  
following instructions. This is illustrated in the following example.  
Technical Data  
MC68HC912DG128 — Rev 3.0  
Inter-IC Bus  
For More Information On This Product,  
Go to: www.freescale.com  
 复制成功!