Rev. 1.60
78
August 20, 2019
Rev. 1.60
79
August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
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 FHIDEN bit in the SCC register equal to "0" and the
FSIDEN bit in the SCC register equal to "1". When this instruction is executed under the conditions
described above, the following will occur:
•
The f
H
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 I/O ports will maintain their present conditions.
•
In the status register, the Power Down flag PDF will be set, and WDT timeout flag TO will be
cleared.
•
The WDT will be cleared and resume counting as the WDT function is always enabled.
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 both the FHIDEN and FSIDEN bits in the SCC register
equal to "1". When this instruction is executed under the conditions described above, the following
will occur:
•
The f
H
and f
SUB
clocks will be on but the application program will stop at the "HALT" instruction.
•
The Data Memory contents and registers will maintain their present condition.
•
The I/O ports will maintain their present conditions.
•
In the status register, the Power Down flag PDF will be set, and WDT timeout flag TO will be
cleared.
•
The WDT will be cleared and resume counting as the WDT function is always enabled.
Entering the IDLE2 Mode
There is only one way for the device to enter the IDLE2 Mode and that is to execute the "HALT"
instruction in the application program with the FHIDEN bit in the SCC register equal to "1" and the
FSIDEN bit in the SCC register equal to "0". When this instruction is executed under the conditions
described above, the following will occur:
•
The f
H
clock will be on but the f
SUB
clock will be off and the application program will stop at the
"HALT" instruction.
•
The Data Memory contents and registers will maintain their present condition.
•
The I/O ports will maintain their present conditions.
•
In the status register, the Power Down flag PDF will be set, and WDT timeout flag TO will be
cleared.
•
The WDT will be cleared and resume counting as the WDT function is always enabled.