MicroPython on Mini SAM M4
Re: MicroPython on Mini SAM M4
Good start. Please let me know, when/if you miss something.
Re: MicroPython on Mini SAM M4
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.
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.