Saturday, April 01, 2006

current control background work

Now that I think that i have the current info getting into simulink, it is time to see if I can get other stuff working as well.

When I first dropped in the blocks from working_masked_openloop.mdl I only got a high pitched whine and the motor locking up. Thinking it that may have had something do do with the dodgy memory locations used in working_masked_openloop, I changed them to 390020, 390021, and 390022.

Those memory locations work in working masked openloop.

Try in afm4.mdl

I only added the custom code blocks but it is them that stuffs it up. Maybe the ISRs are using up too much time. I will try to comment out the actions in the ISRs.

That did not solve the problem - still whining

Try without the initialisation function:

Works - try with the ISR code back in.

Works - must be in initialisation fn. Initialise ISRs but to captures.

Works - must be to do with the capture initialisation. Put the timers back in to the capture initialisation fn.

does not work - must be a problem with the timers. Try to use timer 2 for all captures.

Works! - timer 1 must be used for the aPWM - put back in the captures and see if the current sense is working

0 Comments:

Post a Comment

<< Home