MicroPython on Mini SAM M4

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
User avatar
Roberthh
Posts: 3656
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython on Mini SAM M4

Post by Roberthh » Wed Aug 10, 2022 6:15 pm

Good start. Please let me know, when/if you miss something.

User avatar
Roberthh
Posts: 3656
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython on Mini SAM M4

Post by Roberthh » Wed Sep 07, 2022 1:00 pm

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.

Post Reply