Rev. 1.00
�6
��ne ��� �01�
Rev. 1.00
��
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
Single Pulse Output Mode
To select this mode, bits PTnM1 and PTnM0 in the PTMnC1 register should be set to 10
respectively and also the PTnIO1 and PTnIO0 bits should be set to 11 respectively. The Single Pulse
Output Mode, as the name suggests, will generate a single shot pulse on the PTMn output pin.
The trigger for the pulse output leading edge is a low to high transition of the PTnON bit, which can
be implemented using the application program. However in the Single Pulse Mode, the PTnON bit
can also be made to automatically change from low to high using the external TCKn pin, which will
in turn initiate the Single Pulse output. When the PTnON bit transitions to a high level, the counter
will start running and the pulse leading edge will be generated. The PTnON bit should remain high
when the pulse is in its active state. The generated pulse trailing edge will be generated when the
PTnON bit is cleared to zero, which can be implemented using the application program or when a
compare match occurs from Comparator A.
However a compare match from Comparator A will also automatically clear the PTnON bit and thus
generate the Single Pulse output trailing edge. In this way the CCRA value can be used to control the
pulse width. A compare match from Comparator A will also generate a PTMn interrupt. The counter
can only be reset back to zero when the PTnON bit changes from low to high when the counter
restarts. In the Single Pulse Mode CCRP is not used. The PTnCCLR bit is not used in this Mode.
PTnON bit
0
à
1
S/W Command
SET
“
PTnON
”
or
TCKn Pin
Transition
PTnON bit
1
à
0
CCRA
Trailing Edge
S/W Command
CLR
“
PTnON
”
or
CCRA Compare
Match
TPn_0 O�tp�t Pin
P�lse Width = CCRA Val�e
CCRA
Leading Edge
Single Pulse Generation (n=0~3)