Hi Travis, many thanks for all of the above. I had already stripped down the adc@ word, that is what I am using now and it takes 5us. It is satisfactory up to 3000rpm on my motor application, but I would like to do better. And yes, the tasks are getting in the way ... I will see what I can do with running some tasks on the 2nd core. I just realized that because I am multiplexing some adc channels (4 adc's is just not enough ... :( ...) So I can't easily do fifo or dma ... (I am using 7 adc's, 3 adc's...
Hi Travis, many thanks for all of the above. I had already stripped down the adc@ word, that is what I am using now and it takes 5us. It is satisfactory up to 3000rpm on my motor application, but I would like to do better. And yes, the tasks are getting in the way ... I will see what I can do with running some tasks on the 2nd core. I just realized that because I am multiplexing some adc channels (4 adc's is just not enough ... :( ...) So I can't easily do fifo or dma ... (I am using 7 adc's ) PS:...
Hi Travis, many thanks for all of the above. I had already stripped down the adc@ word, that is what I am using now and it takes 5us. It is satisfactory up to 3000rpm on my motor application, but I would like to do better. And yes, the tasks are getting in the way ... I will see what I can do with running some tasks on the 2nd core. I just realized that because I am multiplexing some adc channels (4 adc's is just not enough ... :( ...) So I can't easily do fifo or dma ... (I am using 7 adc's )
Hi, I am trying to get faster ADC on the rp2040, as I need to read 3 channels fast in a 20khz pwm on-time. The current ADC reading example in the playground takes 10us to read one channel. (as a comparison, zeptoforth takes 5us) Has anyone any code to use dma or fifo etc to get better performance? Thanks
Great, thanks. That worked. Maybe some instructions in the header of float.fs would be useful
Great, thanks. That worked. Maybe some instructions in the header of float.fs would be useful? By the way can you give some examples of how to use the float words? In particular an example of fsin fcos etc. I am not sure how to input a floating point number to these functions. I have compiled float.fs .. Thanks
Ahh, I see you have to set FLOATS=1 in p24fj_ga_config.inc (for nano) however I get the following compile error: Info: Project is using a large data memory model when small data memory model is sufficient. make[2]: Leaving directory '/Users/bernardmentink/My_Work/Arduino/flashforth/pic24/FF_24-30-33.X' make[1]: Leaving directory '/Users/bernardmentink/My_Work/Arduino/flashforth/pic24/FF_24-30-33.X' ../src/ff-pic24-30-33.s:7163: undefined reference to `___addsf3' build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x2318):../src/ff-pic24-30-33.s:7163:...
Ahh, I see you have to set FLOATS=1 in p24fj_ga_config.inc (for nano) however I get the following compile error: Info: Project is using a large data memory model when small data memory model is sufficient. make[2]: Leaving directory '/Users/bernardmentink/My_Work/Arduino/flashforth/pic24/FF_24-30-33.X' make[1]: Leaving directory '/Users/bernardmentink/My_Work/Arduino/flashforth/pic24/FF_24-30-33.X' ../src/ff-pic24-30-33.s:7163: undefined reference to `___addsf3' build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x2318):../src/ff-pic24-30-33.s:7163:...