![FTDI FT51A Скачать руководство пользователя страница 111](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158111.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
110
Copyright © 2015 Future Technology Devices International Limited
2.12.5
PWM_CNT16_MSB
Bit
Position
Bit Field Name
Type
Reset
Description
7..0
cnt16_msb
R/W
0
MSB of a 16-bit counter value
Table 2.140 PWM Counter MSB Register
This is a MSB part of a programmable counter that determines the period of the PWM signal.
The input clock is from the pre-scaler block. The 16 bit counter is shared by all 8 PWM channels.
2.12.6
PWM_CMP16_0_LSB - PWM_CMP16_7_LSB
Bit
Position
Bit Field Name
Type
Reset
Description
7..0
cmp16_lsb
R/W
0
LSB of a 16-bit comparator value
Table 2.141 PWM Comparator LSB Register
Up to 8 comparators can be used per PWM channel. The number of comparators assigned to
a PWM channel determines the toggle events (up to 8), which give up to 4 data pulses.
Simple duty cycle based pulse width modulation can be programmed with only two comparators.
There are a total of 8 comparators in the PWM module. Here only the first comparator is shown, as
the remaining seven are exact copies of it.
2.12.7
PWM_CMP16_0_MSB - PWM_CMP16_7_MSB
Bit
Position
Bit Field Name
Type
Reset
Description
7..0
cmp16_msb
R/W
0
MSB of a 16-bit comparator value
Table 2.142 PWM Comparator MSB Register
This is a MSB part of a programmable comparator that determines the toggle events. The 16-bit
counter is shared across all 8 PWM channels. Here only the first comparator is shown, as the
remaining seven are exact copies of it.
2.12.8
PWM_OUT_TOGGLE_EN_0 - PWM_OUT_TOGGLE_EN_7
Bit
Position
Bit Field Name
Type
Reset
Description
7..0
toggle_en
R/W
0
PWM Out toggle enable bits for each
of the 8 PWM channels.
Table 2.143 PWM Toggle Enable Register
There are eight Toggle Enable registers. Each is used to select which combination of PWM
comparators to use.