打印

BUS0和BUS1可以用软件控制两者连接或断开吗?

[复制链接]
948|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
kuangcheng100|  楼主 | 2013-12-2 11:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如题,可以的话,控制两者连接的寄存器是哪个?
沙发
jxin| | 2013-12-2 16:13 | 只看该作者
IDAC_CR0 bit7 SplitMux

使用特权

评论回复
板凳
kuangcheng100|  楼主 | 2013-12-2 20:58 | 只看该作者
jxin 发表于 2013-12-2 16:13
IDAC_CR0 bit7 SplitMux

谢谢这位兄弟的回答啊,但是这个好像也不是吧,TRM上是这样说明的:
7SplitMux    Configures the analog mux bus for the CY8C24x94 and CY7C64215 PSoC devices. Left side con-nects to odd pins (P0[1], P5[5]) and right side connects to even pins (P0[2], P5[6]) with one exception:
P0[7] is a right side pin.
0 Single analog bux mux.
1 Split analog mux bus: left side pins connect  to Analog Mux Bus Left and right side pins con-nect to Analog Mux Bus Right.
也就是清零的时候PIN脚不接到BUS上,而置1的时候,左边的PIN接到左边的BUS,右的接右,但是
左右BUS并没有相接啊。。。

使用特权

评论回复
地板
jxin| | 2013-12-3 17:50 | 只看该作者
kuangcheng100 发表于 2013-12-2 20:58
谢谢这位兄弟的回答啊,但是这个好像也不是吧,TRM上是这样说明的:
7SplitMux    Configures the analog ...

不客气,我觉得是你误解了,
Configures the analog mux bus for the CY8C
24x94 and CY7C64215 PSoC devices. Left side con-
nects to odd pins (P0[1], P5[5])
and right side connects to
even pins (P0[2], P5[6]) with one exception:
P0[7] is a right side pin.
意思是这个位用来配置CY8C24X94和CY7C64215的Analog Mux Bus. 这里省略了一句话,这两个系列的片子默认情况下有2条Analog Mux Bus, Left和Right. Left只能连奇数引脚, Right只能连偶数引脚。

0 Single analog mux bus.//当这个位设置为0的时候,CY8C24X94和CY7C64215就只有一条Analog Mux Bus了,就是把Left 和 Right Anolog Mux Bus短接到一块了。
1 Split analog mux bus: left side pins connect
to Analog Mux Bus Left and right side pins con-
nect to Analog Mux Bus Right //当这个位为1的时候,也就是默认的情况下,有2个Analog Mux Bus, Left Side Pin 接到 Left Analog Mux Bus, Right side Pin 接到 Right Analog Mux Bus.
这里的Left Side Pin和Right side Pin是指实际片子的左右,如果看一下datasheet, 可以看到不管什么封装,芯片左边的GPIO都是奇数的,右边都是偶数的。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

29

主题

72

帖子

0

粉丝