Ernest Snaith

Output Compare

Discussion created by Ernest Snaith on Jun 26, 2006
Latest reply on Jun 29, 2006 by Jeff Smith
Please could someone explain how the output compare is used on S12XDT512, im told it can be used to create a pulse of a certain duration with no program interaction, after it has been executed.
Do you simply load a value into the compare register and when the timer hits this value it toggles, sets, clears the relevant pin? What are the mask and data registers, how do you use this to create a pulse?
Many Thanks