PDA

View Full Version : Help with timing issue



BertMan
- 19th October 2005, 19:13
I have a 18F2520 connected to two spi devices. When I add a DEFINE like "DEFINE SHIFT_PAUSEUS 200" I can get spi device A to work, but not SPI device B. When I remark the DEFINE statement out, I can get SPI device B to work, but not A. How do I solve this delimma?

BertMan
- 19th October 2005, 23:26
I have been trying to get these two devices to "talk" at the same time for a couple of weeks now, but they both seem to like a different clock frequency. Is there a way in pbp to allow this?

BertMan
- 21st October 2005, 04:09
Okay then can someone answer me this. Why is it a device will work fine at default shift clock (50kHz) and not work fine at 200 uS slower?

BertMan
- 21st October 2005, 04:15
Nevermind. I found an older more in depth datasheet for the device that states the SCLK high can be no longer than 50nS.