for 160K in picoADC_USB.c. you need to the clock divider by 48Mhz/160000 = 300 -1But i am getting packet missing. Do i need to change any other values for 160k sample rate?
line 271
adc_set_clkdiv(299); // 160K samples/sec
Then on usb2bin.c the time period between of each packet is 1 sec/160kSamples * 600Samples/packet = 3750us
And yes the PI5 is slower than the Pi4. I got lost frame on the PI5. (looks like that the PI5 can't handle too many packet transfer).
It helps if you boot the Pi5 on console only (No desktop GUI).
Also on My Pi5 I was saving usb2bin to a ramdisk. At 200Ksamples/sec is around 1.5Gbytes per hour.
Also for the voltage drop out , use a resistor divider instead to check the Pico
two resistors of 1K.
Code:
VSys ------/\/\/\-------------+---------/\/\/\--------GND 1K |. 1K ADC IN
Statistics: Posted by danjperron — Tue Feb 27, 2024 11:36 pm