OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4461|回复: 4

请问,stm32怎么实现硬件iic接收总线上一切数据

[复制链接]

12

主题

67

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
260
金钱
260
注册时间
2014-9-18
在线时间
47 小时
发表于 2014-9-27 11:16:00 | 显示全部楼层 |阅读模式
5金钱
请问大神,stm32怎么实现硬件iic接收总线上一切数据,就是不论什么地址总线上的数据全部接受?谢谢

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

120

主题

7878

帖子

13

精华

资深版主

Rank: 8Rank: 8

积分
12012
金钱
12012
注册时间
2013-9-10
在线时间
427 小时
发表于 2014-9-27 13:45:23 | 显示全部楼层
现在,程序把烂铜烂铁变得智能化了,人呢,一旦离开了这烂铜烂铁就不知道干啥了
回复

使用道具 举报

12

主题

67

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
260
金钱
260
注册时间
2014-9-18
在线时间
47 小时
 楼主| 发表于 2014-9-27 14:25:58 | 显示全部楼层
回复【3楼】Badu_Space:
---------------------------------
呵呵,把关于地址的语句全部屏蔽,其实我也不知道怎么改
回复

使用道具 举报

4

主题

200

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
236
金钱
236
注册时间
2012-12-19
在线时间
0 小时
发表于 2014-9-27 16:32:38 | 显示全部楼层
我记得NXP的MCU有这个监听的功能,毕竟IIC是他发明的
目前在玩STM32,BBB,RPi
回复

使用道具 举报

12

主题

67

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
260
金钱
260
注册时间
2014-9-18
在线时间
47 小时
 楼主| 发表于 2014-9-27 20:33:35 | 显示全部楼层
回复【5楼】w0rmis20:
---------------------------------
3.2.10 General call address
The general call address is for addressing every device connected to the I2C-bus at the 
same time. However, if a device does not need any of the data supplied within the general 
call structure, it can ignore this address. If a device does require data from a general call 
address, it behaves as a slave-receiver. The master does not actually know how many 
devices are responsive to the general call. The second and following bytes are received 
by every slave-receiver capable of handling this data. A slave that cannot process one of 
these bytes must ignore it. The meaning of the general call address is always specified in 
the second byte (see Figure 30).

There are two cases to consider:
? When the least significant bit B is a ‘zero’
? When the least significant bit B is a ‘one’
When bit B is a ‘zero’, the second byte has the following definition:
0000 0110 (06h) — Reset and write programmable part of slave address by hardware. 
On receiving this 2-byte sequence, all devices designed to respond to the general call 
address reset and take in the programmable part of their address.
0000 0100 (04h) — Write programmable part of slave address by hardware. Behaves as 
above, but the device does not reset.
0000 0000 (00h) — This code is not allowed to be used as the second byte. 
Sequences of programming procedure are published in the appropriate device data 
sheets. The remaining codes have not been fixed and devices must ignore them.
When bit B is a ‘one’, the 2-byte sequence is ignored.
这个就是介绍,不知道怎么实现啊
回复

使用道具 举报

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

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-7-1 00:57

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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