the light bulb is getting brighter..........
hi moodz,
i checked out the link, i see where your examples came from, I'll have to look into that further, The mistake I was making, I was thinking your were using the Spi library contained in chipkit's MPIDE, but i see now, they were referenced from the pic32's peripheral libraries.
i haven't had too much of a problem with the spi, except for speed (I'm using the spi / dspi (diligent) library, although to get the rated throughput of my adc, the data sheet specs is 2000ns
1400ns for the conversion
600 ns for the acquisition
seems the dspi is the "faster of the 2 spi's
I'm figuring to get rated throughput, I'll need to run my spi sclk pretty high, 600ns/16 bits = 37ns clock = a 27 mhz sclk or faster. right now i can't go above about 16mhz,
i'm usuing pin 13 on the chipkit which is also hooked to the led, could be affecting my freq
i'll need to put my scope on it.
my goal is to get the 2us sampling time, right now i'm getting 3us which i know, doesn't seem like much, but on a 10us window is the different between 3 samples or 5 samples
After the first sample window, i'll do the math, then the second sample, a little more math,
Philip
hi moodz,
i checked out the link, i see where your examples came from, I'll have to look into that further, The mistake I was making, I was thinking your were using the Spi library contained in chipkit's MPIDE, but i see now, they were referenced from the pic32's peripheral libraries.
getting the timing optimized on SPI can take a bit of work
1400ns for the conversion
600 ns for the acquisition
seems the dspi is the "faster of the 2 spi's
I'm figuring to get rated throughput, I'll need to run my spi sclk pretty high, 600ns/16 bits = 37ns clock = a 27 mhz sclk or faster. right now i can't go above about 16mhz,
i'm usuing pin 13 on the chipkit which is also hooked to the led, could be affecting my freq
i'll need to put my scope on it.
my goal is to get the 2us sampling time, right now i'm getting 3us which i know, doesn't seem like much, but on a 10us window is the different between 3 samples or 5 samples
After the first sample window, i'll do the math, then the second sample, a little more math,
Philip
Comment