Hardware Reference
In-Depth Information
Timer Functions
8.1 Objectives
After completing this chapter, you should be
able to
Explain the overall structure of the HCS12
timer system
Use the input-capture function to measure the
duration of a pulse or the period of a square
wave
Use the input-capture function to measure
the duty cycle of a waveform or the phase
difference of two waveforms having the same
frequency
Use the input-capture function to measure the
frequency of a signal
Use the output-compare function to create
a time delay or generate a pulse or periodic
waveform
Use the forced output-compare function
Use the pulse accumulator function to
measure the frequency of an unknown signal
and count the number of events occurring in
an interval
Configure PWM channels to generate
waveforms of certain frequencies and duty
cycles
 
Search WWH ::




Custom Search