G30TH Timer trouble
Posted: Tue Aug 09, 2016 9:49 pm
I've looked up how to do register writes using names in the stm module.
I changed my dual pulser program to use register writes to initialize the output compare pin's HIGH state,
and left the pyb.Timer.OC_INACTIVE compare in there, but no go. It's as if the HIGH state is not being set.
Oh wait! I think I know why.. I set a pin high in a callback that never gets called!
Adding some more init stuff...
Hmmm..... there is no CCMR3 defined in the stmhal/cmsis/devinc/stm32f401xe.h file.
Maybe this is for library size reasons...
Rewriting to use different timer numbers....
I changed my dual pulser program to use register writes to initialize the output compare pin's HIGH state,
and left the pyb.Timer.OC_INACTIVE compare in there, but no go. It's as if the HIGH state is not being set.
Oh wait! I think I know why.. I set a pin high in a callback that never gets called!
Adding some more init stuff...
Hmmm..... there is no CCMR3 defined in the stmhal/cmsis/devinc/stm32f401xe.h file.
Maybe this is for library size reasons...
Rewriting to use different timer numbers....