HT46R49 Holtek Semiconductor, HT46R49 Datasheet - Page 25

no-image

HT46R49

Manufacturer Part Number
HT46R49
Description
Cost-Effective A/D Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
HT46R49
Quantity:
50 000
www.datasheet4u.com
Pulse Width Modulator
Each microcontroller in the Cost-effective A/D Type
MCU series contains either one or two Pulse Width
Modulation, PWM, outputs. Useful for such applications
such as motor speed control, the PWM function pro-
vides outputs with a fixed frequency but with a duty cycle
that can be varied by setting particular values into the
corresponding PWM register.
For devices with one PWM output, a single register, lo-
cated in the Data Memory is assigned to the Pulse Width
Modulator and is known as the PWM register. For de-
vices with two PWM outputs, two registers are provided
and are known as PWM0 and PWM1. It is in these regis-
ters, that the 8-bit value, which represents the overall
duty cycle of one modulation cycle of the output wave-
form, should be placed. To increase the PWM modula-
tion frequency, each modulation cycle is modulated into
four individual modulation sub-sections, known as the
6+2 mode. Note that it is only necessary to write the re-
quired modulation value into the corresponding PWM
register as the subdivision of the waveform into its
sub-modulation cycles is implemented automatically
within the microcontroller hardware. For all devices, the
PWM clock source is the system clock f
This method of dividing the original modulation cycle
into a further 4 sub-cycles enables the generation of
higher PWM frequencies, which allow a wider range of
applications to be served. As long as the periods of the
generated PWM pulses are less than the time constants
of the load, the PWM output will be suitable as such long
time constant loads will average out the pulses of the
PWM output. The difference between what is known as
Rev. 1.30
HT46R49
Other
Devices
Device
Channels
2
1
Mode
PWM
6+2
6+2
Output
PD0/
PD1
Pins
PD0
SYS
.
Register
PWM0/
PWM1
Name
PWM
HT46R46/C46/R47/C47/R48A/C48A/R49
25
the PWM cycle frequency and the PWM modulation fre-
quency should be understood. As the PWM clock is the
system clock, f
the overall PWM cycle frequency is f
PWM modulation frequency for the 6+2 mode of opera-
tion will be f
6+2 PWM Mode
Each full PWM cycle, as it is controlled by an 8-bit PWM,
PWM0 or PWM1 register, has 256 clock periods. How-
ever, in the 6+2 PWM Mode, each PWM cycle is subdi-
vided into four individual sub-cycles known as
modulation cycle 0~modulation cycle 3, denoted as i
in the table. Each one of these four sub-cycles contains
64 clock cycles. In this mode, a modulation frequency
increase by a factor of four is achieved. The 8-bit PWM,
PWM0 or PWM1 register value, which represents the
overall duty cycle of the PWM waveform, is divided into
two groups. The first group which consists of bit2~bit7 is
denoted here as the DC value. The second group which
consists of bit0~bit1 is known as the AC value. In the
6+2 PWM mode, the duty cycle value of each of the four
modulation sub-cycles is shown in the following table.
Modulation cycle i
Modulation
Frequency
f
Parameter
SYS
PWM
(i=0~3)
6+2 Mode Modulation Cycle Values
/64
SYS
SYS
/64.
, and as the PWM value is 8-bits wide,
PWM Cycle
Frequency
f
SYS
AC (0~3)
/256
i<AC
i AC
SYS
(PWM register
(Duty Cycle)
PWM Cycle
/256, while the
value)/256
June 5, 2008
DC 1
Duty
DC
DC
64
64
+

Related parts for HT46R49