I'm currently doing a project right now that controls bipolar stepper motors. What I have done so far was to use the L297 and L298 to control the steppers using a 555 timer to manipulate the speed of rotation. What I'm planning to do next is to integrate these to my mcs09jm60 using the DEMOJM board. I want to subsititute the 555 timer with the TPM of the mcu. My problem is on how to generate variable clock pulses to drive the L297 in order to control the speed of rotation of the stepper. Can anyone point me to the right direction? Thanks ahead for the help!