e****c 发帖数: 840 | 1 板子上要用到2个micro-controller
两个mocro-controller通过SPI bus communicate
如果我给这两个micro controller各自用一个12MHz的crytal作为clock input,那么
power up板子的时候会有问题么?
多谢! |
g******u 发帖数: 3060 | 2 Not sure.
We used two micros before, one 44 pin and another 18 pin. Both use internal
oscillators. There was no problem but that was not a freaking' accurate
application.
You better ask manufacturers. |
T******T 发帖数: 3066 | 3 The two micro-controllers does not have to be completely synchronous to each
other.
The SPI master/slave controllers and their associated buffer/fifio on either
device will tolerate much slower rate spi traffic completely ignorant of
the fact that the two clock input source are not aligned.
Now, if you are pulling I/Os from one device straight into the other device
without synchronization, and the circuit requires alignment then that won't
work. Otherwise, you should be ok.
Why put in two sepa
【在 e****c 的大作中提到】 : 板子上要用到2个micro-controller : 两个mocro-controller通过SPI bus communicate : 如果我给这两个micro controller各自用一个12MHz的crytal作为clock input,那么 : power up板子的时候会有问题么? : 多谢!
|
e****c 发帖数: 840 | 4 太感谢了
放2个crytal的原因是有一个controller可以run faster,所以我想这样我就可以换
crystal later if I need higher speed
会有一个signal从slave的GPIO直接连到master的GPIO,it's just a data ready
signal。是不是这样的话就会有问题?
clock buffer是什么?有推荐的parts么?我找来看一看
each
either
device
't
a
【在 T******T 的大作中提到】 : The two micro-controllers does not have to be completely synchronous to each : other. : The SPI master/slave controllers and their associated buffer/fifio on either : device will tolerate much slower rate spi traffic completely ignorant of : the fact that the two clock input source are not aligned. : Now, if you are pulling I/Os from one device straight into the other device : without synchronization, and the circuit requires alignment then that won't : work. Otherwise, you should be ok. : Why put in two sepa
|
e****c 发帖数: 840 | 5 多谢
you mean internal RC oscilator么?我这个app只是要获得sensor的data,应该也不
需要太高的accuracy
internal
【在 g******u 的大作中提到】 : Not sure. : We used two micros before, one 44 pin and another 18 pin. Both use internal : oscillators. There was no problem but that was not a freaking' accurate : application. : You better ask manufacturers.
|
T******T 发帖数: 3066 | 6 In that case, you should be A-okay. Since you are using an off-the-shelve
micro-controller IC (I assume), the I/Os should go through proper
synchronizers internally. Even if it doesn't, your data ready signal is a
rather static level with a single transition which should be insensitive to
metastability issues.
【在 e****c 的大作中提到】 : 太感谢了 : 放2个crytal的原因是有一个controller可以run faster,所以我想这样我就可以换 : crystal later if I need higher speed : 会有一个signal从slave的GPIO直接连到master的GPIO,it's just a data ready : signal。是不是这样的话就会有问题? : clock buffer是什么?有推荐的parts么?我找来看一看 : : each : either : device
|
a********e 发帖数: 381 | 7
1) 在hardware level,用几个osc和板子power up过程是否正常并无必然联系;如果
power up过程出问题也应该是firmware和软件层的问题
2)两个时钟源对于SPI没有影响,因为SPI是同步接口。从器件会利用主器件发来的随
路时钟进行数据采样
3)没必要用clock buffer,成本比crystal贵
【在 e****c 的大作中提到】 : 板子上要用到2个micro-controller : 两个mocro-controller通过SPI bus communicate : 如果我给这两个micro controller各自用一个12MHz的crytal作为clock input,那么 : power up板子的时候会有问题么? : 多谢!
|
e****c 发帖数: 840 | 8 thanks
manager跟我说一个MCU用crystal,另外一个用internal的RC oscillator
说是另外一个如果用crytal,power up的时候会有问题,the PCB won't work。我想破
头还是没想明白用internal的socillator和用crystal有什么差别。去问老板,老板不
肯告诉我,要我自己figure out。555555555,太mean了。
老板说要我仔细想一想从板子power up到screen上出现hello的过程,就能明白为什么
【在 a********e 的大作中提到】 : : 1) 在hardware level,用几个osc和板子power up过程是否正常并无必然联系;如果 : power up过程出问题也应该是firmware和软件层的问题 : 2)两个时钟源对于SPI没有影响,因为SPI是同步接口。从器件会利用主器件发来的随 : 路时钟进行数据采样 : 3)没必要用clock buffer,成本比crystal贵
|
a********e 发帖数: 381 | 9
你老板的意思是让你想想整个上电过程,不光是electric level,还包含了behavioral
level。不要把思维限制在硬件本身。我猜使用外部xtal可能会引起一些行为级或者两
个CPU时序配合上的问题,进而导致启动不成功。但是我不了解你的原理,具体的也不
好猜
【在 e****c 的大作中提到】 : thanks : manager跟我说一个MCU用crystal,另外一个用internal的RC oscillator : 说是另外一个如果用crytal,power up的时候会有问题,the PCB won't work。我想破 : 头还是没想明白用internal的socillator和用crystal有什么差别。去问老板,老板不 : 肯告诉我,要我自己figure out。555555555,太mean了。 : 老板说要我仔细想一想从板子power up到screen上出现hello的过程,就能明白为什么
|
g******u 发帖数: 3060 | 10 这不是mean,这是对你好。有个好老板给你指出正确的路然后让你自己研究,这种记得
最牢了。
【在 e****c 的大作中提到】 : thanks : manager跟我说一个MCU用crystal,另外一个用internal的RC oscillator : 说是另外一个如果用crytal,power up的时候会有问题,the PCB won't work。我想破 : 头还是没想明白用internal的socillator和用crystal有什么差别。去问老板,老板不 : 肯告诉我,要我自己figure out。555555555,太mean了。 : 老板说要我仔细想一想从板子power up到screen上出现hello的过程,就能明白为什么
|
T******T 发帖数: 3066 | 11 同意,自己琢磨出来的反而牢固,你老板就是让你充分想到整个系统的power on and
reset
timing. 这个很重要,crystal 和pll的warmup/settling delay 在power up的时候你都
要考虑到,把glitchy clock propagate 进系统就悲剧了。
【在 g******u 的大作中提到】 : 这不是mean,这是对你好。有个好老板给你指出正确的路然后让你自己研究,这种记得 : 最牢了。
|
j******e 发帖数: 1424 | 12 Whole bunch of clock buffer, ICS553MILF or PHILIP 74LVC126 is what I mainly
use now
【在 e****c 的大作中提到】 : 太感谢了 : 放2个crytal的原因是有一个controller可以run faster,所以我想这样我就可以换 : crystal later if I need higher speed : 会有一个signal从slave的GPIO直接连到master的GPIO,it's just a data ready : signal。是不是这样的话就会有问题? : clock buffer是什么?有推荐的parts么?我找来看一看 : : each : either : device
|