资料介绍
The low cost, high performance features of a
PIC16CXXX microcontroller make it a suitable device
for automatic control technology applications. Some-
times, an additional PWM output is needed. For some
devices, such as the PIC16C71, the addition of a soft-
ware PWM adds the missing element. It is possible to
use Timer0 (which also provides the system clock) and
its corresponding interrupt to generate a PWM output
with a duty cycle that can vary from nearly 10% to 90%.
However, some applications require a greater duty
cycle range. AN654
PWM, a Software Solution for the PIC16CXXX
METHODS
Author: Ole Rpcke
Consultant, Europe Before the solution is revealed, we must rst examine
the various software methods used to generate vari-
able length pulses.
INTRODUCTION In the following explanations, the unit of time will be the
The low cost, high performance features of a length of an Instruction Cycle (TCY). We will use TCY
PIC16CXXX microco