Hi,
someone can help me for that: i’m trying to implement the 8*8 matrix (sm simple v1)on a seq running on pic18f4620.
what i’ve already done:
i’ve keep the gp button (integated with encoders), and the matrix button simply call the appropriate track:
code at the end of sm_simple.inc: (the resulting buton number saved in mios_parameter3)
SM_NotifyToggle
;; MEMO: here you could also branch directly to USER_DIN_NotifyToggle in order
;; to emulate buttons which are connected on the common way to the shift registers
;; ->
goto SEQ_BUTTON_GP_Cont_Trk1
SEQ_BUTTON_GP_Cont_Trk1 is located in “seq_button.inc”:
code:
SEQ_BUTTON_GP_Cont_Trk1
movlw 16
CPFSLT MIOS_PARAMETER3
goto SEQ_BUTTON_GP_Cont_Trk2
movwf MIOS_PARAMETER3
movlw 1 << 0 ; select first track
movwf SEQ_SELECTED_TRKS, BANKED
goto SEQ_GP_Button
SEQ_BUTTON_GP_Cont_Trk2
movlw 32
CPFSLT MIOS_PARAMETER3, BANKED
goto SEQ_BUTTON_GP_Cont_Trk3
;; for GP17..31
movwf MIOS_PARAMETER3
movlw 1 << 1 ; select second track
movwf SEQ_SELECTED_TRKS, BANKED
goto SEQ_GP_Button
SEQ_BUTTON_GP_Cont_Trk3
movlw 48
CPFSLT MIOS_PARAMETER3, BANKED
goto SEQ_BUTTON_GP_Cont_Trk4
;; for GP32..47
movwf MIOS_PARAMETER3
movlw 1 << 2 ; select third track
movwf SEQ_SELECTED_TRKS, BANKED
goto SEQ_GP_Button
SEQ_BUTTON_GP_Cont_Trk4
;; for GP48..63
movwf MIOS_PARAMETER3
movlw 1 << 3 ; select forth track
movwf SEQ_SELECTED_TRKS, BANKED
goto SEQ_GP_Button
;; ------------------------------------------------------------
but when compiling, i obtain the error “overwritting previous adress content” a lot of times at lines 41,85,165 and 170 in “mios_table”…