[Open_electroporator] pyflex_f401 v0.6 prototype turn on

Nathan McCorkle nmz787 at gmail.com
Tue Jul 17 23:53:06 UTC 2018


Here you go, I think this is it... I think this was from my debugging days,
for triggering in minimal time:
stm.mem32[stm.GPIOB + stm.GPIO_ODR] = 0

On Tue, Jul 17, 2018, 3:45 PM John Griessen <john at cibolo.com> wrote:

> After noting so many suspect places to look, I decided to narrow it some
> by testing.
>
> I put a debug LED on statement in line inside of
> def pulse():
>
> I put it at the end and worked back and found that the last if-else block
> stops the port B LED.
> It probably stops port B PB14 also.
>
>
> So, the problem is in
>
> def pulse():
>
>
> near the end of it:
>
> def pulse():
>    .
>    .
>    .
>    adc.read_timed(adc_vals)
>    #  2018-7-17-jg  debug what kills PB9 output...
>    YEL_LED = Pin('LED_YELLOW', Pin.OUT)
>    YEL_LED.value(1)
>    #stm.mem16[stm.TIM4 + stm.TIM_CR1] |= 1 # CEN -- start ADC callback
>    if rep_counter_overflow_detector.longer_counter==1:
>      stm.mem16[tim_kickoff + stm.TIM_CR1] |= 1
>      stm.mem16[stm.TIM1 + stm.TIM_RCR] =
> rep_counter_overflow_detector.or_in_end
>    else:
>      stm.mem16[tim_kickoff + stm.TIM_CR1] |= 1
>    adc.read_timed_stop()
>    print('done')
>
> this latest debug version of pulser_main.py is pushed to the repo now.
> _______________________________________________
> open_electroporator mailing list
> open_electroporator at cibolo.us
> https://cibolo.us/mailman/listinfo/open_electroporator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cibolo.us/pipermail/open_electroporator/attachments/20180717/4de743c5/attachment.html>


More information about the open_electroporator mailing list