Q-Code User Manual
Ver. 7.0 2021/11/30
272
4.31.27 WDT_CLR
WDT_CLR (Watch Dog Clear) command is for clearing Watch Dog Counter. If there are too many
commands executed in
Q-Code
without Play or Delay commands in-between, the WDT counter might
overflow and cause IC being reset. User can manually use WDT_CLR command to forcefully reset
WDT counter.
Ex.
WDT_CLR
; Watch Dog Clear.
4.31.28 Repeat
The repeat function is for user to achieve the purpose of code size saving. There are repeat function
provided for foreground and backgrounds respectively. Repeat time = 1~15.
Repeat time:
NY4 / NY5 / NY5+ / NY6 / NY7 / NY9T supports 1 ~ 15.
NX1 supports 1 ~ 255.
Ex.
Loop counter is used to achieve repeat function during the repeat of single section.
{ PlayV($V0), PlayV($V1), PlayV($v2) } * 3
; Porgram inside the ”{“…. “}” will be executed
for 3 times.
4.31.29 Slow
Switch the Sleep mode to Slow mode. The Slow mode can be applied to count for a long time or check
signals in the fixed period of time. After executing this command, the Slow mode will replace the
original Sleep mode. The system will wakeup automatically in the fixed time; after wakeup,
Q-Code
will
execute the WakeUp path once, and execute Sleep path once before entering Slow mode. User can
close the Slow mode by using the SlowOff command for resuming the Sleep mode. The wakeup time
of Slow mode is 16 times of interruption time which means when user sets interruption time as 256us,
the system will wakeup at 4ms; set as 1ms and the system will wakeup at 16ms.
Note: NY4 / NY5 / NY9T / NX1 do not support this command.
Ex.
Switch to Slow.
[Path]
TR1: Slow
; Switch to Slow.
4.31.30 SlowOff
This command is for closing Slow mode and resume the Sleep mode.
Note: NY4 / NY5 / NY9T / NX1 do not support this command.
Ex.
Close the Slow mode.