|
|
View previous topic :: View next topic |
Author |
Message |
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Mon Sep 11, 2017 7:46 am |
|
|
Which PIC are you using ?
The HW SPI shows terrible waveform, which may indicate the SPI internal peripheral has been damaged ASSUMING the SW SPI picture is using the SAME I/O pins.
Without any reference I have to assume each division is 1 volt, so SPI highs re 3.++ volts ?
Also SPI bus speed is not given, but for test purposes, I'd go very slow, say 100KHz, or lower, the datatsheet of the device should say. By going slow, you can see the waveform better.
As well, send a known data stream, say '0x5A', something that you can decode visually easily, and of course connect to CS or SS as a sync.
Jay |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19553
|
|
Posted: Tue Sep 12, 2017 1:12 am |
|
|
Also, how is the PIC supplied?. What smoothing have you got adjacent to the PIC?.
Both wave-forms have horrible noise spikes on the 0v level. I think the scope sample rate is much too slow for the hardware SPI. I think the pulses shown are actually each 8bit bursts, and if they look bad massively under-sampled like this, I hate to think how bad the wave-forms really are... |
|
|
Atarek
Joined: 07 Sep 2017 Posts: 9
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Tue Sep 12, 2017 5:32 am |
|
|
I can't help any further without knowing which PIC you're using and your 'test' program.
Jay |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|