Tone Generator
11-4
11.2.1 Tone Generator Waveforms
When TPCNTL[1:0] = 11, the output of the tone generator may be either a stair-
case waveform or a square waveform depending on the configuration of
TPCNTL.2.
When TPCNTL.2 is 1, a staircase waveform is generated that will have three
levels: DGND, tristate, and V
DD
volts.
When the TPCNTL.2 is 0, a square waveform of 50% duty cycle is generated
that will have two levels: DGND and V
DD
volts.
11.2.1.1 Staircase Mode
When TPCNTL.2 is 1 (i.e., TPCNTL[2:0] = 111), a staircase waveform is gener-
ated, as shown in Figure 11−3. In this figure, the value of PWM Period = 18F
H
,
which is equal to 399. Therefore, the total time period is equal to 800 T
BASE
.
11.2.1.2 Square Mode
When TPCNTL.2 is ‘0’ (i.e., TPCNTL[2:0] = ‘011’), a square waveform is gen-
erated. An example with PWM Period = 2 is shown in Figure 11−4. We get a
50 % duty cycle square wave with a period of (2
S
PWM Period).
Figure 11−3. Timing Diagram of Tone Generator in Staircase Mode
Figure 11−4. Timing Diagram of Tone Generator in Square Wave Mode
Содержание MSC1210
Страница 1: ... December 2002 User s Guide SBAU077 ...
Страница 149: ...Digital Filter 12 13 Analog to Digital Converter Figure 12 5 Filter Frequency Responses ...
Страница 162: ...12 26 ...
Страница 234: ...Timers 17 6 Figure 17 4 Timer Counter 1 Mode 1 Figure 17 5 Interrupt System ...
Страница 273: ...Serial Port I O 17 45 Keil Simulator Figure 17 19 Clock Control Peripheral Figure 17 20 USART0 Preipheral ...
Страница 282: ...C 4 ...