Problems capturing a 3.5MHz signal #231
-
|
I have a clock signal from my retro computer (a ZX Spectrum). I'm capturing at 7MHz, and I can see the 3.5MHz clock signal looking like this: That's spot on. :) But scrolling along the capture a bit, it starts to miss a few cycles: I can't see any obvious pattern or reason why it would do that. Scrolling to another section of the capture it goes completely wrong: It's completely lost the clock signal, and the Z80 decoding is now totally wrong. I'm probably doing something wrong here, I've not used a logic analyser before. Has anyone got any idea what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your reply. :) I was mostly aware of the frequency issues you describe, but I wasn't really sure, so thanks for the explanation. I had tried capturing at 14MHz, but it seemed to make things worse. I tried again. Here's the 3.5MHz clock from that capture: At 14MHz the signal is no longer a square wave. I have the Spectrum's clock on my oscilloscope, and it's really a saw-tooth type of signal. But I would have thought the logic analyser could do better, especially as when I scroll along a bit I see it goes way off again: The jitter at 14MHz is about 2%. Is that bad enough to have this affect? I tried capturing at 33,950,000Hz, which gives a jitter of about 1.1%. That gives this: It never seems to go wrong, I don't get the big gaps in the trace I do when I use lower frequencies, so that must be good. But it's still not the square wave I'm expecting. Am I still using the device incorrectly? What else can I try? I'm not looking for the Spectrum's ULA contention pattern, I have made a device which plugs into the back of the Spectrum. Although it mostly works, it occasionally makes the Spectrum crash, so it's a Z80 decode I really need so I can see where it's going wrong. The pattern when the ULA stops the Z80's clock should be very obvious, but that's not what I'm seeing at the moment. |
Beta Was this translation helpful? Give feedback.









Have you checked the signal voltage? Think that you are using the analyzer with a level shifter, if you have it set to 5v and the peak signal of the clock is lower, it will not capture it properly being a sawtooth. If I recall it right the 48k clock had a 3v peak voltage, so most of the signal will be treated as a low value. You could try to set the analyzer that has the clock signal to use 3.3v as VREF instead of 5v, in theory the TXU0104 is versatile enough to handle voltages up to 6.5v even if the vref for the input is lower (never tried it, so is under your responsability :) ).