Q-Code User Manual
Ver. 7.0 2021/11/30
108
process.
3. For more information about QIO format and Q-Code structure, please contact Nyquest
Technology for assistance.
Ex. NY4B series
[QIO Custom]
{
; Start QIO process.
QIOF_CLR
; Clear QIO flag.
LOAD_QIO_ADDR
; Load QIO Table
ADDR_RBRO 0
; Read QIO data
@@QIO_DATA_CHECK:
mvma
rod2
; Check Wave Mark or QIO.
andl
b'0001'
; Mask QIO data.
caje
0x1,@@check_wavemark
; If is Wave Mark, process it.
ADDR_RBRO 1
; Read QIO data[3:0] and QIO Table 1.
mpg
pa_page
; Set RAM page of PA state register.
mvam
pa_state
; Save QIO data[3:0] to PA state register.
mvam
pa
; Output QIO data[3:0] to PA.
mvma
rod1
; Read QIO data[7:4] to ACC.
mpg
pb_page
; Set RAM page of PB state register.
mvam
pb_state
; Save QIO data[7:4] to PB state register.
mvam
pb
; Output QIO data[7:4] to PB.
jmp
@@QIO_EXIT
;-------------------------------------------------------------------------------
; LOAD WAVE MARK
;-------------------------------------------------------------------------------
@@check_wavemark:
ADDR_RBRO 1
; Read Wave Mark data and QIO Table
1.
mpg
wavemark1_page
; Set RAM page of wavemark.
mvam
wavemark1
; Save into wavemark register.
@@QIO_EXIT:
SAVE_QIO_ADDR
; Save QIO TABLE address.
}
; End QIO process.
Ex. NY5 series 24I/O