![Intel 80C196NU Скачать руководство пользователя страница 186](http://html1.mh-extra.com/html/intel/80c196nu/80c196nu_user-manual_2072209186.webp)
9-1
CHAPTER 9
PULSE-WIDTH MODULATOR
The pulse-width modulator (PWM) module has three output pins, each of which can output a
PWM signal with a fixed frequency and a variable duty cycle. These outputs can be used to drive
motors that require an unfiltered PWM waveform for optimal efficiency, or they can be filtered
to produce a smooth analog signal.
This chapter provides a functional overview of the pulse-width modulator module, describes how
to program it, and provides sample circuitry for converting the PWM outputs to analog signals.
For detailed descriptions of the signals and registers discussed in this chapter, please refer to Ap-
pendix B, “Signal Descriptions” and Appendix C, “Registers.”
9.1
PWM FUNCTIONAL OVERVIEW
The PWM module has three channels, each of which consists of a control register
(PWMx_CONTROL, where x is 0, 1, or 2), a buffer, a comparator, an RS flip-flop, and an output
pin. Two other components, an eight-bit counter and a clock prescaler, are shared across the PWM
module’s three channels, completing the circuitry (see Figures 9-1 and 9-2).
Figure 9-1. PWM Block Diagram (8XC196NP Only)
A2382-03
PWM
x_CONTROL
R
S
Q
Port 4
Control
P4_MODE
P4.
x/
PWM
x
8
8
Buffer
x
8
Comparator
x
8
Up Counter
PWM
x
Output
Overflow
=
Load
Buffer
– 2
0
1
Prescaler
Internal
Clock
Signal
CON_REG0.0
(CLK0 Bit)
RS Flip-flop
x
Shared Circuitry
Содержание 80C196NU
Страница 1: ...8XC196NP 80C196NU Microcontroller User s Manual...
Страница 2: ...8XC196NP 80C196NU Microcontroller User s Manual August 1995 Order Number 272479 002...
Страница 18: ...1 Guide to This Manual...
Страница 19: ......
Страница 31: ......
Страница 32: ...2 Architectural Overview...
Страница 33: ......
Страница 48: ...3 Advanced Math Features...
Страница 49: ......
Страница 56: ...4 Programming Considerations...
Страница 57: ......
Страница 72: ...5 Memory Partitions...
Страница 73: ......
Страница 106: ...6 Standard and PTS Interrupts...
Страница 107: ......
Страница 144: ...7 I O Ports...
Страница 145: ......
Страница 165: ......
Страница 166: ...8 Serial I O SIO Port...
Страница 167: ......
Страница 183: ......
Страница 184: ...9 Pulse width Modulator...
Страница 185: ......
Страница 196: ...10 Event Processor Array EPA...
Страница 197: ......
Страница 225: ......
Страница 226: ...11 Minimum Hardware Considerations...
Страница 227: ......
Страница 239: ......
Страница 240: ...12 Special Operating Modes...
Страница 241: ......
Страница 255: ......
Страница 256: ...13 Interfacing with External Memory...
Страница 257: ......
Страница 303: ......
Страница 304: ...A Instruction Set Reference...
Страница 305: ......
Страница 373: ......
Страница 374: ...B Signal Descriptions...
Страница 375: ......
Страница 390: ...C Registers...
Страница 391: ......
Страница 447: ......
Страница 448: ...Glossary...
Страница 449: ......
Страница 458: ...Index...
Страница 459: ......