Search found 4 matches

by Kostrinker
Thu Mar 10, 2022 7:08 am
Forum: Raspberry Pi microcontroller boards
Topic: PIO - pull() question
Replies: 0
Views: 12920

PIO - pull() question

#### EDITED ##### Hi all, I am trying to output a value on a pin one bit at the time using PIO. I would like to continuously repeat the value put in the TX FIFO until a new sm.put() instruction is run. Is there a way to refill the OSR by recycling the last putted data in the TX FIFO? I wrote the cod...
by Kostrinker
Sun Aug 22, 2021 10:35 am
Forum: Raspberry Pi microcontroller boards
Topic: Run assembly function within state machine
Replies: 6
Views: 4356

Re: Run assembly function within state machine

Thanks hippy for your reply. I am now studying how to achieve that in c/c++ and see I can get more in-depth of how the IRQ is working and then see if I can bring that back in upython.
by Kostrinker
Thu Aug 19, 2021 11:51 am
Forum: Raspberry Pi microcontroller boards
Topic: Run assembly function within state machine
Replies: 6
Views: 4356

Re: Run assembly function within state machine

Hello, Thanks for your reply hippy, it helped me understand where I should focus to develop my code. In what way does it not seem correct ? I thought it was not correct since the state machine was not waiting the end of the irq handling's function before continuing with its script. After reading the...
by Kostrinker
Fri Aug 13, 2021 10:26 am
Forum: Raspberry Pi microcontroller boards
Topic: Run assembly function within state machine
Replies: 6
Views: 4356

Run assembly function within state machine

Hello everyone, I wrote a function in assembly with the @asm_thumb decorator which allows me to trigger the ADC register for a single conversion, store its value in a register (lets say r0), trigger some IOs, trigger again the ADC and store this second value in r1. Then the function return the diffe...