Search found 3 matches

by mw66
Mon Feb 08, 2021 8:53 am
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 24126

Re: DMA, adresses

Thanks, it looks very neat! I've posted a more detailed description of the project on https://www.instructables.com/Arbitrary-Wave-Generator-With-the-Raspberry-Pi-Pic/ Thanks. Your code supports a lot more of the various features than mine though. As I haven't put in any functions to change things ...
by mw66
Mon Feb 08, 2021 12:36 am
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 24126

Re: DMA, adresses

Sorry, I don't know how I missed that out. Here it is @micropython.viper def SetChannelData(self, readAddress : uint , writeAddress : uint, count: uint, trigger : bool): ptr= ptr32(self.ReadRegister) ptr2= ptr32(self.WriteRegister) ptr3= ptr32(self.TransferCountRegister) ptr[0] = readAddress ptr2[0]...
by mw66
Sun Feb 07, 2021 1:24 pm
Forum: Raspberry Pi microcontroller boards
Topic: DMA, adresses
Replies: 24
Views: 24126

Re: DMA, adresses

I have only just started looking into DMA, but have created a quick helper class, so thought I would post it here in case it is of any help to anyone. It has limited function at the moment, but can be used to do basic DMA transfers. class DmaChannel: def __init__(self, channelNumber): offset = chann...