Download C515C User`s Manual
Transcript
C515C On-Chip Peripheral Components 6.2.2 Timer/Counter 2 with Additional Compare/Capture/Reload The timer 2 with additional compare/capture/reload features is one of the most powerful peripheral units of the C515C. lt can be used for all kinds of digital signal generation and event capturing like pulse generation, pulse width modulation, pulse width measuring etc. Timer 2 is designed to support various automotive control applications (ignition/injectioncontrol, anti-lock-brake …) as well as industrial applications (DC-, three-phase AC- and stepper-motor control, frequency generation, digital-to-analog conversion, process control …). Please note that this timer is not equivalent to timer 2 of the C501. The C515C timer 2 in combination with the compare/capture/reload registers allows the following operating modes: – Compare: up to 4 PWM signals with 65535 steps at maximum, and 600 ns resolution – Capture: up to 4 high speed capture inputs with 600 ns resolution – Reload: modulation of timer 2 cycle time The block diagram in Figure 6-19 shows the general configuration of timer 2 with the additional compare/capture/reload registers. The I/O pins which can used for timer 2 control are located as multifunctional port functions at port 1 (see Table 6-3). Table 6-3 Alternate Port Functions of Timer 2 Pin Symbol Function P1.7 / T2 External count or gate input to timer 2 P1.5 / T2EX External reload trigger input P1.3 / INT6 / CC3 Compare output / capture input for CC register 3 P1.2 / INT5 / CC2 Compare output / capture input for CC register 2 P1.1 / INT4 / CC1 Compare output / capture input for CC register 1 P1.0 / INT3 / CC0 Compare output / capture input for CRC register User’s Manual 6-30 2000-11