Rev. 1.10
44
November 26, 2019
Rev. 1.10
45
November 26, 2019
HT68FB240
USB Low Speed Flash MCU
Entering the SLEEP1 Mode
There is only one way for the device to enter the SLEEP1 Mode and that is to execute the "HALT"
instruction in the application program with the IDLEN bit in SMOD register equal to "0" and the
WDT or LVD on. When this instruction is executed under the conditions described above, the
following will occur:
•
The system clock will be stopped and the application program will stop at the "HALT"
instruction, but the WDT or LVD will remain with the clock source coming from the f
SUB
clock.
•
The Data Memory contents and registers will maintain their present condition.
•
The WDT will be cleared and resume counting if the WDT is enabled.
•
The I/O ports will maintain their present conditions.
•
In the status register, the Power Down flag, PDF, will be set and the Watchdog time-out flag, TO,
will be cleared.
Entering the IDLE0 Mode
There is only one way for the device to enter the IDLE0 Mode and that is to execute the "HALT"
instruction in the application program with the IDLEN bit in SMOD register equal to "1" and the
FSYSON bit in CTRL register equal to "0". When this instruction is executed under the conditions
described above, the following will occur:
•
The system clock will be stopped and the application program will stop at the "HALT"
instruction, but the f
SUB
clock will be on.
•
The Data Memory contents and registers will maintain their present condition.
•
The WDT will be cleared and resume counting if the WDT is enabled.
•
The I/O ports will maintain their present conditions.
•
In the status register, the Power Down flag, PDF, will be set and the Watchdog time-out flag, TO,
will be cleared.
Entering the IDLE1 Mode
There is only one way for the device to enter the IDLE1 Mode and that is to execute the "HALT"
instruction in the application program with the IDLEN bit in SMOD register equal to "1" and the
FSYSON bit in CTRL register equal to "1". When this instruction is executed under the conditions
described above, the following will occur:
•
The system clock and f
SUB
clock will be on and the application program will stop at the "HALT"
instruction.
•
The Data Memory contents and registers will maintain their present condition.
•
The WDT will be cleared and resume counting if the WDT is enabled.
•
The I/O ports will maintain their present conditions.
•
In the status register, the Power Down flag, PDF, will be set and the Watchdog time-out flag, TO,
will be cleared.