[Open_electroporator] Using Nathan's tim3_enable_tim1_tim2_tim5__tim1_shuts_down.py program

John Griessen john at cibolo.com
Fri Apr 21 22:44:31 UTC 2017


# increase the TIM1 Update Interrupt priority, by lowering it's number all the way to 1
# stm.mem8[0xe000e400+25]=1<<4
from nvic import *
dump_nvic()
nvic_set_prio(-1, 1)
nvic_set_prio(25, 0)

So -1 int gets set to 1
and 25 int gets set to 0?

What is setting to 0?  top priority?
Is 25 int the serial port by chance?

When priorities are changed too much, the REPL might stop...
Is this OK to use this way?

JG

Nathan McCorkle wrote: "so you might try:
a(150, 4, 92)      # which is the default currently
pulse()                # you'll see very fast pulsing, with very low HV ripple
a(3194, 684, 6)  # set to replicate John's original settings
pulse()                # you'll see the low and HV pulses like John's
original settings
"

OK, so that's what I'll try first.  looks like a convenient program -- good for
having a "fire" button soon.


More information about the open_electroporator mailing list