NY6 User Manual
Ver 1.3 2019/03/28
41
User can use PF flag and HPF flag together to decode the status of playback while Tail-Only mode or
Head+Tail mode is used for MIDI synthesis. For example, PFLG=1 and HPF=0 means Head waveform
is end of play and Tail waveform playback is on-going for a specific channel. The specific channel is
determined by execution of instruction CHNO. Users can obtain the status of PF flag by instruction SP,
SNP or SANP.
After instruction STOP is executed, the playback of specific channel determined by content of CHNM
would stop immediately and PF flag will become 0.
3.16.7 PH Value Setting
PH is a 12-bit value, which represents how much relative time is elapsed from last playback sample
based on ratio of sample rate to system clock. Therefore, this architecture will not produce accumulated
error while counting sample rate in order to synthesize each note frequency precisely. Each channel
has its own PH value. User can select a specific channel by executing instruction CHNO to select
specific channel and utilize instruction LDPH to write value to PH.
3.16.8 Mixer Data
The Mixer output is temporarily stored to a 12-bit register, which is fed into Audio Output to produce
audio signal. When Mixer is on (CHARC[1:0]
≠
2’b00), user can utilize instruction RBDA to read this
MSB 4-bit register to RPT2[3:0].