NY6 User Manual
Ver 1.3 2019/03/28
28
2.14.3 PH Value
User should set PH value in program to meet voice’s sample rate or note’s frequency. The PH value is
derived by formula below:
PH for voice synthesis (in Hex) =
INST
F
4096
×
CH
×
8
×
SR
PH for MIDI synthesis (in Hex) =
PATCH
NOTE
INST
F
F
×
F
4096
×
CH
×
8
×
SR
SR: sample rate of speech waveform or Head/Tail waveform. SR unit is hertz.
CH: the allowable value of CH is listed in table below.
Active Voice Channel
CH Value
2
2
4
4
6
6
Active MIDI Channel
CH Value
2
2
4
4
6
6
F
INST
: Instruction frequency, 2,000,000 Hz (2*10
6
).
F
NOTE
: Frequency of the note which is being played.
F
PATCH
: Frequency of key note on which patch waveform is based.
2.14.4 Audio Output
Before using the audio output, user can choose one of the 12-bit DAC or 12-bit PWM as the audio
output for NY6 series. If DAC is selected, ramp-up process has to be implemented by user’s application
program. If PWM is selected, there is no need of ramp-up.
Besides in NY6, it provides a pad detecting mechanism to detect whether DAC or PWM is used. The
pad detecting mechanism detects the PWM2 pad during the reset initialization period, and sets the
initial value of the audio output register as PWM if the PWM2 connection is floating, or sets the initial
value of the audio output register as DAC if the PWM2 connection is high. In conclusion, connect the
speaker to PWM1 and PWM2 only if using PWM, otherwise connect PWM2 to VDD if using DAC. Since
the mechanism sets only the initial value of AUD, don’t change the value of the AUD register if the pad
detecting mechanism is adopted.
PWM2 Pad
Audio Output Initialization
Speaker (Floating)
PWM
VDD
DAC