PWM Generator
11-7
Pulse Width Modulator/Tone Generator
This can be expressed in code as:
PWMCON = 0x10; // Sel PWM Duty Register
PWM = 128−1; // PWM toggle at a count of 128
PWMCON = 0x09; // Sel PWM Period access, SysClk rate, PWM mode
PWM = 512−1; // 11.0592MHz/512=21.6KHz PWM Freq, Period=512 counts
Note:
The port pin used for PWM (P3.3) must be configured as either standard
8051 or CMOS output for the tone generator/PWM to function.
Содержание 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 ...