天嵌 ARM开发社区

 找回密码
 注册
查看: 2655|回复: 1

iic的中断是如何产生的

[复制链接]
xinghun_4 发表于 2009-12-11 21:18:45 | 显示全部楼层 |阅读模式
本帖最后由 xinghun_4 于 2009-12-11 21:20 编辑

_iicMode      = WRDATA;
        _iicPt        = 0;
        _iicData[0]   = (U8)addr;
        _iicData[1]   = data;
        _iicDataCount = 2;
   
        rIICDS   = slvAddr;                 //0xa0
        rIICSTAT = 0xf0;                    //MasTx,Start
        //Clearing the pending bit isn't needed because the pending bit has been cleared.
   
        while(_iicDataCount!=-1);

请问,iic中断如何产生??datasheet看了几遍,还是看不懂中断如何产生
亚瑟王 发表于 2009-12-14 13:58:49 | 显示全部楼层
建议看一下datasheet中IIC总线部分的主、从、收和发的4个示例截图,图中标明了的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-5-2 19:39 , Processed in 2.045956 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表