
Rev. 1.00 2 December 07, 2018 Rev. 1.00 3 December 07, 2018
HT66FM5340
Brushless DC MCU with Pre-driver
HT66FM5340
Brushless DC MCU with Pre-driver
Data Memory ...................................................................................................... 24
Structure.....................................................................................................................................24
Data Memory Addressing...........................................................................................................25
General Purpose Data Memory .................................................................................................25
Special Purpose Data Memory ..................................................................................................25
Special Function Register Description............................................................ 27
Indirect Addressing Registers – IAR0, IAR1, IAR2 ....................................................................27
Memory Pointers – MP0, MP1L, MP1H, MP2L, MP2H..............................................................27
Accumulator – ACC....................................................................................................................28
Program Counter Low Register – PCL.......................................................................................29
Look-up Table Registers – TBLP, TBHP, TBLH..........................................................................29
Status Register – STATUS .........................................................................................................29
Oscillators .......................................................................................................... 31
Oscillator Overview ....................................................................................................................31
System Clock Congurations.....................................................................................................31
Internal High Speed RC Oscillator – HIRC ................................................................................32
Internal 32kHz Oscillator – LIRC................................................................................................32
Operating Modes and System Clocks ............................................................. 32
System Clocks ...........................................................................................................................32
System Operation Modes...........................................................................................................34
Control Registers .......................................................................................................................35
Operating Mode Switching .........................................................................................................36
Standby Current Considerations ................................................................................................39
Wake-up.....................................................................................................................................39
Watchdog Timer................................................................................................. 40
Watchdog Timer Clock Source...................................................................................................40
Watchdog Timer Control Register ..............................................................................................40
Watchdog Timer Operation ........................................................................................................41
Reset and Initialisation...................................................................................... 42
Reset Functions .........................................................................................................................42
Reset Initial Conditions ..............................................................................................................44
Input/Output Ports ............................................................................................. 49
Pull-high Resistors .....................................................................................................................49
Port A Wake-up ..........................................................................................................................50
I/O Port Control Registers ..........................................................................................................50
Pin-shared Functions .................................................................................................................50
I/O Pin Structures.......................................................................................................................54
Programming Considerations.....................................................................................................54
Timer Modules – TM .......................................................................................... 55
Introduction ................................................................................................................................55
TM Operation .............................................................................................................................55
TM Clock Source........................................................................................................................55
TM Interrupts..............................................................................................................................56