![Holtek HT66FM5440 Скачать руководство пользователя страница 169](http://html.mh-extra.com/html/holtek/ht66fm5440/ht66fm5440_manual_2146833169.webp)
Rev. 1.00
16�
��ne ��� �01�
Rev. 1.00
169
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
Operations
Items
32-bit / 16-bit Division
16-bit / 16-bit Division
16-bit × 16-bit Multiplication
Write Seq�ence
First write
↓
↓
↓
↓
Last write
Dividend Byte 0 written to MDU1R0
Dividend Byte 1 written to MDU1R1
Dividend Byte � written to MDUWR�
Dividend Byte 3 written to MDU1R3
Divisor Byte 0 written to MDU1R4
Divisor Byte 1 written to MDU1R5
Dividend Byte 0 written to MDU1R0
Dividend Byte 1 written to MDU1R1
Divisor Byte 0 written to MDU1R4
Divisor Byte 1 written to MDU1R5
M�ltiplicand Byte 0 written to MDU1R0
M�ltiplier Byte 0 written to MDU1R4
M�ltiplicand Byte 1 written to MDU1R1
M�ltiplier Byte 1 written to MDU1R5
Calc�lation Time
1� × t
SYS
9 × t
SYS
11 × t
SYS
Read Seq�ence
First read
↓
↓
↓
↓
Last read
Q�otient Byte 0 read from MDU1R0
Q�otient Byte 1 read from MDU1R1
Q�otient Byte � read from MDU1R�
Q�otient Byte 3 read from MDU1R3
Remainder Byte 0 read from MDU1R4
Remainder Byte 1 read from MDU1R5
Q�otient Byte 0 read from MDU1R0
Q�otient Byte 1 read from MDU1R1
Remainder Byte 0 read from MDU1R4
Remainder Byte 1 read from MDU1R5
Prod�ct Byte 0 read from MDU1R0
Prod�ct Byte 1 read from MDU1R1
Prod�ct Byte � read from MDU1R�
Prod�ct Byte 3 read from MDU1R3
16-Bit MDU1 Operations Summary
Interrupts
Interrupts are an important part of any microcontroller system. When an external event or an
internal function such as a Timer Module or an A/D converter requires microcontroller attention,
their corresponding interrupt will enforce a temporary suspension of the main program allowing the
microcontroller to direct attention to their respective needs. The device contains several external
interrupt and internal interrupt functions. The external interrupts are generated by the action of the
external H1, H2, H3, NFIN and INT1 pins, while the internal interrupts are generated by various
internal functions including the TMs, Comparator 0, 16-bit CAPTM, Time Base, UART, I
2
C, LVD
and the A/D converter.
Interrupt Registers
Overall interrupt control, which basically means the setting of request flags when certain
microcontroller conditions occur and the setting of interrupt enable bits by the application program,
is controlled by a series of registers, located in the Special Purpose Data Memory, as shown in the
accompanying table. The number of registers falls into four categories. The first is the INTEG0 and
INTEG1 registers which setup the interrupt trigger edge type for certain interrupts. The second is the
INTC0~INTC3 registers which setup the interrupt priority n, the third is the MFI0~MFI7 registers
which setup the primary interrupts. Finally there are eight registers, Pri_name0 ~ Pri_name7,
to setup the priority for each interrupt number, which will be described in the Interrupt Priority
Configuration section.
Each register contains a number of enable bits to enable or disable individual registers as well as
interrupt flags to indicate the presence of an interrupt request. The naming convention of these
follows a specific pattern. First is listed an abbreviated interrupt type, then the (optional) number of
that interrupt followed by either an "E" for enable/disable bit or "F" for request flag.
For interrupts without their own interrupt enable bit and request flag, they can use the corresponding
interrupt priority enable bit and request flag after being configured with the desired interrupt priority
level. Refer to the following description for more details.