Answering my own question...almost.
Will thrash it out properly...
Search found 3 matches
- Tue Mar 16, 2021 1:20 am
- Forum: Raspberry Pi microcontroller boards
- Topic: PIO and state machine helper functions
- Replies: 9
- Views: 4647
- Mon Mar 15, 2021 10:02 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: PIO and state machine helper functions
- Replies: 9
- Views: 4647
Re: PIO and state machine helper functions
Robert, have I got this right? To keep the DMA going forever all I have to do is top up the trans count regularly?
def dma_topup(chan:int, nword:int):
dma=ptr32(uint(DMA_BASE) + chan * 0x40)
dma[TRANS_COUNT] = nword
edit: using a circular buffer.
RING_SEL = const(1)
RING_SIZE = const(0b1111)
def dma_topup(chan:int, nword:int):
dma=ptr32(uint(DMA_BASE) + chan * 0x40)
dma[TRANS_COUNT] = nword
edit: using a circular buffer.
RING_SEL = const(1)
RING_SIZE = const(0b1111)
- Fri Mar 12, 2021 8:42 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: I2C ran all night!
- Replies: 1
- Views: 1812
I2C ran all night!
Using yesterdays micropython build I retried some I2C code and it ran all night. 12 hours and it's still running. Woo Hoo!