Search found 6 matches

by PieMan
Tue Feb 17, 2015 10:13 pm
Forum: General Discussion and Questions
Topic: Digital filter and assembler code examples
Replies: 17
Views: 17167

Re: Digital filter and assembler code examples

Reading about "Accepting arguments" here: https://micropython.org/doc/tut-asm and here: http://wiki.micropython.org/platforms/boards/pyboard/assembler showed me how to write an ISR/callback in asm. The following code example works for me and I measure the call overhead to be about 3.5us. Calling a "...
by PieMan
Fri Feb 13, 2015 9:18 pm
Forum: General Discussion and Questions
Topic: Use of timer.deinit()
Replies: 6
Views: 10857

Re: Use of timer.deinit()

Thanks Damien
timer.deint() now stops the timer as expected and as described in the documentation.
by PieMan
Thu Feb 12, 2015 11:58 pm
Forum: General Discussion and Questions
Topic: Use of timer.deinit()
Replies: 6
Views: 10857

Re: Use of timer.deinit()

I've raised as an issue on GitHub. See https://github.com/micropython/micropython/issues/1113
by PieMan
Thu Feb 12, 2015 6:51 pm
Forum: General Discussion and Questions
Topic: Use of timer.deinit()
Replies: 6
Views: 10857

Re: Use of timer.deinit()

Thanks pythoncoder, I've had a look at the history of the timer.deinit() method and can see some interesting discussion: https://github.com/micropython/micropython/issues/733 and https://github.com/micropython/micropython/issues/735 I'll do some more digging, experimenting and learning. This could b...
by PieMan
Thu Feb 12, 2015 12:56 pm
Forum: General Discussion and Questions
Topic: Use of timer.deinit()
Replies: 6
Views: 10857

Re: Use of timer.deinit()

Hi I forgot mention, I'm using a recent MicroPython version: v1.3.9-36-g1cd47c6 on 2015-02-04; PYBv1.0 with STM32F405RG And I've realised overnight, I've only tried timer.deinit() on timer 2. I'll try some other timers tonight to see if deinit() works as I expect on those. Can anyone confirm they kn...
by PieMan
Wed Feb 11, 2015 11:40 pm
Forum: General Discussion and Questions
Topic: Use of timer.deinit()
Replies: 6
Views: 10857

Use of timer.deinit()

I've tried using timer.deinit() and it doesn't stop the timer as I expect. See the documentation here: http://docs.micropython.org/en/latest/library/pyb.Timer.html#timer.deinit I've written the following code which sets a PWM going on pin X2. I see the signal, as I expect, on my oscilloscope. I expe...