Q-Code User Manual
Ver. 7.0 2021/11/30
60
NY4 / NY5 / NY6 / NY7
NY9T
NY5+
4. When interrupt service function is activated, the system will automatically enabled by
default, It is not necessary that user activate INT_ON command.
5. Using interrupt service will take up more RAM.
6. For NY5, ADSR enables interrupt by default, PCT mode disable interrupt by default, and
the others features disable interrupt by default.
7. Use time interrupt command and Interrupt service together will lead to unpredictable
results.
8. For NY9T, the interrupt service of Action would occupy more RAM and activate the
Timer interrupt service.
Ex.
InterruptService =
Action
; Using interrupt for Action function.
Ex.
InterruptService =
QIO
; Using interrupt for QIO function.
Ex.
InterruptService =
Melody
; Using interrupt for Melody function.
3.9.1.18 PWM-IO
PWMIO_Step:
Set the step of PWM-IO output. There
are three steps of 16 / 32 / 64, which corresponds to
244Hz / 122Hz / 61Hz frame rate.
Ex.
PWMIO_Step =
32
;Set PWM output step to
32.
Note: NY9T / NX1 do not support PWMIO_Step.
Frame Rate:
The refresh rate of PWM-IO signals. (NY9T001A deault = 4KHz, other NY9T IC
default=128Hz)
Ex.
PWMIO_FrameRate
= 128Hz
; PWM-IO Frame Rate as 128Hz.
Ex.
PWMIO_FrameRate
= 4KHz
; PWM-IO Frame Rate as 4KHz .
HW PWM-IO PB Frame Rate / HW PWM-IO PD Frame Rate:
NY5+
supports hardware PWM-IO, but only on PB / PD. Frame Rate of
PWM-IO can be set separately.
Ex.
PWMIO_PB_FrameRate
= 7.8KHz
; PWM-IO Frame Rate
is 7.8KHz.
Ex.
PWMIO_PD_FrameRate
= 62.5KHz
; PWM-IO Frame Rate is 62.5KHz.
Note:
1. NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support PWMIO_FrameRate option.