Page 2 of 2

Re: MicroPython on Mini SAM M4

Posted: Wed Aug 10, 2022 6:15 pm
by Roberthh
Good start. Please let me know, when/if you miss something.

Re: MicroPython on Mini SAM M4

Posted: Wed Sep 07, 2022 1:00 pm
by Roberthh
Thanks for staying on focus. In the last days I made a few additions to the Development branch at my repository, especially:

adc.read_timed_into(buffer, freq)

dac.write_timed(buffer, freq [, count])

Both methods use a hardware timer and DMA for data transfer, so the timing is precise and does not interfere a lot with the other operations. I consider these as good extensions. I used especially the equivalent adc.read_timed on pyboard a lot and missed that on the other ports. That fct is good if you need precise sampling, e.g. for frequency analysis. With dac.write_timed() you can make for instance a simple AWG, by specifying once cycle and output that count times.