Hi,
Im having some troubles connecting up my SID, I’m at the last steps now, but having difficulty with the buttons in a couple of respects.
I have attached a picture of the layout of the DIN board I am using (only one of them) in my CS. In the setup_8580.asm file it refers to the cs_menu_io_tables.inc file which has all of the shift registers and pins listed. Considering the layout for my DIN board what would be the correct entries in the cs_menu_io_tables.inc file? Im confused as to the layout of the SR’s and pins. Can someone point me in the right direction for my example please?
Here is what I have now in the mios_tables.inc file (just the encoder section)
;; additional CS encoders
;; SR Pin Mode
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Osc delay/transpose/assign #1
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Osc attack/finetune/assign #2
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Osc decay/portamento/assign #3
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Osc sustain/release/assign #4
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Osc release/pulsewidth/assign #5
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; LFO rate
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; LFO depth
ENC_ENTRY 3, 5, MIOS_ENC_MODE_DETENTED2 ; Filter CutOff
ENC_ENTRY 3, 7, MIOS_ENC_MODE_DETENTED2 ; Filter Resonance
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Env depth/assign #1
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Env attack/assign #2
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Env decay/assign #3
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Env sustain/assign #4
ENC_ENTRY 0, 0, MIOS_ENC_MODE_DETENTED2 ; Env release/assign #5
ENC_EOT
and here is what I have in the cd_menu_io_tables.inc file (just in the buttons section)
CS_MENU_DIN_TABLE
;; Function name SR# Pin#
DIN_ENTRY CS_MENU_BUTTON_Dec, 1, 0 ; only valid if rotary encoder not assigned to these pins
DIN_ENTRY CS_MENU_BUTTON_Inc, 1, 1 ; (see mios_tables.inc) and CS_MENU_USE_INCDEC_BUTTONS == 1
DIN_ENTRY CS_MENU_BUTTON_Exec, 1, 2
DIN_ENTRY CS_MENU_BUTTON_Sel1, 1, 7
DIN_ENTRY CS_MENU_BUTTON_Sel2, 1, 6
DIN_ENTRY CS_MENU_BUTTON_Sel3, 1, 5
DIN_ENTRY CS_MENU_BUTTON_Sel4, 1, 4
DIN_ENTRY CS_MENU_BUTTON_Sel5, 4, 7
DIN_ENTRY CS_MENU_BUTTON_Sel6, 4, 6
DIN_ENTRY CS_MENU_BUTTON_Sel7, 4, 5
DIN_ENTRY CS_MENU_BUTTON_Sel8, 4, 4
DIN_ENTRY CS_MENU_BUTTON_Sel9, 2, 4
DIN_ENTRY CS_MENU_BUTTON_Sel10, 2, 5
DIN_ENTRY CS_MENU_BUTTON_SID1, 0, 0
DIN_ENTRY CS_MENU_BUTTON_SID2, 0, 0
DIN_ENTRY CS_MENU_BUTTON_SID3, 0, 0
DIN_ENTRY CS_MENU_BUTTON_SID4, 0, 0
DIN_ENTRY CS_MENU_BUTTON_Link, 0, 0
DIN_ENTRY CS_MENU_BUTTON_CC, 0, 0
DIN_ENTRY CS_MENU_BUTTON_Edit, 1, 3
DIN_ENTRY CS_MENU_BUTTON_Osc_Sel, 3, 3
DIN_ENTRY CS_MENU_BUTTON_Osc_Ctrl, 3, 1
DIN_ENTRY CS_MENU_BUTTON_Osc_Wav, 3, 2
DIN_ENTRY CS_MENU_BUTTON_Osc_RS, 0, 0
DIN_ENTRY CS_MENU_BUTTON_LFO_Sel, 0, 0
DIN_ENTRY CS_MENU_BUTTON_LFO_Wav, 0, 0
DIN_ENTRY CS_MENU_BUTTON_Env_Sel, 0, 0
DIN_ENTRY CS_MENU_BUTTON_Env_Ctrl, 0, 0
DIN_ENTRY CS_MENU_BUTTON_Fil_Sel, 2, 0
DIN_ENTRY CS_MENU_BUTTON_Fil_Mod, 2, 1
DIN_ENTRY CS_MENU_BUTTON_M_O1Ptch, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_O2Ptch, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_O3Ptch, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_O1PW, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_O2PW, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_O3PW, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_Filter, 2, 2
DIN_ENTRY CS_MENU_BUTTON_M_E1, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_E2, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_L1, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_L2, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_L3, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_L4, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_L5, 0, 0
DIN_ENTRY CS_MENU_BUTTON_M_L6, 0, 0
DIN_ENTRY_EOT
What I am confused about in particular is how the encoders for cutoff and resonance will work. The main data encoder has inc and dec pins listed, but the others dont so which do you connect and which do you reference in this file? I have not complied with these new settings yet as im not sure they are correct.
Also another problem is that I am getting some strange button and encoder behaviours. For example, I have only connect up the Menu and Edit Buttons and the main encoder to do a small test. This is done using the default setup_8580.asm file (not one custom for my setup). The menu button and encoder are actually the same in both setups tho so they should work ok I think. The encoder wheel works, but when turning it slowly between the notches (its detended) the program change on the screen looks like its going to happen (flicks) but reverts to the current program. Turning the wheel faster works ok. When pressing the edit button nonthing happens, when pressing the menu button nothing happens, but when pressing the menu button and holding it then pressing edit and releasing edit it shows a menu of some sort.
Also while no buttons are pressed the screen flickers a bit, but when I press and hold the menu button this goes away and the screen looks normal.
Ive also attached some new pictures for anyone interested in the progress ![]()
Thanks in advance,
John



